8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
types.EllipsisType
1 parent c322948 commit 00639fcCopy full SHA for 00639fc
Lib/test/test_types.py
@@ -713,6 +713,10 @@ def test_or_type_repr(self):
713
assert repr(int | None) == "int | None"
714
assert repr(int | typing.GenericAlias(list, int)) == "int | list[int]"
715
716
+ def test_ellipsis_type(self):
717
+ self.assertIsInstance(Ellipsis, types.EllipsisType)
718
+
719
720
class MappingProxyTests(unittest.TestCase):
721
mappingproxy = types.MappingProxyType
722
Lib/types.py
@@ -296,5 +296,6 @@ def wrapped(*args, **kwargs):
296
GenericAlias = type(list[int])
297
Union = type(int | str)
298
299
+EllipsisType = type(Ellipsis)
300
301
__all__ = [n for n in globals() if n[:1] != '_']
0 commit comments