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
This could be archived by either incorporating type hints inside the source code directly or creating a stub file .pyi.
The first one would probably be the prefered way as the library is relatively small but it can be cumbersome should older python versions still be supported (as for Python 2.7 - 3.5 these hints would need to be added as comments). Alternatively a simple stub could be created.
As however this library is fairly stable and no major features get added creating a new version for only newer python versions does not seem like to bad of an idea. (Especially given that 2.7 already reached end of live and 3.5 will do so too next month)
The text was updated successfully, but these errors were encountered:
I pushed my work so far. Mypy still outputs some errors and I accidentally let my formatter run on one of the files which I will have to manually revert to keep the diff as small as possible.
This could be archived by either incorporating type hints inside the source code directly or creating a stub file
.pyi
.The first one would probably be the prefered way as the library is relatively small but it can be cumbersome should older python versions still be supported (as for Python 2.7 - 3.5 these hints would need to be added as comments). Alternatively a simple stub could be created.
As however this library is fairly stable and no major features get added creating a new version for only newer python versions does not seem like to bad of an idea. (Especially given that 2.7 already reached end of live and 3.5 will do so too next month)
The text was updated successfully, but these errors were encountered: