Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just ran ty and it can't resolve any imports whereas pyrefly passes. Why would that be? I hate Python so much.


ty doesn't invoke a Python interpreter to discover imports yet — so you need to either set `VIRTUAL_ENV` or pass `--python` to configure your target environment. We'll expand support here in the future, but this part of ty's interface is intentionally minimal while we focus on core type checking features.


> I hate Python so much.

Look I get that it's frustrating, but the tool you're whinging about is literally pre-alpha.


I love the language, but I do hate the import system too, it makes everything harder


I just put __init__.py everywhere, not sure it does something but to be safe




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: