frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: A Python Language Server, Mypy-compatible

https://zubanls.com/
38•davidhalter•4h ago
Having created Jedi in 2012, I started ZubanLS in 2020 to advance Python tooling. It understands Mypy config files and passes >95% of the relevant Mypy tests. AMA.

Comments

Grikbdl•4h ago
It's great to see so much innovation in this area. But, seeing that you will charge for this - what will you provide that won't be covered by free alternatives in e.g. Ty (Astral) or Pyre (Meta), which similarly seem to be "mypy but in rust and maybe lsp features"?
drcongo•4h ago
Last time I tried ty and pyre they weren't particularly great with a Django codebase, I'm sure ty will get there at some point, but if this handles django-stubs without any extra faffing, that's one potential selling point.

I did have the same thought as you at first though, and only carried on reading when I spotted that it was from the author of Jedi.

Grikbdl•3h ago
Both ty and Pyre are in development, so maybe the answer is just "this works and they don't". But they do promise to work eventually, like end of year if I recall correctly. I don't know what makes Django special in this regard though - is it the ORM models that don't work well with the typing spec or..?
drcongo•3h ago
I don't know anywhere near enough to answer that with any confidence I'm afraid. I'd like to hear op's opinion though.
ehutch79•3h ago
There's a lot of magic in Django, and yes that's particularly around the ORM.

The foreign key stuff and missing reverse relations in types a big issue, but there's other stuff like warning about class Meta: being incompatible because you're inheriting an abstract model.

I'm yet to find a good guide on how to handle typing a django project, even if only to get vscode to do autocomplete.

davidhalter•43m ago
I'm still thinking about a good model for the future, because I know that in the future they will be fine type checkers. I think the biggest advantage I have is that I don't burn big sums of money while doing it, so I only need a modest income. I think my current proposal would be a very fair way to make money. But I also see that this might not work if the competition offers everything for free and open source.

The ORM models do not work with typing at all, you basically have to make a lot of magic work if you want to support it in a type checker (especially if you want to work with reverse foreign keys). Generally type checkers do not just support the Django ORM. For Mypy there's a plugin that works pretty well, but uses runtime information, which further slows down Mypy.

zem•17m ago
it's that django does metaprogramming that cannot be expressed in terms of python's static type annotations. you need dedicated plugins that essentially replicate that metaprogramming to generate the relevant types.

it's not just django btw, pretty much any metaprogramming library needs that sort of custom support, including dataclasses - take a look at any python type checker and you will find code specifically replicating what dataclasses does in terms of code generation. for pytype we actually put dataclass and namedtuple support alongside our other third-party plugins in the codebase.

davidhalter•1h ago
Django compatibility could definitely be a selling point, but I haven’t built a dedicated Django plugin yet. Right now, I’m prioritizing features like auto-completion and go-to-definition, which I think are more impactful in the short term.

The thing is, both Ty and PyreFly aren’t really close to the level of Mypy or Pyright — neither in terms of features nor stability. ZubanLS already covers the important features, though there are still some bugs I’m working through. So in that sense, yes: At the moment the selling point is that it just works.

davidhalter•1h ago
If I'm perfectly honest, I don't know yet. I'm currently pretty open to any model that ensures long-term survival of the project. Some people might be interested because it can be used as a replacement for Mypy and I'm willing to solve the issues they have in their 1mLoC+ codebases. It is absolutely non-trivial at this point to replace Mypy with Pyright or vice-versa in a larger codebase.
dcreater•3h ago
Any reason to use and pay for this instead of pyrefly and ty?

(Relative maturity wouldn't be a good enough reason as those projects will progress quickly enough and both have great, solid, well backed teams behind them)

davidhalter•35m ago
I think you underestimate how hard it is to move from Mypy to Pyright in big codebases. Having something very very close to Mypy should be very interesting for some companies with 1mLoC+. Relative maturity can still be a reason for 1-2 years and I have no idea what to do at that point.

Relative maturity can be a reason for quite a while (people overestimate how far Pyrefly and Ty are).

zem•16m ago
nice work! what level of type inference do you do on unannotated code?

The AI Preacher: From the Cloud or the Spirit?

https://reviews.ofb.biz/safari/article/1327.html
1•trbutler•1m ago•0 comments

What's stopping America from going all-in on heat pumps?

https://climatedrift.substack.com/p/whats-stopping-america-from-going
1•ssuds•2m ago•0 comments

Google Offers Voluntary Buyouts to Core U.S. Teams Amid AI Push

https://www.searchenginejournal.com/google-offers-voluntary-buyouts-to-core-u-s-teams-amid-ai-push/548815/
1•1vuio0pswjnm7•4m ago•0 comments

Redwood Materials launches energy storage business targeting AI data centers

https://techcrunch.com/2025/06/26/redwood-materials-launches-energy-storage-business-and-its-first-target-is-ai-data-centers/
1•rntn•6m ago•0 comments

At Amazon's Biggest Data Center, Everything Is Supersized for A.I

https://www.nytimes.com/2025/06/24/technology/amazon-ai-data-centers.html
1•bookofjoe•6m ago•1 comments

Supreme Court Limits Use of Nationwide Injunctions

https://www.nytimes.com/live/2025/06/27/us/birthright-citizenship-supreme-court
2•masfuerte•7m ago•0 comments

DeepSeek's next-gen model delayed by Nvidia GPU export restrictions

https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-disruptor-deepseeks-next-gen-model-delayed-by-nvidia-h20-restrictions-short-supply-of-accelerators-hinders-development
1•twapi•7m ago•0 comments

Spiffe Overview

https://spiffe.io/docs/latest/spiffe-about/overview/
1•mooreds•7m ago•0 comments

Neuralink Update, Summer 2025 [video]

https://www.youtube.com/watch?v=FASMejN_5gs
1•frainfreeze•10m ago•0 comments

Ask HN: Is internet hobby tech dead?

3•gabordemooij•12m ago•2 comments

Show HN: I built an AI-Powered semantic search for Mac

https://github.com/neberej/smart-search
1•coffeecoders•14m ago•0 comments

Google offers 'voluntary' buyouts to ensure workers are 'deeply committed'

https://nypost.com/2025/02/03/tech/google-offers-voluntary-buyouts-to-ensure-workers-are-deeply-committed/
1•1vuio0pswjnm7•15m ago•2 comments

Show HN: Dutch (Online) Programming Language

https://citrine-lang.org/nl.ctr
1•gabordemooij•16m ago•0 comments

LogTen Pilot Logbook

https://logten.com/
1•m5r•17m ago•1 comments

Transmitting data via ultrasound without any special equipment

https://halcy.de/blog/2025/06/27/transmitting-data-via-ultrasound-without-any-special-equipment/
3•todsacerdoti•18m ago•0 comments

"Dry Pants Eat No Fish"

https://www.futilitycloset.com/2025/06/26/dry-pants-eat-no-fish/
1•speckx•18m ago•1 comments

Crewless ship is defending Denmark's and NATO's waters

https://www.euronews.com/next/2025/06/25/this-crewless-ship-is-defending-denmarks-and-natos-waters-this-is-how-it-works
2•MaysonL•19m ago•1 comments

Windows is getting rid of the Blue Screen of Death after 40 years

https://www.theverge.com/news/692648/microsoft-bsod-black-screen-of-death-color-change-official
1•sizzle•20m ago•1 comments

A Message Drifts

https://www.amygoodchild.com/blog/a-message-drifts
1•pavel_lishin•23m ago•0 comments

Tap water into hydrogen: Strategy lets PEM electrolyzers use impure water

https://techxplore.com/news/2025-06-hydrogen-strategy-pem-electrolyzers-impure.html
1•Brajeshwar•24m ago•0 comments

Best Open-Source Embedding Models Benchmarked and Ranked

https://supermemory.ai/blog/best-open-source-embedding-models-benchmarked-and-ranked/
3•dhravya•24m ago•0 comments

Reading the Fractals: What Nature's Patterns Say About Our Future

https://atmos.earth/reading-the-fractals-what-natures-patterns-say-about-our-future/
1•speckx•27m ago•0 comments

Deepseek faces possible removal from German app stores

https://the-decoder.com/deepseek-faces-possible-removal-from-german-app-stores/
1•amai•29m ago•0 comments

JavaScript Chose Violence

https://martinrue.com/javascript-chose-violence/
2•Qadriq•31m ago•0 comments

Microsoft Plans to Cut Thousands More Employees

https://www.wsj.com/tech/microsoft-layoffs-sales-ai-25638cab
3•1vuio0pswjnm7•32m ago•0 comments

The blind leading the gamers

https://www.wired.com/story/ross-minor-the-blind-leading-the-gamers/
1•PaulHoule•35m ago•0 comments

Combinatorial Explosion of Versions 5 Years Later

https://worklifenotes.com/2025/06/27/combinatorial-explosion-of-versions-5-years-later/
1•taleodor•37m ago•1 comments

Sites I created in the past that I thought would make me a millionaire

1•01-_-•37m ago•0 comments

Flashing open-source firmware into Eufy C120 IP Camera

https://blog.vasi.li/flashing-a-eufy-c-120-security-camera-with-custom-firmware/
2•vsviridov•38m ago•1 comments

'The Social Network 2' in the Works, Aaron Sorkin Directing

https://variety.com/2025/film/news/the-social-network-2-aaron-sorkin-directing-1236440596/
1•ohjeez•38m ago•0 comments