On this page
types.EllipsisType
Prev: types.DynamicClassAttribute | Up: types | Next: types.FrameType
Rel: types.AsyncGeneratorType, types.BuiltinFunctionType, types.BuiltinMethodType, types.CapsuleType
Ref: docs.python.org — types.EllipsisType
Tags: #public #python3 #stdlib #types
Import
import types
from types import EllipsisType
Signature & Overview
types.EllipsisType()
The type of the Ellipsis singleton.
Usage
import types
if hasattr(types, 'EllipsisType'):
assert isinstance(..., types.EllipsisType)
Gotchas
- Requires Python 3.10+: Clean type annotation for the
...(Ellipsis) singleton.
REPL Inspect
from types import EllipsisType
help(EllipsisType)
Linked from
Related notes
- tuts/python3/stdlib_module/types/DynamicClassAttribute Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/FrameType Linked here; links to this page; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/types/AsyncGeneratorType Linked here; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/BuiltinFunctionType Linked here; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/BuiltinMethodType Linked here; shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/CapsuleType Linked here; shared tags: #stdlib, #types
- tuts/c/stdlib/stdint_stdbool_and_limits shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/CellType shared tags: #stdlib, #types
- tuts/python3/stdlib_module/types/ClassMethodDescriptorType shared tags: #stdlib, #types