8000 Fix typos found by Debian's Lintian program (#7795) · python/mypy@fdcbb74 · GitHub
[go: up one dir, main page]

Skip to content

Commit fdcbb74

Browse files
mr-cmsullivan
authored andcommitted
Fix typos found by Debian's Lintian program (#7795)
1 parent dc15ace commit fdcbb74

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

mypy/fscache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def isfile_case(self, path: str, prefix: str) -> bool:
201201
else:
202202
try:
203203
names = self.listdir(head)
204-
# This allows to check file name case sensitively in
204+
# This allows one to check file name case sensitively in
205205
# case-insensitive filesystems.
206206
res = tail in names and self.isfile(path)
207207
except OSError:

mypy/metastore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def write(self, name: str, data: str, mtime: Optional[float] = None) -> bool:
4747
If mtime is specified, set it as the mtime of the entry. Otherwise,
4848
the current time is used.
4949
50-
Returns True if the entry is succesfully written, False otherwise.
50+
Returns True if the entry is successfully written, False otherwise.
5151
"""
5252

5353
@abstractmethod

mypy/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def __init__(self) -> None:
264264
# Print full path to each file in the report.
265265
self.show_absolute_path = False # type: bool
266266

267-
# To avoid breaking plugin compatability, keep providing new_semantic_analyzer
267+
# To avoid breaking plugin compatibility, keep providing new_semantic_analyzer
268268
@property
269269
def new_semantic_analyzer(self) -> bool:
270270
return True

mypy/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class TypeAnalyzerPluginInterface:
153153

154154
@abstractmethod
155155
def fail(self, msg: str, ctx: Context, *, code: Optional[ErrorCode] = None) -> None:
156-
"""Emmit an error message at given location."""
156+
"""Emit an error message at given location."""
157157
raise NotImplementedError
158158

159159
@abstractmethod
@@ -256,7 +256,7 @@ def parse_bool(self, expr: Expression) -> Optional[bool]:
256256
@abstractmethod
257257
def fail(self, msg: str, ctx: Context, serious: bool = False, *,
258258
blocker: bool = False, code: Optional[ErrorCode] = None) -> None:
259-
"""Emmit an error message at given location."""
259+
"""Emit an error message at given location."""
260260
raise NotImplementedError
261261

262262
@abstractmethod
@@ -629,7 +629,7 @@ def get_dynamic_class_hook(self, fullname: str
629629
) -> Optional[Callable[[DynamicClassDefContext], None]]:
630630
"""Semantically analyze a dynamic class definition.
631631
632-
This plugin hook allows to semantically analyze dynamic class definitions like:
632+
This plugin hook allows one to semantically analyze dynamic class definitions like:
633633
634634
from lib import dynamic_class
635635

mypyc/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def mypycify(
495495
return extensions
496496

497497

498-
# For backwards compatability we define this as an alias. Previous
498+
# For backwards compatibility we define this as an alias. Previous
499499
# versions used to require using it, and it is conceivable that future
500500
# versions will need it also.
501501
MypycifyBuildExt = build_ext

mypyc/emit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def emit_cast(self, src: str, dest: str, typ: RType, declare_dest: bool = False,
341341
342342
Somewhat strangely, this supports unboxed types but only
343343
operates on boxed versions. This is necessary to properly
344-
handle types such as Optional[int] in compatability glue.
344+
handle types such as Optional[int] in compatibility glue.
345345
346346
Assign NULL (error value) to dest if the value has an incompatible type.
347347

mypyc/emitmodule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def generate_module_def(self, emitter: Emitter, module_name: str, module: Module
597597
# Store the module reference in a static and return it when necessary.
598598
# This is separate from the *global* reference to the module that will
599599
# be populated when it is imported by a compiled module. We want that
600-
# reference to only be populated when the module has been succesfully
600+
# reference to only be populated when the module has been successfully
601601
# imported, whereas this we want to have to stop a circular import.
602602
module_static = self.module_internal_static_name(module_name, emitter)
603603

mypyc/genops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ def gen_glue_method(self, sig: FuncSignature, target: FuncIR,
16251625
class A:
16261626
def f(self, x: int) -> object: ...
16271627
1628-
then it is totally permissable to have a subclass
1628+
then it is totally permissible to have a subclass
16291629
16301630
class B(A):
16311631
def f(self, x: object) -> int: ...

mypyc/namegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, groups: Iterable[List[str]]) -> None:
3939
"""Initialize with a list of modules in each compilation group.
4040
4141
The names of modules are used to shorten names referring to
42-
modules, for convenience. Arbitary module
42+
modules, for convenience. Arbitrary module
4343
names are supported for generated names, but uncompiled modules
4444
will use long names.
4545
"""

0 commit comments

Comments
 (0)
0