Format contains_tile to a single line

This commit is contained in:
Ryan Malloy 2026-07-11 18:41:32 -06:00
parent 68ab16a7cf
commit 07a9433f19

View File

@ -98,9 +98,7 @@ class TileShape:
def contains_tile(self, other: TileShape) -> bool:
"""True if every corner of ``other`` is contained in this shape."""
return all(
self.contains(other.corner(i)) for i in range(other.border_line_count())
)
return all(self.contains(other.corner(i)) for i in range(other.border_line_count()))
# --- measures (approximate) --------------------------------------------