rberga06.utils.func.sig.SigHelper#

class rberga06.utils.func.sig.SigHelper(sig: Signature, runtime: bool = True)#

Bases: Generic[_F]

Signature editing helper.

__init__(sig: Signature, runtime: bool = True)#

Methods

__init__(sig[, runtime])

chleading(param, /)

prepend(*params)

Prepend *params to the function's signature.

rmleading()

setruntime(runtime, /)

Set if this should be used on runtime.

Attributes

runtime

Also use this on runtime.

typing

Only use this for typing.

prepend(*params: type[Any]) SigHelper[Callable[[...], _R]]#

Prepend *params to the function’s signature.

property runtime: Self#

Also use this on runtime.

setruntime(runtime: bool, /) Self#

Set if this should be used on runtime.

property typing: Self#

Only use this for typing.