This PR adds type annotations to most of the 'public' functions and methods (see #62)
It also fixes some mypy issues when unpacking a fact or use clorm's Control, Model or SolveHandle classes.
The query-API is not annotated with types. Theoretically it would be possible to add type annotations by using TypeVarTuple, Generic and some clever tricks to infer also the correct type when using joins, but there is a technical limitation which makes this not possible to use with py36 (see here)
This PR adds type annotations to most of the 'public' functions and methods (see #62) It also fixes some mypy issues when unpacking a fact or use clorm's Control, Model or SolveHandle classes.
The query-API is not annotated with types. Theoretically it would be possible to add type annotations by using
TypeVarTuple
,Generic
and some clever tricks to infer also the correct type when using joins, but there is a technical limitation which makes this not possible to use with py36 (see here)