ruff
bd881212 - [ty] support absolute `from` imports introducing local submodules in `__init__.py` files (#21372)

Commit
156 days ago
[ty] support absolute `from` imports introducing local submodules in `__init__.py` files (#21372) By resolving `.` and the LHS of the from import during semantic indexing, we can check if the LHS is a submodule of `.`, and handle `from whatever.thispackage.x.y import z` exactly like we do `from .x.y import z`. Fixes https://github.com/astral-sh/ty/issues/1484
Author
Parents
Loading