compliance-trestle
compliance-trestle copied to clipboard
Leverage `--use-annotated` within DMCG to aliviate mypy / cython issues.
Issue description / feature objectives
constr(
style constrains, generated by the setup of DMCG, has issues with mypy (and pydantic). While it is not critical to fix --use-annotated
provides a formulation which is acceptable to mypy.
However, there appear to be two issues.
-
(To be reported to DMCG): datetime constraints add a 'regex' which is incompatible with this formulation and must be manually removed.
-
Similar for instances of emailstr
-
It appears to have broken the setup for gen_oscal's sorting of classes