Replace Incomplete | None = None in stdlib (#14083)

This commit is contained in:
Sebastian Rittau
2025-05-16 15:43:52 +02:00
committed by GitHub
parent 5785616f7a
commit 0125fe2848
12 changed files with 50 additions and 62 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ def foo(x): ... # unannotated argument and return type
`Incomplete` can also be used for partially known types:
```python
def foo(x: Incomplete | None = None) -> list[Incomplete]: ...
def foo(x: Incomplete | None) -> list[Incomplete]: ...
```
### What to do when a project's documentation and implementation disagree