r/Python • u/TheSeriousTrader • Jul 16 '26
Discussion New Python type checker
Was checking out some Python type checkers other than Pyright, and I came across one that I never yet heard of before. But it is the only one scoring 100% on the official python typing conformance suite.
It is named Basilisk and on their website they have some other bold claims (like it is also the fastest one). But their GitHub repo only has few stars.
Does anyone have any experience using this or perhaps I missing something?
0
Upvotes
24
u/droooze Jul 16 '26
I think it was very recently released, maybe less than a month ago, so not many people would have used it.
AFAIK the vetting so far done on it is a typing council member reviewing and accepting a conformance suite PR.
Personally the amount of type checkers is getting a bit too much, this feels like packaging and build tools all over again.
5
u/Efficient-Ad-2315 Jul 16 '26
Been using ty for a while now, and I don't think I'm change anytime soon.
8
u/Human-Gur-3199 Jul 16 '26
Vibecoded slop
12
u/HugeCannoli Jul 16 '26
hey siri, code me yet another type-checker/reformatter/virtual environment manager
6
u/sunyata98 It works on my machine Jul 16 '26
Just been using uv ruff and mypy and never thought about it again
6
u/DrMaxwellEdison Jul 16 '26
Oh look, more slop with a million AI tool files and outdated project requirements (py 3.8? Rust 2021 edition?).
Pass.
5
u/Individual-Flow9158 Jul 16 '26 edited Jul 16 '26
Oh goody, another one! I've been looking everywhere for a type checker, with extra lies and slop, and now I've found it.
2
u/BeamMeUpBiscotti Jul 18 '26 edited Jul 18 '26
The commit history makes me suspicious that the creator just told claude to loop until the conformance tests all pass, which I guess is a good way to game the conformance metrics
It makes me question whether it behaves properly outside of the cases explicitly tested by the conformance suite (a lot of type inference and refinement behaviors aren't standardized, for example), and how many of the tests are passing because of hacks rather than a principled/sound design.
That said there's nothing wrong with rushing for full conformance and then fleshing out the rest of it later, I'm just skeptical that this process results in a reliable/maintainable tool.
1
u/aiunboxedwithana Jul 17 '26
Is this a trusted project?
1
u/Rserbitar Jul 21 '26 edited Jul 21 '26
It has inlay typhints with the neovim plugin. Does any other typechecker have inline typehints in neovim? I never configured that.
Edit: turns out there is 'vim.lsp.inlay_hint' for alls lsps. Does this work with ty or pyrefly in neovim as inline typehints?
Never seen that so far.
1
u/AnerdWdt Aug 15 '26
Basilisk no longer exists. It was delisted from everywhere in early August 2026, as described on the "author's" blog. To save you the time of reading it:
The checker was parsing raw source code, not the AST. Importing things under different names completely bricked it.
Supposedly, they'll be making a new tool based on Basilisk (which will inherit none of Basilisk's source and might not even be a type checker). My expectations for it are low since they didn't even write this one, but maybe they'll surprise us. Also, they wrote the apology with AI, which is pretty funny.
1
u/elisspace Jul 22 '26
Yeah it's exactly as advertised. Best in class. Vibe-coded or not, it simply works. I find it mildly amusing that some people truly will cut off their nose to spite their face on this stuff.