vehicle_common.utils#
Functions#
|
Returns the full import path of the provided type |
|
Resolve a serialized "module:QualName" path back into a class object. |
|
Module Contents#
- serialize_type(cls: type) str#
Returns the full import path of the provided type
- deserialize_type(path: str, base_cls: type | None = None) type#
Resolve a serialized “module:QualName” path back into a class object.
Tries to instantiate the class after importing the module.
- Parameters:
path – Serialized type reference in “module.path:QualName” form, as produced by serialize_type.
base_cls – If provided, validates that the type is a subclass of base_cls
- Returns:
The resolved class object.
- Raises:
ValueError – If path isn’t in “module:QualName” form, or the resolved object is not a subclass of base_cls.
- get_available_missions(package: str) list[str]#