Skip to content

Commit bc8565f

Browse files
authored
Fix typos in comments (#10459)
1 parent 5eb4de4 commit bc8565f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mypy/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2098,7 +2098,7 @@ def semantic_analysis_pass1(self) -> None:
20982098
analyzer = SemanticAnalyzerPreAnalysis()
20992099
with self.wrap_context():
21002100
analyzer.visit_file(self.tree, self.xpath, self.id, options)
2101-
# TODO: Do this while contructing the AST?
2101+
# TODO: Do this while constructing the AST?
21022102
self.tree.names = SymbolTable()
21032103
if options.allow_redefinition:
21042104
# Perform renaming across the AST to allow variable redefinitions

mypy/checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,7 +2188,7 @@ def try_infer_partial_generic_type_from_assignment(self,
21882188
if op != '=' and (typ.type.fullname, op) not in self.partial_type_augmented_ops:
21892189
return
21902190
# TODO: some logic here duplicates the None partial type counterpart
2191-
# inlined in check_assignment(), see # 8043.
2191+
# inlined in check_assignment(), see #8043.
21922192
partial_types = self.find_partial_types(var)
21932193
if partial_types is None:
21942194
return
@@ -2905,7 +2905,7 @@ def infer_partial_type(self, name: Var, lvalue: Lvalue, init_type: Type) -> bool
29052905
return True
29062906

29072907
def is_valid_defaultdict_partial_value_type(self, t: ProperType) -> bool:
2908-
"""Check if t can be used as the basis for a partial defaultddict value type.
2908+
"""Check if t can be used as the basis for a partial defaultdict value type.
29092909
29102910
Examples:
29112911

0 commit comments

Comments
 (0)