On this page
  1. types.EllipsisType
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from types import EllipsisType
help(EllipsisType)

Linked from

Related notes