astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Fix ecosystem false positives
charlie/type-form
6 minutes ago
[ty] Compact retained semantic maps
charlie/openai-memory-2pct
10 minutes ago
[ty] Add class-pattern reachability micro-benchmarks
charlie/bench
28 minutes ago
[ty] Cover subclass views of generic metaclass members
charlie/codex-metaclass-init-class-attributes
33 minutes ago
[ty] Follow aliases when resolving stub mappings (#25328) ## Summary `map_stub_definition` maps a stub definition to its "real-definition" (the same definition in a `py` file. This PR extends this mapping by resolving aliases. For: `main.py`: ```py from a import bar bar ``` `a/__init__.pyi`: ```py def bar() -> None: ... ``` `a/__init__.py`: ```py from .b import bar as bar ``` `a/b.py`: ```py def bar() -> None: """Implementation docstring""" ``` [Playground](https://play.ty.dev/f7255368-b291-4865-b4ca-6cac35a437e8) Clicking on `bar` in `main.py` performs the following step: 1. Resolve `bar` to `from a import bar` in `main.py` 2. Follow the import to `a/__init__.pyi` where it finds `def bar()` 3. `map_stub_definition` now tries to map `bar` to its implementation. It finds the `from .b import bar as bar` in `a/__init__.py` and **stops here** The step that is missing, and this PR adds, is that stub mapping must follow the import to the symbol's real definition. The same applies when resolving documentation: ty first tries to get the documentation from the stub. If that's missing, ty tries to resolve the documentation from the implementation. However, that requires resolving the import, because the import itself has no docstring. Closes https://github.com/astral-sh/ty/issues/2150
main
34 minutes ago
Shrink parser collections stored in the AST
micha/thin-vec-stmt
46 minutes ago
Declare AST sequence storage in the schema
micha/thin-vec-stmt
53 minutes ago
Don't intern?
micha/interned-names
2 hours ago
Latest Branches
CodSpeed Performance Gauge
+4%
[ty] Compact retained semantic maps
#25238
4 days ago
a59f05c
charlie/openai-memory-2pct
CodSpeed Performance Gauge
0%
[ty] Add a micro-benchmark for repeated narrowed loads
#25306
21 hours ago
8f74f88
charlie/bench
CodSpeed Performance Gauge
0%
[ty] Infer class attributes assigned by metaclass initialization
#25342
39 minutes ago
d9067e7
charlie/codex-metaclass-init-class-attributes
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs