@@ -40,7 +40,7 @@ PYI055.pyi:5:4: PYI055 [*] Multiple `type` members in a union. Combine them into
5 |+t: type[int | str | float]
6 6 | u: builtins.type[int] | type[str] | builtins.type[complex]
7 7 | v: Union[type[float], type[complex]]
8 8 | w: Union[type[float, int], type[complex]]
8 8 | w: Union[type[Union[ float, int]] , type[complex]]
PYI055.pyi:6:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[int | str | complex]`.
|
@@ -49,7 +49,7 @@ PYI055.pyi:6:4: PYI055 [*] Multiple `type` members in a union. Combine them into
6 | u: builtins.type[int] | type[str] | builtins.type[complex]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
7 | v: Union[type[float], type[complex]]
8 | w: Union[type[float, int], type[complex]]
8 | w: Union[type[Union[ float, int]] , type[complex]]
|
= help: Combine multiple `type` members
@@ -60,8 +60,8 @@ PYI055.pyi:6:4: PYI055 [*] Multiple `type` members in a union. Combine them into
6 |-u: builtins.type[int] | type[str] | builtins.type[complex]
6 |+u: type[int | str | complex]
7 7 | v: Union[type[float], type[complex]]
8 8 | w: Union[type[float, int], type[complex]]
9 9 | x: Union[Union[type[float, int], type[complex]]]
8 8 | w: Union[type[Union[ float, int]] , type[complex]]
9 9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
PYI055.pyi:7:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[Union[float, complex]]`.
|
@@ -69,8 +69,8 @@ PYI055.pyi:7:4: PYI055 [*] Multiple `type` members in a union. Combine them into
6 | u: builtins.type[int] | type[str] | builtins.type[complex]
7 | v: Union[type[float], type[complex]]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
8 | w: Union[type[float, int], type[complex]]
9 | x: Union[Union[type[float, int], type[complex]]]
8 | w: Union[type[Union[ float, int]] , type[complex]]
9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
|
= help: Combine multiple `type` members
@@ -80,18 +80,18 @@ PYI055.pyi:7:4: PYI055 [*] Multiple `type` members in a union. Combine them into
6 6 | u: builtins.type[int] | type[str] | builtins.type[complex]
7 |-v: Union[type[float], type[complex]]
7 |+v: type[Union[float, complex]]
8 8 | w: Union[type[float, int], type[complex]]
9 9 | x: Union[Union[type[float, int], type[complex]]]
10 10 | y: Union[Union[Union[type[float, int], type[complex]]]]
8 8 | w: Union[type[Union[ float, int]] , type[complex]]
9 9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
10 10 | y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
PYI055.pyi:8:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[Union[float, int, complex]]`.
PYI055.pyi:8:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[Union[Union[ float, int] , complex]]`.
|
6 | u: builtins.type[int] | type[str] | builtins.type[complex]
7 | v: Union[type[float], type[complex]]
8 | w: Union[type[float, int], type[complex]]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
9 | x: Union[Union[type[float, int], type[complex]]]
10 | y: Union[Union[Union[type[float, int], type[complex]]]]
8 | w: Union[type[Union[ float, int]] , type[complex]]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
10 | y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
|
= help: Combine multiple `type` members
@@ -99,77 +99,77 @@ PYI055.pyi:8:4: PYI055 [*] Multiple `type` members in a union. Combine them into
5 5 | t: type[int] | type[str] | type[float]
6 6 | u: builtins.type[int] | type[str] | builtins.type[complex]
7 7 | v: Union[type[float], type[complex]]
8 |-w: Union[type[float, int], type[complex]]
8 |+w: type[Union[float, int, complex]]
9 9 | x: Union[Union[type[float, int], type[complex]]]
10 10 | y: Union[Union[Union[type[float, int], type[complex]]]]
11 11 | z: Union[type[complex], Union[Union[type[float, int]]]]
8 |-w: Union[type[Union[ float, int]] , type[complex]]
8 |+w: type[Union[Union[ float, int] , complex]]
9 9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
10 10 | y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
11 11 | z: Union[type[complex], Union[Union[type[Union[ float, int]]]]]
PYI055.pyi:9:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[Union[float, int, complex]]`.
PYI055.pyi:9:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[Union[Union[ float, int] , complex]]`.
|
7 | v: Union[type[float], type[complex]]
8 | w: Union[type[float, int], type[complex]]
9 | x: Union[Union[type[float, int], type[complex]]]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
10 | y: Union[Union[Union[type[float, int], type[complex]]]]
11 | z: Union[type[complex], Union[Union[type[float, int]]]]
8 | w: Union[type[Union[ float, int]] , type[complex]]
9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
10 | y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
11 | z: Union[type[complex], Union[Union[type[Union[ float, int]]]]]
|
= help: Combine multiple `type` members
ℹ Safe fix
6 6 | u: builtins.type[int] | type[str] | builtins.type[complex]
7 7 | v: Union[type[float], type[complex]]
8 8 | w: Union[type[float, int], type[complex]]
9 |-x: Union[Union[type[float, int], type[complex]]]
9 |+x: type[Union[float, int, complex]]
10 10 | y: Union[Union[Union[type[float, int], type[complex]]]]
11 11 | z: Union[type[complex], Union[Union[type[float, int]]]]
8 8 | w: Union[type[Union[ float, int]] , type[complex]]
9 |-x: Union[Union[type[Union[ float, int]] , type[complex]]]
9 |+x: type[Union[Union[ float, int] , complex]]
10 10 | y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
11 11 | z: Union[type[complex], Union[Union[type[Union[ float, int]]]]]
12 12 |
PYI055.pyi:10:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[Union[float, int, complex]]`.
PYI055.pyi:10:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[Union[Union[ float, int] , complex]]`.
|
8 | w: Union[type[float, int], type[complex]]
9 | x: Union[Union[type[float, int], type[complex]]]
10 | y: Union[Union[Union[type[float, int], type[complex]]]]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
11 | z: Union[type[complex], Union[Union[type[float, int]]]]
8 | w: Union[type[Union[ float, int]] , type[complex]]
9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
10 | y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
11 | z: Union[type[complex], Union[Union[type[Union[ float, int]]]]]
|
= help: Combine multiple `type` members
ℹ Safe fix
7 7 | v: Union[type[float], type[complex]]
8 8 | w: Union[type[float, int], type[complex]]
9 9 | x: Union[Union[type[float, int], type[complex]]]
10 |-y: Union[Union[Union[type[float, int], type[complex]]]]
10 |+y: type[Union[float, int, complex]]
11 11 | z: Union[type[complex], Union[Union[type[float, int]]]]
8 8 | w: Union[type[Union[ float, int]] , type[complex]]
9 9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
10 |-y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
10 |+y: type[Union[Union[ float, int] , complex]]
11 11 | z: Union[type[complex], Union[Union[type[Union[ float, int]]]]]
12 12 |
13 13 | def func(arg: type[int] | str | type[float]) -> None: ...
PYI055.pyi:11:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[Union[complex, float, int]]`.
PYI055.pyi:11:4: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[Union[complex, Union[ float, int]]] `.
|
9 | x: Union[Union[type[float, int], type[complex]]]
10 | y: Union[Union[Union[type[float, int], type[complex]]]]
11 | z: Union[type[complex], Union[Union[type[float, int]]]]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
10 | y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
11 | z: Union[type[complex], Union[Union[type[Union[ float, int]]]]]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
12 |
13 | def func(arg: type[int] | str | type[float]) -> None: ...
|
= help: Combine multiple `type` members
ℹ Safe fix
8 8 | w: Union[type[float, int], type[complex]]
9 9 | x: Union[Union[type[float, int], type[complex]]]
10 10 | y: Union[Union[Union[type[float, int], type[complex]]]]
11 |-z: Union[type[complex], Union[Union[type[float, int]]]]
11 |+z: type[Union[complex, float, int]]
8 8 | w: Union[type[Union[ float, int]] , type[complex]]
9 9 | x: Union[Union[type[Union[ float, int]] , type[complex]]]
10 10 | y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
11 |-z: Union[type[complex], Union[Union[type[Union[ float, int]]]]]
11 |+z: type[Union[complex, Union[ float, int]]]
12 12 |
13 13 | def func(arg: type[int] | str | type[float]) -> None: ...
14 14 |
PYI055.pyi:13:15: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[int | float]`.
|
11 | z: Union[type[complex], Union[Union[type[float, int]]]]
11 | z: Union[type[complex], Union[Union[type[Union[ float, int]]]]]
12 |
13 | def func(arg: type[int] | str | type[float]) -> None: ...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PYI055
@@ -179,14 +179,14 @@ PYI055.pyi:13:15: PYI055 [*] Multiple `type` members in a union. Combine them in
= help: Combine multiple `type` members
ℹ Safe fix
10 10 | y: Union[Union[Union[type[float, int], type[complex]]]]
11 11 | z: Union[type[complex], Union[Union[type[float, int]]]]
10 10 | y: Union[Union[Union[type[Union[ float, int]] , type[complex]]]]
11 11 | z: Union[type[complex], Union[Union[type[Union[ float, int]]]]]
12 12 |
13 |-def func(arg: type[int] | str | type[float]) -> None: ...
13 |+def func(arg: type[int | float] | str) -> None: ...
14 14 |
15 15 | # OK
16 16 | x: type[int, str, float]
16 16 | x: type[int | str | float]
PYI055.pyi:23:7: PYI055 [*] Multiple `type` members in a union. Combine them into one, e.g., `type[requests_mock.Mocker | httpretty]`.
|
@@ -270,3 +270,6 @@ PYI055.pyi:29:12: PYI055 [*] Multiple `type` members in a union. Combine them in
30 |- type[requests_mock.Mocker], # another comment
31 |- type[httpretty], type[str]] = requests_mock.Mocker
29 |+ item3: type[Union[requests_mock.Mocker, httpretty, str]] = requests_mock.Mocker
32 30 |
33 31 |
34 32 | # OK