kwargs_for

photonforge.typing.kwargs_for(fn_or_cls, **annotations)[source]

Type that represents keyword arguments for a function or class.

Parameters:
  • fn_or_cls (Callable[[...], object] | type) – Target function or class.

  • annotations (object)

Returns:

Data type.

Return type:

object