jacksmith15 / statham-schema

Statham is a Python Model Parsing Library for JSON Schema.
https://statham-schema.readthedocs.io/en/latest/
MIT License
39 stars 10 forks source link

Unsupported converter typing error in generated converters #16

Closed jacksmith15 closed 4 years ago

jacksmith15 commented 4 years ago

Currently generated classes fail mypy checks on converters with the following error:

tests/models/simple.py:69: error: Unsupported converter, only named functions and types are currently supported

As such typing is ignored on these lines: https://github.com/jacksmith15/jsonschema-objects/blob/b8f857f9ee36f96342808fe965cca31c50a6b1f9/tests/models/simple.py#L69

This restricts the ability of the type checker to validate code, and should be resolved.

jacksmith15 commented 4 years ago

Resolved y moving to DSL over attrs