Runtime Types

types.EllipsisType — runtime type

Public name for the type of Ellipsis, whose only instance is the corresponding singleton. The literal ... denotes the same object. Custom indexing decides its interpretation. Calling the type with no arguments returns that singleton in CPython 3.13.

Formal Syntax & Structure

python syntaxpython
types.EllipsisType

Return Value

type

The class object types.EllipsisType; this reference documents the class identity, not a universal constructor signature.

Working Example

Example Snippetpython
import typesvalue = Ellipsisprint(isinstance(value, types.EllipsisType))
Python Reference