On this page
typing.ParamSpecKwargs
Prev: typing.ParamSpecArgs | Up: typing | Next: typing.Protocol
Rel: typing.AbstractSet, typing.Annotated, typing.Any, typing.assert_never
Ref: docs.python.org — typing.ParamSpecKwargs
Tags: #public #python3 #stdlib #typing
Import
import typing
from typing import ParamSpecKwargs
Signature & Overview
typing.ParamSpecKwargs(...)
The kwargs for a ParamSpec object.
Usage
from typing import ParamSpec, ParamSpecKwargs
P = ParamSpec("P")
assert isinstance(P.kwargs, ParamSpecKwargs)
Gotchas
- Accessed via
P.kwargs(Python 3.10+): Must be paired withP.argson the same function signature.
REPL Inspect
from typing import ParamSpecKwargs
help(ParamSpecKwargs)
Linked from
Related notes
- tuts/python3/stdlib_module/typing/ParamSpecArgs Linked here; links to this page; shared tags: #stdlib, #typing
- tuts/python3/stdlib_module/typing/Protocol Linked here; links to this page; shared tags: #stdlib, #typing
- tuts/python3/stdlib_module/typing Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/typing/AbstractSet Linked here; shared tags: #stdlib, #typing
- tuts/python3/stdlib_module/typing/Annotated Linked here; shared tags: #stdlib, #typing
- tuts/python3/stdlib_module/typing/Any Linked here; shared tags: #stdlib, #typing
- tuts/python3/stdlib_module/typing/assert_never Linked here; shared tags: #stdlib, #typing
- tuts/python3/stdlib_module/typing/assert_type shared tags: #stdlib, #typing
- tuts/python3/stdlib_module/typing/AsyncContextManager shared tags: #stdlib, #typing
- tuts/python3/stdlib_module/typing/AsyncGenerator shared tags: #stdlib, #typing