Hacker GitHub

← All repos

google/pytype

View on GitHub ↗ ★ 5,034 Python archived

A static type analyzer for Python code

42 mentions on Hacker News by 29 people: 4 stories, 38 comments · first 2015-11-25 · latest 2026-06-24

Mentions per year 42 mentions · busiest year 2019 (8)
20082026
  1. …Even some other tools in github.com/google have as much: https://github.com/google/python-fire / https://github.com/google/pytype/blob/main/docs/index.md / https://github.com/google/dopamine / https://github.com/google/go-tika
  2. …Google's own /google/ organization. To give a few examples: https://github.com/google/python-fire / https://github.com/google/pytype/blob/main/docs/index.md / https://github.com/google/dopamine / https://github.com/google/go-tika Also…
  3. in the related FAQ https://github.com/google/pytype/issues/1925 they point explicitly to the future: > What alternatives can I consider? There are four Python static type checkers that can be considered: mypy and Pyright have been released…
    comment by froh · 2025-08-20 · in An Update on Pytype
  4. ▲ 199
    An Update on Pytype
    story by mxmlnkn · 2025-08-20 · 66 comments
  5. pytype is based in part upon byterun https://github.com/google/pytype/blob/main/docs/developers/i... I learnt a lot about bytecode interpreters from working on it, and it helped me understand the cpython source code a lot more easily from…
  6. …fast and supports all the pytype features (especially being able to type-check un-annotated code). https://github.com/google/pytype?tab=readme-ov-file#pytype--...
  7. pytype ( https://github.com/google/pytype ) is based on symbolic interpretation of python bytecode, but with the data stack storing types rather than values. it works very well and has been running in production within google forever. the…
  8. …OCaml. Last time I checked, these had better type inference algorithms (Hindley-Milner?) than mypy. https://github.com/google/pytype https://github.com/google/pytype https://github.com/microsoft/pyright
    comment by zeotroph · 2024-08-12 · in GIL Become Optional in Python 3.13
  9. my last job was working on [pytype]( https://github.com/google/pytype ), which uses abstract interpretation to do static type inference and checking for python. we used the cpython compiler to convert a program to bytecode, and then ran…
  10. …are not official google "products". my main project when I was at google was in that category: https://github.com/google/pytype - it was not an "official google product" in that google was not officially supporting it for external users,…
  11. it's open source! check out https://github.com/google/pytype and https://github.com/google/pytype/blob/main/docs/developers/t... for more on the multi-file runner
    comment by zem · 2024-04-27 · in Google lays off its Python team
  12. There are static type checkers, though: https://github.com/google/pytype So you can specify interfaces (protocols) and check them in your installation process.
  13. …means you have to litter __init__.py files everywhere, or it will create filename collisions. See https://github.com/google/pytype/issues/198 for more information. I've since started testing out pyre.
    comment by jscheel · 2023-08-10 · in Mypy 1.5 Released
  14. …an engineer for those companies. Am just curious if mypy is really the best option right now? [1] https://github.com/google/pytype [2] https://pyre-check.org/
    comment by extr · 2023-05-21 · in Writing Python like it's Rust
  15. Check out https://github.com/google/pytype
    comment by benreesman · 2023-01-27 · in The Python Paradox (2004)
  16. i work on https://github.com/google/pytype which is largely developed internally and then pushed to github every few days. the github commits are associated with the team's personal github accounts. pytype is not an "official google…
  17. …within vscode, and tends to add new and experimentally proposed typing PEPs faster than we do. [1] https://github.com/google/pytype/blob/main/docs/developers/i... [2] https://github.com/microsoft/pyright
  18. …not worth it. [1]: https://github.com/microsoft/pyright [2]: https://github.com/python/mypy [3]: https://github.com/google/pytype [4]: https://github.com/facebook/pyre-check [5]: https://peps.python.org/pep-3107/ [6]:…
  19. …it's not foolproof, but it's better than treating everything as an undifferentiated string. [0] https://github.com/google/pytype
  20. …Which one are you using and what's your impression? [1] https://mypy.readthedocs.io/en/stable/ [2] https://github.com/google/pytype
    comment by flakiness · 2021-05-10 · in Pyre: A performant type-checker for Python 3
  21. Python has this: https://github.com/google/pytype "Pytype checks and infers types for your Python code - without requiring type annotations."
  22. …mentioned below, also added Pyright [2] by Microsoft [0] https://github.com/facebook/pyre-check [1] https://github.com/google/pytype [2] https://github.com/microsoft/pyright
    comment by ehsankia · 2020-11-12 · in Guido van Rossum joins Microsoft
  23. …stub files, so you can annotate a third party api yourself ( https://github.com/python/typeshed , https://github.com/google/pytype/tree/master/pytype/pytd/std... ), so even this claim is ultimately untrue.
    comment by joshuamorton · 2020-10-06 · in Python 3.9
  24. I don't have experience with it, but pytype can do that: https://github.com/google/pytype After typechecking it leaves provisional stubs in .pytype/pyi/, and it has a tool to merge them into the original code. mypy has stubgen:…
  25. …buggy. [1] https://github.com/dropbox/pyannotate [2] https://github.com/instagram/MonkeyType [3] https://github.com/google/pytype
    comment by takeda · 2019-10-30 · in Thank You, Guido
  26. …MonkeyType (Instagram) [3] all do dynamic / runtime PEP-484 type annotation type inference [4] [1] https://github.com/google/pytype [2] https://github.com/dropbox/pyannotate [3] https://github.com/Instagram/MonkeyType [4]…
    comment by westurner · 2019-09-19 · in Show HN: Python Tests That Write Themselves
  27. …[2] https://github.com/facebook/pyre-check [3] https://github.com/microsoft/pyright [4] https://github.com/google/pytype
  28. …etc. is not a bad idea. [0]: https://google.github.io/styleguide/pyguide.html#3191-genera... [1]: https://github.com/google/pytype
    comment by joshuamorton · 2019-06-11 · in A Failed Experiment with Python Type Annotations
  29. ▲ 63
    Pytype – A static type analyzer for Python code
    story by fanf2 · 2019-03-24 · 29 comments
  30. Microsoft, Facebook, and Google all have their own Python type checkers now. * https://github.com/google/pytype * https://github.com/facebook/pyre-check
    comment by anurag · 2019-03-24 · in Pyright: Static type checker for Python
  31. ▲ 4
    Pytype checks and infers types for your Python code
    story by mkesper · 2019-03-21 · 1 comment
  32. …Not strictly related, but there are also other type checkers, too: At Google, we've got pytype ( https://github.com/google/pytype ) and Facebook has pyre-check ( https://github.com/facebook/pyre-check ). I've tried neither myself.
  33. i work on pytype [ https://github.com/google/pytype ], a similar project for python, and it has definitely made business sense. it lets developers code in the language they find most productive (largely due to its dynamic nature), and adds…
  34. …project to do type inference for Python written in Prolog, although they've since [switched away]( https://github.com/google/pytype ).
    comment by kccqzy · 2018-05-21 · in The Power of Prolog
  35. It's opensource and available externally tpp https://github.com/google/pytype It just doesn't seem to have gotten as much traction yet.
    comment by ehsankia · 2018-05-12 · in Pyre: Fast Type Checking for Python
  36. pytype [ https://github.com/google/pytype ] does do type inference (disclaimer - i work on it). if you supply an explicit type annotation it will be checked for correctness, and if not we trace through the control flow graph to figure out…
    comment by zem · 2018-05-11 · in Pyre: Fast Type Checking for Python
  37. …pytype[2]. [0]: http://ttendency.cs.ucl.ac.uk/projects/type_study/ [1]: http://mypy-lang.org/ [2]: https://github.com/google/pytype
  38. For any dropboxers (or others), how does this compare with pytype? https://github.com/google/pytype .
  39. There's a patch from pytype that backported the type annotation syntax from python3 to python27: https://github.com/google/pytype/blob/master/pytype/patches/...
  40. There is also Google's pytype: https://github.com/google/pytype
    comment by shalabhc · 2017-06-15 · in Instagram Makes a Smooth Move to Python 3
  41. ▲ 2
    PyType
    story by calanya · 2016-02-28 · 0 comments
  42. …Same exact effect. The syntax isn't the magic sauce, the type checker is. http://www.mypy-lang.org/ https://github.com/google/pytype
    comment by sitkack · 2015-11-25 · in Python 3.5 type hinting in PyCharm 5