3 ms·
I just ran ty and it can't resolve any imports whereas pyrefly passes. Why would that be? I hate Python so much.
by koakuma-chan 1y ago
I just ran ty and it can't resolve any imports whereas pyrefly passes. Why would that be? I hate Python so much.
- zanie 1y agoty 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.
- akdor1154 1y ago> I hate Python so much. Look I get that it's frustrating, but the tool you're whinging about is literally pre-alpha.
- zem 1y agoI love the language, but I do hate the import system too, it makes everything harder
- koakuma-chan 1y agoI just put __init__.py everywhere, not sure it does something but to be safe