compliance-trestle icon indicating copy to clipboard operation
compliance-trestle copied to clipboard

Leverage `--use-annotated` within DMCG to aliviate mypy / cython issues.

Open butler54 opened this issue 3 years ago • 0 comments

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.

  1. (To be reported to DMCG): datetime constraints add a 'regex' which is incompatible with this formulation and must be manually removed.

  2. Similar for instances of emailstr

  3. It appears to have broken the setup for gen_oscal's sorting of classes

Completion Criteria

butler54 avatar Nov 10 '21 03:11 butler54