Skip to content

typing.kwargs_for

kwargs_for(
fn_or_cls: Callable[..., object] | type, **annotations: object
) -> object

Type that represents keyword arguments for a function or class.

Args

  • fn_or_cls: Target function or class.

Returns

Data type.