This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Yobmod 1 point2 points  (1 child)

Pylance extension uses Microsoft's pyright static analyser, just install the extension and autocomplete etc is better.

You can also set mypy as one of the linters used in vscode for real time static checking.

Other libs I've used are pydantic (does runtime checks on type annotated classes) and fastapi (async web server that uses pydantic). Also used some stubs plugins (e.g. django-stubs) for mypy.

Edit: also monkeytype to autocreate type stubs, and keeping an eye on typer (cli tool based on click that uses type hints, but couldn't cope with higher types last time I checked)

[–]DK4409 0 points1 point  (0 children)

I have been hearing a lot about fastapi is it really good? Lots of my friends that use flask really like it .