ID EN
Typing

ParamSpecKwargs

Python 3.11 🇮🇩 Bahasa Indonesia

Arguments and keyword arguments attributes of a ParamSpec. The P.args attribute of a ParamSpec is an instance of ParamSpecArgs, and P.kwargs is an instance of ParamSpecKwargs. They are intended for runtime introspection and have no special meaning to static type checkers.

Syntax

PYTHON
typing.ParamSpecKwargs

Contoh

Example 1
PYTHON
>>> from typing import ParamSpec, get_origin
>>> P = ParamSpec("P")
>>> get_origin(P.args) is P
True
>>> get_origin(P.kwargs) is P
True

See Also

ParamSpec get_origin()