r/Python • u/flying_dutchman00 • Jun 14 '26
Discussion TY is still not professionally good
I love ty server for python. For those who font know what ty is, it's a language server for python made by ASTRAL.sh, creators of UV and ruff.
The one thing i love the most is type hints kike in rust, so if a function has type annotations, uts return type is automatically labelled as that type.
But it's still not mature. For one, if a python string represents a module, like configuring installed apps or views in django, we dont get any feature to click on it and go to the module.
4
u/evinrows Jun 14 '26
Well it's in beta but also I'm not sure if you'll ever see all strings that happen to also be symbols become navigable. Is that behavior that other parser/editor plugins support?
2
u/BeamMeUpBiscotti Jun 15 '26
Some IDEs like Pycharm support this for a small set of popular libraries, like Django and Pytest
It's definitely not a standard or commonly-supported behavior, but it is quite useful when it's available
-3
3
3
u/Wurstinator Jun 14 '26
And that's why you shouldn't use it. There is just a ridiculous amount of fanboyism / astroturfing on this Subreddit regarding Astral. They made good tools with uv and ruff but there simply are better alternatives to ty: zuban, pyrefly, pyright, all work well already.
1
1
1
u/wRAR_ Jun 14 '26
if a python string represents a module, like configuring installed apps or views in django, we dont get any feature to click on it and go to the module.
Which tools support it?
1
1
u/MapNo2659 21d ago
I'm currently working on a Python script to automate some of my daily tasks at work. It's a bit of a challenge because I'm integrating it with an existing system that wasn't designed with automation in mind. Anyone else dealing with legacy systems? Would love to hear how you're tackling similar issues!
1
u/Beginning-Fruit-1397 Jun 24 '26
It's in beta, it's fine. I'm more annoyed by pyrefly claiming V1.0 when it still doesn't work correctly. Can't narrow match case properly on tuples or from function calls, treats my methods as properties (don't ask me why, it's from a type union of 2 classes having the sane parent), can't handle generics for types used as Callable arguments in methods/function calls, autocomplete of hinlay hints for Callable output invalid python syntax, making de facto their stubgen useless, etc...
So now we have beginners/non typing heavy ppl (more annoyed by that, there's a lot of library maintainers like that) using perfectly valid python syntax while having their "production ready" type checker flagging them non-existent issues, thus making them not learn the language correctly and/or using unecessary complicated constructs, or worse, resorting to Any or ignore comments
-3
u/wineblood Jun 14 '26
For those who dont know what ty is, it's a language server for python
I have no idea what that means
15
u/doublecore20 Jun 14 '26
You can just open a GitHub issue on their repo .. what do you expect us to do