---
source: crates/ruff_linter/src/rules/ruff/mod.rs
---
RUF013_4.py:15:61: RUF013 [*] PEP 484 prohibits implicit `Optional`
   |
15 | def multiple_2(arg1: Optional, arg2: Optional = None, arg3: int = None): ...
   |                                                             ^^^ RUF013
   |
   = help: Convert to `T | None`

ℹ Unsafe fix
1  1  | # https://github.com/astral-sh/ruff/issues/13833
   2  |+from __future__ import annotations
2  3  | 
3  4  | from typing import Optional
4  5  | 
--------------------------------------------------------------------------------
12 13 | def multiple_1(arg1: Optional, arg2: Optional = None): ...
13 14 | 
14 15 | 
15    |-def multiple_2(arg1: Optional, arg2: Optional = None, arg3: int = None): ...
   16 |+def multiple_2(arg1: Optional, arg2: Optional = None, arg3: int | None = None): ...
16 17 | 
17 18 | 
18 19 | def return_type(arg: Optional = None) -> Optional: ...
