ruff/crates/ty_python_semantic/resources/mdtest/import
Aria Desires bd8812127d
[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
2025-11-11 13:04:42 -05:00
..
basic.md [ty] Check typeshed VERSIONS for parent modules when reporting failed stdlib imports (#20908) 2025-10-16 13:25:08 +00:00
builtins.md
case_sensitive.md
conditional.md [ty] No union with Unknown for module-global symbols (#20664) 2025-10-01 16:40:30 +02:00
conflicts.md
conventions.md [ty] Rename "possibly unbound" diagnostics to "possibly missing" (#20492) 2025-09-23 14:26:55 +00:00
cyclic.md [ty] Recognize submodules in self-referential imports (#18005) 2025-05-13 16:59:11 +02:00
dunder_all.md [ty] No union with Unknown for module-global symbols (#20664) 2025-10-01 16:40:30 +02:00
errors.md [ty] Fix bug where ty would think all types had an __mro__ attribute (#20995) 2025-10-27 11:19:12 +00:00
invalid_syntax.md Consistently wrap tokens in parser diagnostics in backticks instead of 'quotes' (#21163) 2025-10-31 11:59:11 -04:00
legacy_namespace.md [ty] add legacy namespace package support (#20897) 2025-10-17 03:16:37 +00:00
module_getattr.md [ty] prefer submodule over module __getattr__ in from-imports (#21260) 2025-11-03 15:24:01 -05:00
namespace.md [ty] No union with Unknown for module-global symbols (#20664) 2025-10-01 16:40:30 +02:00
nonstandard_conventions.md [ty] support absolute from imports introducing local submodules in __init__.py files (#21372) 2025-11-11 13:04:42 -05:00
partial_stub_packages.md [ty] Add link for namespaces being partial (#20015) 2025-08-20 21:28:57 -07:00
relative.md [ty] Improve error messages for unresolved attribute diagnostics (#20963) 2025-10-19 10:58:25 +01:00
site_packages_discovery.md [ty] Improve tests for site-packages discovery (#18374) 2025-05-30 07:32:21 +01:00
star.md [syntax-errors] Alternative match patterns bind different names (#20682) 2025-10-17 21:35:48 +00:00
stub_packages.md [ty] Fix relative imports in stub packages (#18132) 2025-05-16 15:30:10 +02:00
stubs.md
tracking.md