rail.plotting.validation module
- rail.plotting.validation.validate_inputs(a_class, expected_inputs, **kwargs)[source]
Validate that the kwargs given to a class contructor match the expected inputs
- Return type:
None- Raises:
TypeError if a kwarg is not of the expected type –
KeyError is a kwaags is not in the set of expected inptus –
- Parameters:
a_class (type)
expected_inputs (dict)
kwargs (Any)