Skip to content

Commit a00a026

Browse files
committed
Fixed capitalization inconsistency in docs.
1 parent 08b2cb4 commit a00a026

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/type-inference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ var5 = (3,) # Type is assumed to be tuple[Literal[3]]
109109
var6: tuple[float, ...] = (3,) # Type of RHS is now tuple[float, ...]
110110
```
111111

112-
#### Empty list and Dictionary Type Inference
112+
#### Empty List and Dictionary Type Inference
113113

114114
It is common to initialize a local variable or instance variable to an empty list (`[]`) or empty dictionary (`{}`) on one code path but initialize it to a non-empty list or dictionary on other code paths. In such cases, Pyright will infer the type based on the non-empty list or dictionary and suppress errors about a “partially unknown type”.
115115

0 commit comments

Comments
 (0)