Y
Hacker News
new
|
ask
|
show
|
jobs
by
bpicolo
3293 days ago
The language itself supports annotations, without any actual typechecking. You use
http://mypy-lang.org/
to get the static checking.
1 comments
shalabhc
3292 days ago
There is also Google's pytype:
https://github.com/google/pytype
link
bpicolo
3292 days ago
That looks like it adds types rather than checks?
link
shalabhc
3292 days ago
It does both. I
can
do some inference but definitely does type checking. Here's a Pycon talk from last year about pytype:
https://youtu.be/IDm_YIQihhs
link
bpicolo
3292 days ago
It needs severely more documentation, heh. Why would I use it over mypy, which appears to have a lot more community investment, thorough docs, and is somewhat official? It also doesn't support python3.6 so it doesn't know about format strings =/
link
shalabhc
3288 days ago
pytype might work better in some cases, because it can do inference. But yes, it needs more docs.
link