mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-18 17:41:12 +00:00
178 B
178 B
Shadwing declaration
Shadow after incompatible declarations is OK
def _(flag: bool):
if flag:
x: str
else:
x: int
x: bytes = b"foo"