mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Make __wrapped__ read-only on classmethods and staticmethods (#7694)
This commit is contained in:
@@ -122,7 +122,8 @@ class staticmethod(Generic[_R_co]):
|
||||
if sys.version_info >= (3, 10):
|
||||
__name__: str
|
||||
__qualname__: str
|
||||
__wrapped__: Callable[..., _R_co]
|
||||
@property
|
||||
def __wrapped__(self) -> Callable[..., _R_co]: ...
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> _R_co: ...
|
||||
|
||||
class classmethod(Generic[_R_co]):
|
||||
@@ -135,7 +136,8 @@ class classmethod(Generic[_R_co]):
|
||||
if sys.version_info >= (3, 10):
|
||||
__name__: str
|
||||
__qualname__: str
|
||||
__wrapped__: Callable[..., _R_co]
|
||||
@property
|
||||
def __wrapped__(self) -> Callable[..., _R_co]: ...
|
||||
|
||||
class type:
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user