Python Type Hints - *args and **kwargs
code:結論.py
def variable(*args: int, **kwargs: int) -> None:
...
可変長引数の要素の型だけを書けばよい
* always binds to a tuple, and ** always binds to a dict with string keys.
Because of this restriction, type hints only need you to define the types of the contained arguments.
「型ヒントはあなたに、含まれる引数の型を定義することだけ必要とする」
The type checker automatically adds the tuple[_, ...] and dict[str, _] container types.
「型チェッカは自動で追加する」