module documentation

Contains helper functions used for Python Metaprogramming magic.

Function resolve_generic_arguments Find target[...] generic typing arguments through an inheritance tree.
def resolve_generic_arguments(cls: type, target: type) -> tuple[type, ...] | None: ΒΆ

Find target[...] generic typing arguments through an inheritance tree.

Parameters
cls:typeconcrete class to resolve generic arguments from.
target:typesubclass of cls to resolve generic arguments for.
Returns
tuple[type, ...] | Nonetuple containing all resolved arguments.