@@ -351,7 +351,6 @@ from ._pytesttester import PytestTester
351351from ._typing import (
352352 ArrayLike ,
353353 DTypeLike ,
354- NBitBase ,
355354 NDArray ,
356355 _ArrayLikeDT64_co ,
357356 _ArrayLikeObject_co ,
@@ -363,7 +362,6 @@ from ._typing import (
363362 _ScalarLike_co ,
364363 _ShapeLike ,
365364 _TD64Like_co ,
366- _nbit_base as _n ,
367365)
368366from ._typing ._char_codes import _LongCodes , _ULongCodes
369367from .lib import scimath as emath
@@ -661,10 +659,6 @@ _NumericT = TypeVar("_NumericT", bound=number | timedelta64)
661659_CoNumberT = TypeVar ("_CoNumberT" , bound = bool_ | number )
662660_CharT = TypeVar ("_CharT" , bound = character )
663661
664- _BitT = TypeVar ("_BitT" , bound = NBitBase , default = Any ) # pyright: ignore[reportDeprecated]
665- _BitT1 = TypeVar ("_BitT1" , bound = NBitBase , default = Any ) # pyright: ignore[reportDeprecated]
666- _BitT2 = TypeVar ("_BitT2" , bound = NBitBase , default = _BitT1 ) # pyright: ignore[reportDeprecated]
667-
668662_ItemT_co = TypeVar ("_ItemT_co" , default = Any , covariant = True )
669663_BoolItemT_co = TypeVar ("_BoolItemT_co" , bound = py_bool , default = py_bool , covariant = True )
670664_NumberItemT = TypeVar ("_NumberItemT" , bound = complex )
@@ -4380,11 +4374,7 @@ class bool_(generic[_BoolItemT_co], Generic[_BoolItemT_co]):
43804374
43814375bool = bool_
43824376
4383- class number (
4384- _CmpOpMixin [_nt .CoComplex_0d , _nt .CoComplex_1nd ],
4385- generic [_NumberItemT_co ],
4386- Generic [_BitT , _NumberItemT_co ],
4387- ):
4377+ class number (_CmpOpMixin [_nt .CoComplex_0d , _nt .CoComplex_1nd ], generic [_NumberItemT_co ], Generic [_NumberItemT_co ]):
43884378 @type_check_only
43894379 def __nep50_builtin__ (self , / ) -> tuple [int , Self ]: ...
43904380 @final
@@ -4411,7 +4401,7 @@ class number(
44114401 def __class_getitem__ (cls , item : Any , / ) -> GenericAlias : ...
44124402
44134403 #
4414- def __abs__ (self , / ) -> number [ _BitT ] : ...
4404+ def __abs__ (self , / ) -> number : ...
44154405 def __neg__ (self , / ) -> Self : ...
44164406 def __pos__ (self , / ) -> Self : ...
44174407
@@ -4525,7 +4515,7 @@ class number(
45254515# increases over time. Assuming that this *always* holds significantly reduces the
45264516# complexity of the `[u]intp` and `[u]long` type definitions.
45274517
4528- class integer (_IntegralMixin , _RoundMixin , number [_BitT , int ]):
4518+ class integer (_IntegralMixin , _RoundMixin , number [int ]):
45294519 @abc .abstractmethod
45304520 @type_check_only
45314521 def __nep50__ (
@@ -4670,7 +4660,7 @@ class integer(_IntegralMixin, _RoundMixin, number[_BitT, int]):
46704660 @overload
46714661 def __ror__ (self , x : _nt .CastsWithScalar [Self , _IntegralT ], / ) -> _IntegralT : ...
46724662
4673- class signedinteger (integer [ _BitT ] ):
4663+ class signedinteger (integer ):
46744664 @abc .abstractmethod
46754665 @type_check_only
46764666 @override
@@ -4691,7 +4681,7 @@ class signedinteger(integer[_BitT]):
46914681 @type_check_only
46924682 def __nep50_rule5__ (self , other : _JustInteger | _JustUnsignedInteger , / ) -> signedinteger | float64 : ...
46934683
4694- class int8 (_IntMixin [L [1 ]], signedinteger [ _n . _8 ] ):
4684+ class int8 (_IntMixin [L [1 ]], signedinteger ):
46954685 @override
46964686 @type_check_only
46974687 def __nep50__ (
@@ -4712,7 +4702,7 @@ class int8(_IntMixin[L[1]], signedinteger[_n._8]):
47124702
47134703byte = int8
47144704
4715- class int16 (_IntMixin [L [2 ]], signedinteger [ _n . _16 ] ):
4705+ class int16 (_IntMixin [L [2 ]], signedinteger ):
47164706 @override
47174707 @type_check_only
47184708 def __nep50__ (
@@ -4733,7 +4723,7 @@ class int16(_IntMixin[L[2]], signedinteger[_n._16]):
47334723
47344724short = int16
47354725
4736- class int32 (_IntMixin [L [4 ]], signedinteger [ _n . _32 ] ):
4726+ class int32 (_IntMixin [L [4 ]], signedinteger ):
47374727 @override
47384728 @type_check_only
47394729 def __nep50__ (
@@ -4757,7 +4747,7 @@ class int32(_IntMixin[L[4]], signedinteger[_n._32]):
47574747
47584748intc = int32
47594749
4760- class int64 (_IntMixin [L [8 ]], signedinteger [ _n . _64 ] ):
4750+ class int64 (_IntMixin [L [8 ]], signedinteger ):
47614751 @override
47624752 @type_check_only
47634753 def __nep50__ (
@@ -4795,7 +4785,7 @@ longlong = int64
47954785intp = int64
47964786int_ = intp
47974787
4798- class unsignedinteger (integer [ _BitT ] ):
4788+ class unsignedinteger (integer ):
47994789 @abc .abstractmethod
48004790 @type_check_only
48014791 @override
@@ -4808,7 +4798,7 @@ class unsignedinteger(integer[_BitT]):
48084798 @type_check_only
48094799 def __nep50_rule3__ (self , other : _JustUnsignedInteger , / ) -> unsignedinteger : ...
48104800
4811- class uint8 (_IntMixin [L [1 ]], unsignedinteger [ _n . _8 ] ):
4801+ class uint8 (_IntMixin [L [1 ]], unsignedinteger ):
48124802 @override
48134803 @type_check_only
48144804 def __nep50__ (
@@ -4833,7 +4823,7 @@ class uint8(_IntMixin[L[1]], unsignedinteger[_n._8]):
48334823
48344824ubyte = uint8
48354825
4836- class uint16 (_IntMixin [L [2 ]], unsignedinteger [ _n . _16 ] ):
4826+ class uint16 (_IntMixin [L [2 ]], unsignedinteger ):
48374827 @override
48384828 @type_check_only
48394829 def __nep50__ (
@@ -4860,7 +4850,7 @@ class uint16(_IntMixin[L[2]], unsignedinteger[_n._16]):
48604850
48614851ushort = uint16
48624852
4863- class uint32 (_IntMixin [L [4 ]], unsignedinteger [ _n . _32 ] ):
4853+ class uint32 (_IntMixin [L [4 ]], unsignedinteger ):
48644854 @override
48654855 @type_check_only
48664856 def __nep50__ (
@@ -4887,7 +4877,7 @@ class uint32(_IntMixin[L[4]], unsignedinteger[_n._32]):
48874877
48884878uintc = uint32
48894879
4890- class uint64 (_IntMixin [L [8 ]], unsignedinteger [ _n . _64 ] ):
4880+ class uint64 (_IntMixin [L [8 ]], unsignedinteger ):
48914881 @override
48924882 @type_check_only
48934883 def __nep50__ (
@@ -4923,7 +4913,7 @@ ulonglong = uint64
49234913uintp = uint64
49244914uint = uintp
49254915
4926- class inexact (number [_BitT , _InexactItemT_co ], Generic [_BitT , _InexactItemT_co ]):
4916+ class inexact (number [_InexactItemT_co ], Generic [_InexactItemT_co ]):
49274917 @abc .abstractmethod
49284918 @type_check_only
49294919 def __nep50__ (self , below : clongdouble , above : _nt .co_integer8 , / ) -> inexact : ...
@@ -4961,7 +4951,7 @@ class inexact(number[_BitT, _InexactItemT_co], Generic[_BitT, _InexactItemT_co])
49614951 @overload
49624952 def __rtruediv__ (self : _nt .CastsWithComplex [_ComplexFloatingT ], x : _nt .JustComplex , / ) -> _ComplexFloatingT : ... # pyright: ignore[reportIncompatibleMethodOverride]
49634953
4964- class floating (_RealMixin , _RoundMixin , inexact [_BitT , float ]):
4954+ class floating (_RealMixin , _RoundMixin , inexact [float ]):
49654955 @abc .abstractmethod
49664956 @override
49674957 @type_check_only
@@ -5009,7 +4999,7 @@ class floating(_RealMixin, _RoundMixin, inexact[_BitT, float]):
50094999 @overload
50105000 def __rdivmod__ (self , x : _nt .CastsWithScalar [Self , _FloatingT ], / ) -> _2Tuple [_FloatingT ]: ...
50115001
5012- class float16 (_FloatMixin [L [2 ]], floating [ _n . _16 ] ):
5002+ class float16 (_FloatMixin [L [2 ]], floating ):
50135003 @override
50145004 @type_check_only
50155005 def __nep50__ (self , below : inexact , above : _nt .co_integer8 , / ) -> float16 : ...
@@ -5030,7 +5020,7 @@ class float16(_FloatMixin[L[2]], floating[_n._16]):
50305020
50315021half = float16
50325022
5033- class float32 (_FloatMixin [L [4 ]], floating [ _n . _32 ] ):
5023+ class float32 (_FloatMixin [L [4 ]], floating ):
50345024 @override
50355025 @type_check_only
50365026 def __nep50__ (self , below : _float32_min | complexfloating , above : float16 | _nt .co_integer16 , / ) -> float32 : ...
@@ -5049,7 +5039,7 @@ class float32(_FloatMixin[L[4]], floating[_n._32]):
50495039
50505040single = float32
50515041
5052- class float64 (_FloatMixin [L [8 ]], floating [ _n . _64 ] , float ): # type: ignore[misc]
5042+ class float64 (_FloatMixin [L [8 ]], floating , float ): # type: ignore[misc]
50535043 @override
50545044 @type_check_only
50555045 def __nep50__ (self , below : _inexact64_min , above : _float32_max | _nt .co_integer , / ) -> float64 : ...
@@ -5085,7 +5075,7 @@ class float64(_FloatMixin[L[8]], floating[_n._64], float): # type: ignore[misc]
50855075
50865076double = float64
50875077
5088- class longdouble (_FloatMixin [L [12 , 16 ]], floating [ _n . _64L ] ):
5078+ class longdouble (_FloatMixin [L [12 , 16 ]], floating ):
50895079 @override
50905080 @type_check_only
50915081 def __nep50__ (
@@ -5123,7 +5113,7 @@ class longdouble(_FloatMixin[L[12, 16]], floating[_n._64L]):
51235113float96 = longdouble
51245114float128 = longdouble
51255115
5126- class complexfloating (inexact [_BitT1 , complex ], Generic [ _BitT1 , _BitT2 ]):
5116+ class complexfloating (inexact [complex ]):
51275117 @abc .abstractmethod
51285118 @override
51295119 @type_check_only
@@ -5172,7 +5162,7 @@ class complexfloating(inexact[_BitT1, complex], Generic[_BitT1, _BitT2]):
51725162 )
51735163 def __round__ (self , / , ndigits : CanIndex | None = None ) -> Self : ...
51745164
5175- class complex64 (complexfloating [ _n . _32 ] ):
5165+ class complex64 (complexfloating ):
51765166 @override
51775167 @type_check_only
51785168 def __nep50__ (self , below : complexfloating , above : _float32_max | _nt .co_integer16 , / ) -> complex64 : ...
@@ -5209,7 +5199,7 @@ class complex64(complexfloating[_n._32]):
52095199
52105200csingle = complex64
52115201
5212- class complex128 (complexfloating [ _n . _64 ] , complex ): # type: ignore[misc]
5202+ class complex128 (complexfloating , complex ): # type: ignore[misc]
52135203 @override
52145204 @type_check_only
52155205 def __nep50__ (self , below : _complex128_min , above : complex64 | _float64_max | _nt .co_integer , / ) -> complex128 : ...
@@ -5255,7 +5245,7 @@ class complex128(complexfloating[_n._64], complex): # type: ignore[misc]
52555245
52565246cdouble = complex128
52575247
5258- class clongdouble (complexfloating [ _n . _64L ] ):
5248+ class clongdouble (complexfloating ):
52595249 @override
52605250 @type_check_only
52615251 def __nep50__ (self , below : clongdouble , above : _nt .co_number , / ) -> clongdouble : ...
0 commit comments