Skip to content

Commit f7798ec

Browse files
committed
Fix additional typos
1 parent 488464f commit f7798ec

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

mypy/stubgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ def visit_import_from(self, o: ImportFrom) -> None:
10771077
self.record_name(alias or name)
10781078

10791079
if self._all_:
1080-
# Include import froms that import names defined in __all__.
1080+
# Include import forms that import names defined in __all__.
10811081
names = [name for name, alias in o.names
10821082
if name in self._all_ and alias is None and name not in IGNORED_DUNDERS]
10831083
exported_names.update(names)

mypyc/ir/class_ir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(self, name: str, module_name: str, is_trait: bool = False,
121121
# Map of methods that are actually present in an extension class
122122
self.methods: OrderedDict[str, FuncIR] = OrderedDict()
123123
# Glue methods for boxing/unboxing when a class changes the type
124-
# while overriding a method. Maps from (parent class overrided, method)
124+
# while overriding a method. Maps from (parent class overridden, method)
125125
# to IR of glue method.
126126
self.glue_methods: Dict[Tuple[ClassIR, str], FuncIR] = OrderedDict()
127127

mypyc/test-data/run-classes.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,13 +1591,13 @@ from mypy_extensions import trait
15911591
class Temperature:
15921592
@property
15931593
def celsius(self) -> float:
1594-
return 5.0 * (self.farenheit - 32.0) / 9.0
1594+
return 5.0 * (self.fahrenheit - 32.0) / 9.0
15951595

1596-
def __init__(self, farenheit: float) -> None:
1597-
self.farenheit = farenheit
1596+
def __init__(self, fahrenheit: float) -> None:
1597+
self.fahrenheit = fahrenheit
15981598

15991599
def print_temp(self) -> None:
1600-
print("F:", self.farenheit, "C:", self.celsius)
1600+
print("F:", self.fahrenheit, "C:", self.celsius)
16011601

16021602
@property
16031603
def rankine(self) -> float:

0 commit comments

Comments
 (0)