The type ... (ellipsis). This is not a real type but a syntactic AST construct, used in Callable[..., T], for example. A semantically analyzed type will never have ellipsis types.
| 3453 | |
| 3454 | |
| 3455 | class EllipsisType(ProperType): |
| 3456 | """The type ... (ellipsis). |
| 3457 | |
| 3458 | This is not a real type but a syntactic AST construct, used in Callable[..., T], for example. |
| 3459 | |
| 3460 | A semantically analyzed type will never have ellipsis types. |
| 3461 | """ |
| 3462 | |
| 3463 | __slots__ = () |
| 3464 | |
| 3465 | def accept(self, visitor: TypeVisitor[T]) -> T: |
| 3466 | assert isinstance(visitor, SyntheticTypeVisitor) |
| 3467 | ret: T = visitor.visit_ellipsis_type(self) |
| 3468 | return ret |
| 3469 | |
| 3470 | def serialize(self) -> JsonDict: |
| 3471 | assert False, "Synthetic types don't serialize" |
| 3472 | |
| 3473 | |
| 3474 | class TypeType(ProperType): |
no outgoing calls
no test coverage detected
searching dependent graphs…