scikit_build_core.utils package¶
Submodules¶
scikit_build_core.utils.typing module¶
- scikit_build_core.utils.typing.get_inner_type(_target, /)[source]¶
Takes a type like
list[str]and returns str, ordict[str, int]and returns int.
- scikit_build_core.utils.typing.get_target_raw_type(target, /)[source]¶
Takes a type like
Optional[str]and returns str, orOptional[Dict[str, int]]and returns dict. Returns Union for a Union with more than one non-none type. Literal is also a valid return. Works through Annotated.- Return type:
- scikit_build_core.utils.typing.is_union_type(raw_target)[source]¶
Check if raw_target is a Union type (either
typing.Unionortypes.UnionType). Handles bothtyping.Union[A, B]and PEP 604 syntax (A | B).- Return type: