bitcraft / pytmx

Python library to read Tiled Map Editor's TMX maps.
GNU Lesser General Public License v3.0
384 stars 81 forks source link

fix typehints #182

Open JaskRendix opened 8 months ago

JaskRendix commented 8 months ago

PR reduces the number of typehints 289>149

While fixing, by following a chain of typehints, I arrived to the source here:

class TiledMap(TiledElement):
    def __init__(
        self,
        filename: Optional[str] = None, <---------- here

is it correct an Optional?