Skip to content

Commit ff4dc66

Browse files
authored
Update optional-to-none-union.md (#753)
1 parent ba09a4c commit ff4dc66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

website/catalog/python/optional-to-none-union.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ fix: $T | None
2424
2525
<!-- highlight matched code in curly-brace {lineNum} -->
2626
```py {1}
27-
def a(arg: Optional[Int]): pass
27+
def a(arg: Optional[int]): pass
2828
```
2929
3030
### Diff
3131
<!-- use // [!code --] and // [!code ++] to annotate diff -->
3232
```py
33-
def a(arg: Optional[Int]): pass # [!code --]
34-
def a(arg: Int | None): pass # [!code ++]
33+
def a(arg: Optional[int]): pass # [!code --]
34+
def a(arg: int | None): pass # [!code ++]
3535
```
3636
3737
### Contributed by
3838
39-
[Bede Carroll](https://github.com/ast-grep/ast-grep/discussions/1492)
39+
[Bede Carroll](https://github.com/ast-grep/ast-grep/discussions/1492)

0 commit comments

Comments
 (0)