Types
no_default = NoDefault()
module-attribute
The instance of NoDefault
.
marker = Marker()
module-attribute
The instance of Marker
.
NoDefault
Bases: Singleton
Represents the absence of default values.
Source code in iters/types.py
28 29 |
|
Marker
Bases: Singleton
Represents markers used for various checks.
Source code in iters/types.py
57 58 |
|
is_no_default(item: Any) -> TypeGuard[NoDefault]
Checks if the item
is NoDefault
.
Returns:
Type | Description |
---|---|
TypeGuard[NoDefault]
|
Whether the |
Source code in iters/types.py
39 40 41 42 43 44 45 |
|
is_not_no_default(item: NoDefaultOr[T]) -> TypeGuard[T]
Checks if the item
is not NoDefault
.
Returns:
Type | Description |
---|---|
TypeGuard[T]
|
Whether the |
Source code in iters/types.py
48 49 50 51 52 53 54 |
|
is_marker(item: Any) -> TypeGuard[Marker]
Checks if the item
is Marker
.
Returns:
Type | Description |
---|---|
TypeGuard[Marker]
|
Whether the |
Source code in iters/types.py
68 69 70 71 72 73 74 |
|
is_not_marker(item: MarkerOr[T]) -> TypeGuard[T]
Checks if the item
is not Marker
.
Returns:
Type | Description |
---|---|
TypeGuard[T]
|
Whether the |
Source code in iters/types.py
77 78 79 80 81 82 83 |
|