---
source: crates/ruff_linter/src/rules/ruff/mod.rs
snapshot_kind: text
---
RUF036.pyi:4:16: RUF036 `None` not at the end of the type annotation.
  |
4 | def func1(arg: None | int): ...
  |                ^^^^ RUF036
5 | 
6 | def func2() -> None | int: ...
  |

RUF036.pyi:6:16: RUF036 `None` not at the end of the type annotation.
  |
4 | def func1(arg: None | int): ...
5 | 
6 | def func2() -> None | int: ...
  |                ^^^^ RUF036
7 | 
8 | def func3(arg: None | None | int): ...
  |

RUF036.pyi:8:16: RUF036 `None` not at the end of the type annotation.
   |
 6 | def func2() -> None | int: ...
 7 | 
 8 | def func3(arg: None | None | int): ...
   |                ^^^^ RUF036
 9 | 
10 | def func4(arg: U[None, int]): ...
   |

RUF036.pyi:8:23: RUF036 `None` not at the end of the type annotation.
   |
 6 | def func2() -> None | int: ...
 7 | 
 8 | def func3(arg: None | None | int): ...
   |                       ^^^^ RUF036
 9 | 
10 | def func4(arg: U[None, int]): ...
   |

RUF036.pyi:10:18: RUF036 `None` not at the end of the type annotation.
   |
 8 | def func3(arg: None | None | int): ...
 9 | 
10 | def func4(arg: U[None, int]): ...
   |                  ^^^^ RUF036
11 | 
12 | def func5() -> U[None, int]: ...
   |

RUF036.pyi:12:18: RUF036 `None` not at the end of the type annotation.
   |
10 | def func4(arg: U[None, int]): ...
11 | 
12 | def func5() -> U[None, int]: ...
   |                  ^^^^ RUF036
13 | 
14 | def func6(arg: U[None, None, int]): ...
   |

RUF036.pyi:14:18: RUF036 `None` not at the end of the type annotation.
   |
12 | def func5() -> U[None, int]: ...
13 | 
14 | def func6(arg: U[None, None, int]): ...
   |                  ^^^^ RUF036
15 | 
16 | # Ok
   |

RUF036.pyi:14:24: RUF036 `None` not at the end of the type annotation.
   |
12 | def func5() -> U[None, int]: ...
13 | 
14 | def func6(arg: U[None, None, int]): ...
   |                        ^^^^ RUF036
15 | 
16 | # Ok
   |
