HENNGE / aiodynamo

Asynchronous, fast, pythonic DynamoDB Client
https://aiodynamo.readthedocs.io/
Other
73 stars 21 forks source link

Fix mypy type hints #120

Closed ojii closed 2 years ago

ojii commented 2 years ago

Fixes #119

Still can't use Callable with dataclasses, but looks like my attempt to make a generic Protocol to fix the issue failed, so now just using protocols directly.

Also added tests to mypy coverage to catch such issues in the future, even though typing tests is rather painful.