python-gino / gino

GINO Is Not ORM - a Python asyncio ORM on SQLAlchemy core.
https://python-gino.org/
Other
2.67k stars 150 forks source link

Added typing support to json_support.py #780

Closed ShahriyarR closed 1 year ago

ShahriyarR commented 3 years ago

As per our discussion, I have started to add typing support with json_support.py file, and here are the notes we have on the way:

What I did so far:

$ mypy src/gino/json_support.py
Success: no issues found in 1 source file

You should notice that most of the methods are accepting Any and returning Any, this is also true for sqlalchemy2-stubs base_exp is Any and astext is Any also it seems to be the cast method also returns Any type :)