Skip to content

validate parameters through pydantic

Peter Lünenschloß requested to merge pydantic into develop

adresses #457

  • adds validate_signature decorator and decorates all the SaQC qc methods with it through mixin
  • this means type hints in decorated methods are dynamically checked through pydantic
  • adds a number of custom types as pydantic.RootModels (FreqStr, SaQCFields,...)
  • adds comparative Types Int and Float that yield constraint types as results from dunder comparisons against scalars in Annotations
  • overrides autodoc_typehints type hint parser to ensure bar notation for Union generic types.
Edited by Peter Lünenschloß

Merge request reports

Loading