Why do I get a TypeError: requires a single type ================================================ The full error message looks something like this: .. code-block:: TypeError: typing.Optional requires a single type. Got Field(name=None,type=None,default=,default_facto. This error means the typing annotations for a model are ambiguous because they collide with a class field. If you use Python 3.7 or later, you can set :code:`PostponedAnnotations` to :code:`true` in the :ref:`GeneratorOutput` section of the :ref:`generator config ` to solve this issue. This will enable Postponed Evaluations of Annotations (`PEP 563 `_) and the generated bindings will be able to be imported without errors. This feature is not available for Python 3.6 because :code:`annotations` were added to the :code:`__future__` module in Python 3.7.0b1. **Example** .. literalinclude:: /../tests/fixtures/annotations/model.py :language: python