diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 699fe63c3b4b..2b758b24365b 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -193,7 +193,6 @@ asyncio.locks.Condition.locked asyncio.locks.Condition.release builtins.memoryview.__contains__ # C type that implements __getitem__ -builtins.property.__set_name__ # Doesn't actually exist builtins.reveal_locals # Builtins that type checkers pretends exist builtins.reveal_type # Builtins that type checkers pretends exist diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index db084758044e..1442f0536f3b 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1625,6 +1625,7 @@ class property: fdel: Callable[[Any], None] | None = None, doc: str | None = None, ) -> None: ... + def __set_name__(self, owner: type, name: str, /) -> None: ... def getter(self, fget: Callable[[Any], Any], /) -> property: ... def setter(self, fset: Callable[[Any, Any], None], /) -> property: ... def deleter(self, fdel: Callable[[Any], None], /) -> property: ...