---
source: crates/ruff_linter/src/rules/ruff/mod.rs
snapshot_kind: text
---
RUF013_1.py:4:12: RUF013 [*] PEP 484 prohibits implicit `Optional`
  |
4 | def f(arg: int = None):  # RUF013
  |            ^^^ RUF013
5 |     pass
  |
  = help: Convert to `Optional[T]`

ℹ Unsafe fix
1 1 | # No `typing.Optional` import
  2 |+from typing import Optional
2 3 | 
3 4 | 
4   |-def f(arg: int = None):  # RUF013
  5 |+def f(arg: Optional[int] = None):  # RUF013
5 6 |     pass
