Add two missing ForwardRef attributes (#7402)

These look somewhat like implementation details, but no more so than any of the other dunder attributes that are already on the class.
This commit is contained in:
Alex Waygood
2022-03-01 05:44:28 +00:00
committed by GitHub
parent 1575c1b3b8
commit 3bbc36c92d

View File

@@ -1215,6 +1215,8 @@ if sys.version_info >= (3, 7):
__forward_evaluated__: bool
__forward_value__: Any | None
__forward_is_argument__: bool
__forward_is_class__: bool
__forward_module__: Any | None
if sys.version_info >= (3, 9):
# The module and is_class arguments were added in later Python 3.9 versions.
def __init__(self, arg: str, is_argument: bool = ..., module: Any | None = ..., *, is_class: bool = ...) -> None: ...