diff --git a/stdlib/@tests/stubtest_allowlists/py315.txt b/stdlib/@tests/stubtest_allowlists/py315.txt index 910f72b6ae56..e59eb1dbd82d 100644 --- a/stdlib/@tests/stubtest_allowlists/py315.txt +++ b/stdlib/@tests/stubtest_allowlists/py315.txt @@ -47,9 +47,6 @@ annotationlib.ForwardRef.__extra_names__ annotationlib.ForwardRef.__globals__ annotationlib.ForwardRef.__init_subclass__ annotationlib.ForwardRef.__owner__ -annotationlib.ForwardRef.__resolved_str__ -annotationlib.ForwardRef.__resolved_str_cache__ -annotationlib.ForwardRef.__slots__ annotationlib.ForwardRef.__stringifier_dict__ ast.type_param.__init__ # base64.b64decode uses a private sentinel list as the default for parameters whose public types are bool/buffer. diff --git a/stdlib/annotationlib.pyi b/stdlib/annotationlib.pyi index 3679dc29daaa..96450e441be7 100644 --- a/stdlib/annotationlib.pyi +++ b/stdlib/annotationlib.pyi @@ -41,10 +41,12 @@ if sys.version_info >= (3, 14): "__cell__", "__owner__", "__stringifier_dict__", + "__resolved_str_cache__", ) __forward_is_argument__: bool __forward_is_class__: bool __forward_module__: str | None + __resolved_str_cache__: str | None def __init__( self, arg: str, *, module: str | None = None, owner: object = None, is_argument: bool = True, is_class: bool = False ) -> None: ... @@ -91,6 +93,8 @@ if sys.version_info >= (3, 14): def __forward_arg__(self) -> str: ... @property def __forward_code__(self) -> types.CodeType: ... + @property + def __resolved_str__(self) -> str: ... def __eq__(self, other: object) -> bool: ... def __hash__(self) -> int: ... def __or__(self, other: Any) -> types.UnionType: ...