Skip to content

Use of deprecated type hints - PEP 585 #361

Description

@jeertmans

Hello,

I am a frequent user of your library, but I also like to enforce good type hints, using type checkers like beartype.

However, when using types from your library, it appears that some of them use deprecated type hints from the built-in typing module, like typing.Iterator that has been moved to collections.abc.Iterator.

While this is not an issue at the moment (except that beartype complains about it, see https://beartype.readthedocs.io/en/latest/api_roar/#pep-585-deprecations), this will eventually become one when Python 3.14 will come out (in ~ 1 year I guess).

Could you consider updating the type hint to make your library future-compatible (at least to some extents)? Of course, I can help with this and make a PR.

Thanks for your work!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions