You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #82472 and mentioned in the documentation, the typing.io and typing.re submodules are scheduled for removal in Python 3.12. They've been deprecated since Python 3.8.
I'm preparing a PR.
(Side note: There doesn't seem to be a matching issue template for this kind of issue.)
@srittau Bedevere the bot has this feature disabled for a while. python/bedevere#430 will enable it back after merging (i believe it's on feedback gathering stage).
Interestingly, importing from typing.re or typing.io never worked at type check time. Since typeshed doesn't include those namespaces, when --ignore-missing-imports is used, any imports from those namespaces were silently assumed to by Any.
Activity
srittau commentedon May 17, 2022
Cc @gvanrossum and @JelleZijlstra as resident typing experts.
Remove typing.{io,re} namespaces
srittau commentedon May 17, 2022
PR: #92873 (didn't get linked automatically?)
arhadthedev commentedon May 17, 2022
@srittau Bedevere the bot has this feature disabled for a while. python/bedevere#430 will enable it back after merging (i believe it's on feedback gathering stage).
srittau commentedon May 18, 2022
Interestingly, importing from
typing.reortyping.ionever worked at type check time. Since typeshed doesn't include those namespaces, when--ignore-missing-importsis used, any imports from those namespaces were silently assumed to byAny.gh-92871: Postpone the removal of typing.{io,re} to 3.13 (#98958)
pythongh-92871: Postpone the removal of typing.{io,re} to 3.13 (pytho…
gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958)
[3.10] gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-9…
Remove deprecated use of typing.io
[MINOR][PYTHON] Remove deprecated use of typing.io
[MINOR][PYTHON] Remove deprecated use of typing.io
pythongh-92871: Remove typing.{io,re} namespaces (python#92873)
Fix python 3.13 deprecation of typing.re
Stop using deprecated typing.io in python code