Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nrbnlulu/reproduce-return-none-ruff


https://github.com/nrbnlulu/reproduce-return-none-ruff

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# reproduce-return-none-ruff

run `pre-commit run -a`
and
```python
def return_implicit_none() -> Optional[int]:
if random.randint(1, 2) == 2:
return 2
```
would become
```python
def return_implicit_none() -> Optional[int]:
if random.randint(1, 2) == 2:
return 2
return None
```