removes all the imports from typing (eg from typing import List -> simply list, from typing import Sequence > from collections.abc import Sequence, etc.);
typehints 382 > 240
and updates:
tile_size = None # (int, int): size of each tile in pixels
map_size = None # (int, int): size of map in tiles
visible_tile_layers = None # list of visible layer integers
into
# (int, int): size of each tile in pixels
tile_size: Vector2DInt = (0,0) (or tuple[int, int])
# (int, int): size of map in tiles
map_size: Vector2DInt = (0,0) (or tuple[int, int])
# list of visible layer integers
visible_tile_layers: list[int] = [] (or Iterable[int] or Iterable[Any]?)
the alternative is to disseminate multiple asserts around the code
self._tile_view = None # this rect represents each tile on the buffer
self._tile_view = Rect(
0, 0, 0, 0
) # this rect represents each tile on the buffer
PR:
and updates:
into
the alternative is to disseminate multiple asserts around the code
same as above (asserts)