Hacker GitHub

← All repos

microsoft/pyright

View on GitHub ↗ ★ 15,724 Python

Static Type Checker for Python

68 mentions on Hacker News by 62 people: 5 stories, 63 comments · first 2019-03-24 · latest 2025-12-22

Mentions per year 68 mentions · busiest year 2023 (16)
20082026
  1. 1. https://docs.astral.sh/ty/ 2. https://github.com/microsoft/pyright 3. https://github.com/python-lsp/python-lsp-server 4. https://github.com/palantir/python-language-server
    comment by guessmyname · 2025-12-22 · in Claude Code gets native LSP support
  2. https://github.com/microsoft/pyright/blob/main/docs/type-inf...
    comment by kurtis_reed · 2025-12-17 · in Announcing the Beta release of ty
  3. …Pyright that it will warn against idiomatic Python (EAFP) in favour of non-idiomatic Python (LBYL): https://github.com/microsoft/pyright/issues/1739 https://docs.python.org/3/glossary.html#term-EAFP https://docs.python.org/3/glossary.html#t…
  4. …current time of August 2025 when this was written. mypy - https://github.com/python/mypy Pyright - https://github.com/microsoft/pyright Pyrefly - https://github.com/facebook/pyrefly ty - https://github.com/astral-sh/ty
    comment by froh · 2025-08-20 · in An Update on Pytype
  5. …bunch of type errors. I'd expect pyrefly and ty to be slightly different from each other. See also: https://github.com/microsoft/pyright/blob/main/docs/mypy-com... https://htmlpreview.github.io/?https://github.com/python/typ...
  6. …it compare to Pyright on the utility / performance curve? Pyright is mature and already very fast. https://github.com/microsoft/pyright
  7. …behaviour. So if you want to write idiomatic Python, you need to disable typechecking TypedDicts. — https://github.com/microsoft/pyright/issues/1739 Now if this were a linter then I would understand. But a type checker should not be…
  8. This is a good summary: https://github.com/microsoft/pyright/blob/main/docs/mypy-com... But without that, I always felt like I was actively fighting mypy. It seemed like it was written for a totally different language than Python. Compared…
  9. I think that https://github.com/microsoft/pyright/blob/main/docs/mypy-com... actually covers the majority of my gripes with mypy, the main issues I encounter with mypy are due to its lack of precision. It produces a lot of false positives…
  10. …shortcomings of MyPy, I strongly suggest reading pyright's documentation for how they compare: https://github.com/microsoft/pyright/blob/main/docs/mypy-com... Quoting the pertinent part: > Pyright was designed with performance in mind. It…
  11. We have it already: https://github.com/microsoft/pyright
  12. …any benefit going up to pylance. Pyright is under the MIT license so it can be used for anything: https://github.com/microsoft/pyright/blob/main/LICENSE.txt
  13. ▲ 1
    Mypy vs. Pyright
    story by begoon · 2024-11-04 · 1 comment
  14. …and CI for a while because mypy didn’t support PEP 695 until its 1.11 release in July. [0] -- https://github.com/microsoft/pyright [1] -- https://github.com/python/mypy
    comment by wdroz · 2024-10-07 · in Python 3.13.0 Is Released
  15. …(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
  16. …(but still is somehow the main contributor to Pyright) the situation is even stranger to me. [1] https://github.com/microsoft/pyright/pull/7177#issuecomment-... (In case you are wondering, I do not have the time to maintain an independent…
  17. …say is that for all my code bases it is very fast after the first cold start. Comparison to mypy: https://github.com/microsoft/pyright/blob/main/docs/mypy-com...
  18. Have you checked out Pyright[1]? It's not one tool to rule then all, but it is nice and fast. [1] https://github.com/microsoft/pyright
    comment by C-Saunders · 2023-12-15 · in Oxlint – JavaScript linter written in Rust
  19. …just installs with pipx.) There is a document comparing Pyright and mypy in the Pyright repository: https://github.com/microsoft/pyright/blob/b09f35889a9cc9b262... .
    comment by networked · 2023-10-17 · in Mypy 1.6
  20. Not exactly what you are looking for but maybe useful to others. https://github.com/microsoft/pyright/blob/main/docs/mypy-com...
    comment by infecto · 2023-10-17 · in Mypy 1.6
  21. …looking back. It’s been a faster, more powerful replacement with (in my case), zero downside. [0]: https://github.com/microsoft/pyright
    comment by KolmogorovComp · 2023-10-17 · in Mypy 1.6
  22. …use pyright instead[0]. It is the FOSS version of pyright, but having some features missing. [0]: https://github.com/microsoft/pyright
  23. …s://github.com/python/mypy/commit/6f0826a9c169c4f05bb893... [2] https://peps.python.org/pep-0484/ [3] https://github.com/microsoft/pyright/commit/1d91744b1f268fd0...
    comment by Kwpolska · 2023-04-16 · in The different uses of Python type hints
  24. ▲ 5
    Ask HN: Is there a good PyCharm setup for Pyright?
    story by jengland · 2023-02-28 · 0 comments
  25. …that. I feel its strength is that it lets you add as much detail to the types as is convenient. [1] https://github.com/microsoft/pyright
    comment by Hasnep · 2023-02-28 · in Python is two languages now
  26. The only one that's stuck with me is https://github.com/microsoft/pyright , mainly because I thought it was strange that Microsoft would publish something such a lackluster README. It's not the worst ever, but it lacks a clear sales pitch…
    comment by czx4f4bd · 2023-01-04 · in 10x C++ Editor
  27. …not plan to support snippets on Pyright (but open to supporting it on Pylance, which is not OSS). https://github.com/microsoft/pyright/issues/924
    comment by chaychoong · 2023-01-03 · in Pyright: Static Type Checker for Python
  28. This issue has some pointers: https://github.com/microsoft/pyright/discussions/3222
    comment by tyingq · 2023-01-02 · in Pyright: Static Type Checker for Python
  29. From this comparison ( https://github.com/microsoft/pyright/blob/main/docs/mypy-com... ) it looks like Pyright fixes a load of issues that MyPy has. It also seems much closer to how TypeScript works (I have worked significantly more with…
    comment by samwillis · 2023-01-02 · in Pyright: Static Type Checker for Python
  30. An important difference is that pyright doesn't support plug-ins. https://github.com/microsoft/pyright/issues/607 E.g. https://github.com/Shoobx/mypy-zope can't work with pyright
    comment by Recursing · 2023-01-02 · in Pyright: Static Type Checker for Python
  31. …terms of things that are considered bugs in mypy, and things that are optional in mypy (via flags). https://github.com/microsoft/pyright/blob/main/docs/mypy-com... .
    comment by eatonphil · 2023-01-02 · in Pyright: Static Type Checker for Python
  32. ▲ 152
    Pyright: Static Type Checker for Python
    story by pen2l · 2023-01-02 · 57 comments
  33. …PEPs faster than we do. [1] https://github.com/google/pytype/blob/main/docs/developers/i... [2] https://github.com/microsoft/pyright
  34. Woah, Pyright is written in Node? And it has its own [parser]( https://github.com/microsoft/pyright/blob/b74be3b2cb2c5d35b9... )? That's really interesting. I wonder how it compares to Mypy on speed. > The main thing that eventually forced…
    comment by charliermarsh · 2022-08-23 · in Using Mypy in Production
  35. …[3] https://github.com/pydantic/pydantic [4] https://peps.python.org/pep-0681/ [5] https://github.com/microsoft/pyright/blob/8a1932b/specs/data...
    comment by tony · 2022-08-23 · in Using Mypy in Production
  36. …static typing is no better, but at least it allows you to turn it off when it's not worth it. [1]: https://github.com/microsoft/pyright [2]: https://github.com/python/mypy [3]: https://github.com/google/pytype [4]:…
  37. …that seems decidedly not better is the 651 NPM dependencies [1] it apparently drags along. [1] https://github.com/microsoft/pyright/blob/main/package-lock....
    comment by ptx · 2022-06-27 · in What's New in Python 3.11?
  38. …Pylance is proprietary but the core of it is the Pyright library which is completely open (see: https://github.com/microsoft/pyright ). It would be nice if they were more transparent about the differences between the two and why Pylance is…
  39. pyright is a command line program https://github.com/microsoft/pyright in my experience it's a far better type checker than mypy, which tends to silently not check things without you ever realising
  40. …shortcoming. [0] https://github.com/RussBaz/enforce [1] https://github.com/agronholm/typeguard [2] https://github.com/microsoft/pyright [3] https://pydantic-docs.helpmanual.io [4] https://github.com/tiangolo/fastapi [5]…
  41. …important for, say, <1000 line scripts). I default to strict mode for stuff that’s not too dynamic. https://github.com/microsoft/pyright https://marketplace.visualstudio.com/items?itemName=ms-pytho...
  42. …seemingly because they don't understand the difference between a variable and a binding ( https://github.com/microsoft/pyright/discussions/2441 ). As for Pyre, last I checked it had a lot of false positives that Mypy doesn't. Besides all…
  43. ▲ 1
    Pyright – Static type checker for Python
    story by gjvc · 2022-02-21 · 0 comments
  44. Not to be confused with https://github.com/microsoft/pyright and dozens more smaller projects.
  45. Not to be confused with https://github.com/microsoft/pyright
    comment by ataylor32 · 2022-02-19 · in Pyrite – open-source video conferencing
  46. yes, check out https://github.com/microsoft/pyright/blob/main/specs/datacla...
  47. …as I know, most language plugins still use LSP, including Typescript/Javascript, Rust, and Go. [1] https://github.com/microsoft/pyright
    comment by pitaj · 2021-11-26 · in Batteries included with Emacs (2020)
  48. Check out https://github.com/microsoft/pyright , it's pretty snappy if you don't mind some JS in your ecosystem.
    comment by wbobeirne · 2021-11-10 · in Twelve Years of Go
  49. …python-language-server by MS - that one has been superseded by Pyright and is deprecated in Code. https://github.com/microsoft/pyright https://github.com/Microsoft/python-language-server The only(?) one not by MS is Jedi:…
    comment by ReleaseCandidat · 2021-10-24 · in Can we trust Microsoft with open source?
  50. Thanks to the maintainer's great responsiveness, Pyright will implement such a warning soon: https://github.com/microsoft/pyright/issues/2308
    comment by davidatbu · 2021-09-16 · in Python Anti-Pattern