You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@RazCrimson any experiences/tips to convert a Python code for Python 3 typing ? Do you think that we must include an external type checker (like mypi or others) ?
@RazCrimson any experiences/tips to convert a Python code for Python 3 typing ? Do you think that we must include an external type checker (like mypi or others)
Yes, mypy would be nice to add it
For glances but since most of the our variables are dicts, typing them directly would not be really useful.
We should start typing after we define the models (pydantic issue mentioned above), otherwise we would have the change the types of all those dicts into their corresponding pydantic equivalents later which would be extra work.
Glances has been developed for Python 2. The next version (4.0.0) will only be compliant with Python 3.8 or higher.
It's time to refactor the code to provides runtime support for type hints: https://docs.python.org/3/library/typing.html
@RazCrimson any experiences/tips to convert a Python code for Python 3 typing ? Do you think that we must include an external type checker (like mypi or others) ?
Some resources found on the net:
The text was updated successfully, but these errors were encountered: