There was an error while loading. Please reload this page.
FloatInt
ComplexInt
1 parent 69209fd commit faaa858Copy full SHA for faaa858
1 file changed
stdlib/_typeshed/__init__.pyi
@@ -58,6 +58,14 @@ Unused: TypeAlias = object # stable
58
# for more information.
59
MaybeNone: TypeAlias = Any # stable
60
61
+# typeshed-internal type aliases to facilitate transition from
62
+# `float` to either `float | int` or `float` (and similar for `complex`).
63
+# When you encounter one of these type aliases, you are encouraged to
64
+# replace them with the correct type. Please don't use them outside typeshed.
65
+# See https://github.com/python/typeshed/issues/16059 for details.
66
+FloatInt: TypeAlias = float | int
67
+ComplexInt: TypeAlias = complex | float | int
68
+
69
# Used to mark arguments that default to a sentinel value. This prevents
70
# stubtest from complaining about the default value not matching.
71
#
0 commit comments