FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update ForwardRef._evaluate for Python 3.11 by aronbierbaum · Pull Request #8600 · python/typeshed · GitHub

Repository navigation

Update ForwardRef._evaluate for Python 3.11 - #8600

Merged
hauntsaninja merged 1 commit into
python:masterfrom
aronbierbaum:dev/typing_forward_ref
Aug 24, 2022
Merged

hauntsaninja merged 1 commit into
python:masterfrom
aronbierbaum:dev/typing_forward_ref

Conversation

aronbierbaum commented Aug 23, 2022 •
edited
Loading

Copy link
Copy Markdown
Contributor

recursive_guard argument was added in python/cpython#21553

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

1 similar comment

This comment has been minimized.

Copy link
Copy Markdown
Member

Thank you! You need to remove this line:

typing.ForwardRef._evaluate

Comment thread stdlib/typing.pyi Outdated
def __init__(self, arg: str, is_argument: bool = ...) -> None: ...

def _evaluate(self, globalns: dict[str, Any] | None, localns: dict[str, Any] | None) -> Any | None: ...
if sys.version_info >= (3, 11):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

python/cpython#21553 was backported to 3.9

Suggested change
if sys.version_info >= (3, 11):
if sys.version_info >= (3, 9):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Done, thanks!

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

hauntsaninja merged commit ef6baca into python:master Aug 24, 2022
aronbierbaum deleted the dev/typing_forward_ref branch August 24, 2022 01:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL