return ["res://", "user://", "uid://"].any(value.begins_with)
over this:
return value.begins_with("res://") or value.begins_with("user://") or value.begins_with("uid://")
return ["res://", "user://", "uid://"].any(value.begins_with)
over this:
return value.begins_with("res://") or value.begins_with("user://") or value.begins_with("uid://")
This constant is set to 20. Was 20 just some reasonable yet arbitrary number, or is there a reason why it must be exactly 20? A comment would have been so helpful.
This constant is set to 20. Was 20 just some reasonable yet arbitrary number, or is there a reason why it must be exactly 20? A comment would have been so helpful.
(Though I don't know how to avoid it completely)
(Though I don't know how to avoid it completely)