Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PY313] Add stubs for soft-deprecated typing members #2503

Merged
merged 1 commit into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ What's New in astroid 3.3.2?
============================
Release date: TBA

* Restore support for soft-deprecated members of the ``typing`` module with python 3.13.

Refs pylint-dev/pylint#9852


What's New in astroid 3.3.1?
Expand Down
12 changes: 12 additions & 0 deletions astroid/brain/brain_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,18 @@ class TypeVar:
@classmethod
def __class_getitem__(cls, item): return cls
class TypeVarTuple: ...
class ContextManager:
@classmethod
def __class_getitem__(cls, item): return cls
class AsyncContextManager:
@classmethod
def __class_getitem__(cls, item): return cls
class Pattern:
@classmethod
def __class_getitem__(cls, item): return cls
class Match:
@classmethod
def __class_getitem__(cls, item): return cls
"""
)
)
Expand Down
Loading