[flake8-pyi] - fix dropped exprs in PYI030 autofix (#13727)

This commit is contained in:
Steve C 2024-10-13 06:33:03 -04:00 committed by GitHub
parent 3209953276
commit 46bc69d1d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 0 deletions

View file

@ -87,3 +87,7 @@ field24: typing.Union[Literal[1], typing.Union[Literal[2], typing.Union[Literal[
# Should use the first literal subscript attribute when fixing
field25: typing.Union[typing_extensions.Literal[1], typing.Union[Literal[2], typing.Union[Literal[3], Literal[4]]], str] # Error
from typing import IO, Literal
InlineOption = Literal["a"] | Literal["b"] | IO[str]