tortoise / aerich

A database migrations tool for TortoiseORM, ready to production.
https://github.com/tortoise/aerich
Apache License 2.0
804 stars 90 forks source link

syntax error with python3.8.10 #265

Closed zlpmetyou closed 1 year ago

zlpmetyou commented 1 year ago
@classmethod
    def get_all_version_files(cls) -> list[str]:  # TypeError: 'type' object is not subscriptable
        return sorted(
            filter(lambda x: x.endswith("py"), os.listdir(cls.migrate_location)),
            key=lambda x: int(x.split("_")[0]),
        )

should be: List[str]

long2ice commented 1 year ago

Try latest source again

long2ice commented 1 year ago

Fixed