@@ -3983,7 +3983,7 @@ bool_ = bool
3983
3983
# NOTE: Because mypy has some long-standing bugs related to `__new__`, `object_` can't
3984
3984
# be made generic.
3985
3985
@final
3986
- class object_ (_RealMixin , generic ):
3986
+ class object_ (_RealMixin , generic [ Any ] ):
3987
3987
@overload
3988
3988
def __new__ (cls , nothing_to_see_here : None = None , / ) -> None : ... # type: ignore[misc]
3989
3989
@overload
@@ -3997,6 +3997,8 @@ class object_(_RealMixin, generic):
3997
3997
@overload # catch-all
3998
3998
def __new__ (cls , value : Any = ..., / ) -> object | NDArray [Self ]: ... # type: ignore[misc]
3999
3999
def __init__ (self , value : object = ..., / ) -> None : ...
4000
+ def __hash__ (self , / ) -> int : ...
4001
+ def __call__ (self , / , * args : object , ** kwargs : object ) -> Any : ...
4000
4002
4001
4003
if sys .version_info >= (3 , 12 ):
4002
4004
def __release_buffer__ (self , buffer : memoryview , / ) -> None : ...
@@ -4453,6 +4455,9 @@ class timedelta64(_IntegralMixin, generic[_TD64ItemT_co], Generic[_TD64ItemT_co]
4453
4455
@overload
4454
4456
def __init__ (self , value : _ConvertibleToTD64 , format : _TimeUnitSpec = ..., / ) -> None : ...
4455
4457
4458
+ # inherited at runtime from `signedinteger`
4459
+ def __class_getitem__ (cls , type_arg : type | object , / ) -> GenericAlias : ...
4460
+
4456
4461
# NOTE: Only a limited number of units support conversion
4457
4462
# to builtin scalar types: `Y`, `M`, `ns`, `ps`, `fs`, `as`
4458
4463
def __int__ (self : timedelta64 [int ], / ) -> int : ...
0 commit comments