mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-09 21:28:21 +00:00
290 B
290 B
Stubs
Import from stub declaration
from b import x
y = x
reveal_type(y) # revealed: int
b.pyi
:
x: int
Import from non-stub with declaration and definition
from b import x
y = x
reveal_type(y) # revealed: int
b.py
:
x: int = 1