-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
astral-sh/ruff
#22333Labels
runtime semanticsAccurate modeling of how Python's semantics work at runtimeAccurate modeling of how Python's semantics work at runtime
Milestone
Description
Summary
import typing
import os
from module import __file__ as module_path
typing.reveal_type(module_path). # str | None
os.path.abspath(module_path) # No overload of function `abspath` matches argumentsmypy and pyright both detect the successful import and type the value as str
Version
ty 0.0.1-alpha.15 (0369a35 2025-07-18)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
runtime semanticsAccurate modeling of how Python's semantics work at runtimeAccurate modeling of how Python's semantics work at runtime