Skip to content

Conversation

aronbierbaum
Copy link
Contributor

@aronbierbaum aronbierbaum commented Aug 23, 2022

recursive_guard argument was added in python/cpython#21553

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@sobolevn
Copy link
Member

Thank you! You need to remove this line:

typing.ForwardRef._evaluate

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
Member

Choose a reason for hiding this comment

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

python/cpython#21553 was backported to 3.9

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks!

@github-actions
Copy link
Contributor

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

@hauntsaninja hauntsaninja merged commit ef6baca into python:master Aug 24, 2022
@aronbierbaum aronbierbaum deleted the dev/typing_forward_ref branch August 24, 2022 01:17
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