We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba09a4c commit ff4dc66Copy full SHA for ff4dc66
website/catalog/python/optional-to-none-union.md
@@ -24,16 +24,16 @@ fix: $T | None
24
25
<!-- highlight matched code in curly-brace {lineNum} -->
26
```py {1}
27
-def a(arg: Optional[Int]): pass
+def a(arg: Optional[int]): pass
28
```
29
30
### Diff
31
<!-- use // [!code --] and // [!code ++] to annotate diff -->
32
```py
33
-def a(arg: Optional[Int]): pass # [!code --]
34
-def a(arg: Int | None): pass # [!code ++]
+def a(arg: Optional[int]): pass # [!code --]
+def a(arg: int | None): pass # [!code ++]
35
36
37
### Contributed by
38
39
-[Bede Carroll](https://github.com/ast-grep/ast-grep/discussions/1492)
+[Bede Carroll](https://github.com/ast-grep/ast-grep/discussions/1492)
0 commit comments