Skip to content

Commit 6fac701

Browse files
authored
Fix several typos (#10460)
1 parent bc8565f commit 6fac701

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

mypy/config_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def get_prefix(file_read: str, name: str) -> str:
248248
return '%s: [%s]: ' % (file_read, module_name_str)
249249

250250

251-
def is_toml(filemame: str) -> bool:
252-
return filemame.lower().endswith('.toml')
251+
def is_toml(filename: str) -> bool:
252+
return filename.lower().endswith('.toml')
253253

254254

255255
def destructure_overrides(toml_data: "OrderedDict[str, Any]") -> "OrderedDict[str, Any]":

mypy/dmypy_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def daemonize(options: Options,
5555
It also pickles the options to be unpickled by mypy.
5656
"""
5757
command = [sys.executable, '-m', 'mypy.dmypy', '--status-file', status_file, 'daemon']
58-
pickeled_options = pickle.dumps((options.snapshot(), timeout, log_file))
59-
command.append('--options-data="{}"'.format(base64.b64encode(pickeled_options).decode()))
58+
pickled_options = pickle.dumps((options.snapshot(), timeout, log_file))
59+
command.append('--options-data="{}"'.format(base64.b64encode(pickled_options).decode()))
6060
info = STARTUPINFO()
6161
info.dwFlags = 0x1 # STARTF_USESHOWWINDOW aka use wShowWindow's value
6262
info.wShowWindow = 0 # SW_HIDE aka make the window invisible

mypy/erasetype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def visit_literal_type(self, t: LiteralType) -> ProperType:
8787

8888
def visit_union_type(self, t: UnionType) -> ProperType:
8989
erased_items = [erase_type(item) for item in t.items]
90-
from mypy.typeops import make_simplified_union # asdf
90+
from mypy.typeops import make_simplified_union
9191
return make_simplified_union(erased_items)
9292

9393
def visit_type_type(self, t: TypeType) -> ProperType:

mypy/errorcodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ def __str__(self) -> str:
127127

128128
# This is a catch-all for remaining uncategorized errors.
129129
MISC = ErrorCode(
130-
'misc', "Miscenallenous other checks", 'General') # type: Final
130+
'misc', "Miscellaneous other checks", 'General') # type: Final

mypy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def _fill_text(self, text: str, width: int, indent: str) -> str:
155155
# Assume we want to manually format the text
156156
return super()._fill_text(text, width, indent)
157157
else:
158-
# Assume we want argparse to manage wrapping, indentating, and
158+
# Assume we want argparse to manage wrapping, indenting, and
159159
# formatting the text for us.
160160
return argparse.HelpFormatter._fill_text(self, text, width, indent)
161161

mypy/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def named_type(self, name: str, args: List[Type]) -> Instance:
160160

161161
@abstractmethod
162162
def analyze_type(self, typ: Type) -> Type:
163-
"""Ananlyze an unbound type using the default mypy logic."""
163+
"""Analyze an unbound type using the default mypy logic."""
164164
raise NotImplementedError
165165

166166
@abstractmethod

mypy/renaming.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def reject_redefinition_of_vars_in_loop(self) -> None:
334334
"""Reject redefinition of variables in the innermost loop.
335335
336336
If there is an early exit from a loop, there may be ambiguity about which
337-
value may escpae the loop. Example where this matters:
337+
value may escape the loop. Example where this matters:
338338
339339
while f():
340340
x = 0

0 commit comments

Comments
 (0)