ruff
3470dee7 - Add rule to disallow implicit optional with autofix (#4831)

Commit
2 years ago
Add rule to disallow implicit optional with autofix (#4831) ## Summary Add rule to disallow implicit optional with autofix. Currently, I've added it under `RUF` category. ### Limitation Type aliases could result in false positive: ```python from typing import Optional StrOptional = Optional[str] def foo(arg: StrOptional = None): pass ``` ## Test Plan `cargo test` resolves: #1983 --------- Co-authored-by: Micha Reiser <micha@reiser.io> Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
Author
Parents
Loading