mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-26 09:58:17 +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"