型注釈の品質のテストと保証
Python 型システム
目次:
Any
None
NoReturn
Never
float
complex
type[]
Self
@final
Final
Annotated
ClassVar
@override
TypeAlias
type
NewType
Literal
LiteralString
NewType()
@runtime_checkable
isinstance()
*args
**kwargs
Unpack
__call__
__new__
__init__
@overload
dataclass_transform
Required
NotRequired
assert_type()
reveal_type()
# type: ignore
cast()
TYPE_CHECKING
@no_type_check
@deprecated
Union
Optional