mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +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"