@@ -519,12 +519,12 @@ __all__ = [ # noqa: RUF022
519
519
"bitwise_and" , "bitwise_count" , "bitwise_invert" , "bitwise_left_shift" , "bitwise_not" , "bitwise_or" ,
520
520
"bitwise_right_shift" , "bitwise_xor" , "block" , "bool" , "bool_" , "broadcast" , "busday_count" , "busday_offset" ,
521
521
"busdaycalendar" , "byte" , "bytes_" , "can_cast" , "cbrt" , "cdouble" , "ceil" , "character" , "choose" , "clip" ,
522
- "clongdouble" , "complex128" , "complex64 " , "complexfloating" , "compress" , "concat" ,
522
+ "clongdouble" , "complex64" , " complex128" , "complex192" , "complex256 " , "complexfloating" , "compress" , "concat" ,
523
523
"concatenate" , "conj" , "conjugate" , "convolve" , "copysign" , "copyto" , "correlate" , "cos" , "cosh" , "count_nonzero" ,
524
524
"cross" , "csingle" , "cumprod" , "cumsum" , "cumulative_prod" , "cumulative_sum" , "datetime64" , "datetime_as_string" ,
525
525
"datetime_data" , "deg2rad" , "degrees" , "diagonal" , "divide" , "divmod" , "dot" , "double" , "dtype" , "e" , "einsum" ,
526
526
"einsum_path" , "empty" , "empty_like" , "equal" , "errstate" , "euler_gamma" , "exp" , "exp2" , "expm1" , "fabs" , "finfo" ,
527
- "flatiter" , "flatnonzero" , "flexible" , "float16" , "float32" , "float64" , "float_power" ,
527
+ "flatiter" , "flatnonzero" , "flexible" , "float16" , "float32" , "float64" , "float96" , "float128" , " float_power" ,
528
528
"floating" , "floor" , "floor_divide" , "fmax" , "fmin" , "fmod" , "format_float_positional" , "format_float_scientific" ,
529
529
"frexp" , "from_dlpack" , "frombuffer" , "fromfile" , "fromfunction" , "fromiter" , "frompyfunc" , "fromstring" , "full" ,
530
530
"full_like" , "gcd" , "generic" , "geomspace" , "get_printoptions" , "getbufsize" , "geterr" , "geterrcall" , "greater" ,
@@ -595,11 +595,6 @@ __all__ = [ # noqa: RUF022
595
595
"__version__" ,
596
596
] # fmt: skip
597
597
598
- if sys .platform == "win32" or sys .platform == "cygwin" :
599
- __all__ += ["complex192" , "float96" ]
600
- else :
601
- __all__ += ["complex256" , "float128" ]
602
-
603
598
###
604
599
# Constrained types (for internal use only)
605
600
@@ -4703,10 +4698,8 @@ class longdouble(_FloatMixin[L[12, 16]], floating):
4703
4698
@override
4704
4699
def tolist (self , / ) -> Self : ... # pyright: ignore[reportIncompatibleMethodOverride]
4705
4700
4706
- if sys .platform == "win32" or sys .platform == "cygwin" :
4707
- float96 = longdouble
4708
- else :
4709
- float128 = longdouble
4701
+ float96 = longdouble
4702
+ float128 = longdouble
4710
4703
4711
4704
class complexfloating (inexact [complex ]):
4712
4705
@override
@@ -4893,10 +4886,8 @@ class clongdouble(complexfloating):
4893
4886
#
4894
4887
def __complex__ (self , / ) -> complex : ...
4895
4888
4896
- if sys .platform == "win32" or sys .platform == "cygwin" :
4897
- complex192 = clongdouble
4898
- else :
4899
- complex256 = clongdouble
4889
+ complex192 = clongdouble
4890
+ complex256 = clongdouble
4900
4891
4901
4892
# NOTE: The `object_` constructor returns the passed object, so instances with type `object_` cannot exists at runtime.
4902
4893
# NOTE: Because mypy does not fully support `__new__`, `object_` can't be made generic.
0 commit comments