Skip to content

Commit

Permalink
[readme] formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 14, 2023
1 parent 9e7204e commit c5a86bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Now comes the other ugly part. When using type annotations, the above function
in a way so that type checkers do not complain about using ``None`` as the default value:

```python
>>> def f(x: list[Any] | None = None) -> list[Any]:
def f(x: list[Any] | None = None) -> list[Any]:
```

Another problem with the above declaration is that calling ``f(None)`` passes type checking,
Expand Down

0 comments on commit c5a86bc

Please sign in to comment.