Skip to content

Commit 3da82f9

Browse files
authored
Add __set_name__ method to property
__set_name__ is a built-in method of the property built-in, present from 3.10+
1 parent 983d92a commit 3da82f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎stdlib/builtins.pyi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,7 @@ class property:
16251625
fdel: Callable[[Any], None] | None = None,
16261626
doc: str | None = None,
16271627
) -> None: ...
1628+
def __set_name__(self, owner: type, name: str, /) -> None: ...
16281629
def getter(self, fget: Callable[[Any], Any], /) -> property: ...
16291630
def setter(self, fset: Callable[[Any, Any], None], /) -> property: ...
16301631
def deleter(self, fdel: Callable[[Any], None], /) -> property: ...

0 commit comments

Comments
 (0)