ruff/crates/ruff_linter/resources/test/fixtures/pyupgrade/UP040.pyi

7 lines
207 B
Python

import typing
from typing import TypeAlias
# UP040
# Fixes in type stub files should be safe to apply unlike in regular code where runtime behavior could change
x: typing.TypeAlias = int
x: TypeAlias = int