Skip to content

Fix typos found by Debian's Lintian program #7795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mypy/fscache.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def isfile_case(self, path: str, prefix: str) -> bool:
else:
try:
names = self.listdir(head)
# This allows to check file name case sensitively in
# This allows one to check file name case sensitively in
# case-insensitive filesystems.
res = tail in names and self.isfile(path)
except OSError:
Expand Down
2 changes: 1 addition & 1 deletion mypy/metastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def write(self, name: str, data: str, mtime: Optional[float] = None) -> bool:
If mtime is specified, set it as the mtime of the entry. Otherwise,
the current time is used.

Returns True if the entry is succesfully written, False otherwise.
Returns True if the entry is successfully written, False otherwise.
"""

@abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion mypy/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def __init__(self) -> None:
# Print full path to each file in the report.
self.show_absolute_path = False # type: bool

# To avoid breaking plugin compatability, keep providing new_semantic_analyzer
# To avoid breaking plugin compatibility, keep providing new_semantic_analyzer
@property
def new_semantic_analyzer(self) -> bool:
return True
Expand Down
6 changes: 3 additions & 3 deletions mypy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class TypeAnalyzerPluginInterface:

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

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

@abstractmethod
Expand Down Expand Up @@ -629,7 +629,7 @@ def get_dynamic_class_hook(self, fullname: str
) -> Optional[Callable[[DynamicClassDefContext], None]]:
"""Semantically analyze a dynamic class definition.

This plugin hook allows to semantically analyze dynamic class definitions like:
This plugin hook allows one to semantically analyze dynamic class definitions like:

from lib import dynamic_class

Expand Down
2 changes: 1 addition & 1 deletion mypyc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def mypycify(
return extensions


# For backwards compatability we define this as an alias. Previous
# For backwards compatibility we define this as an alias. Previous
# versions used to require using it, and it is conceivable that future
# versions will need it also.
MypycifyBuildExt = build_ext
2 changes: 1 addition & 1 deletion mypyc/emit.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def emit_cast(self, src: str, dest: str, typ: RType, declare_dest: bool = False,

Somewhat strangely, this supports unboxed types but only
operates on boxed versions. This is necessary to properly
handle types such as Optional[int] in compatability glue.
handle types such as Optional[int] in compatibility glue.

Assign NULL (error value) to dest if the value has an incompatible type.

Expand Down
2 changes: 1 addition & 1 deletion mypyc/emitmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def generate_module_def(self, emitter: Emitter, module_name: str, module: Module
# Store the module reference in a static and return it when necessary.
# This is separate from the *global* reference to the module that will
# be populated when it is imported by a compiled module. We want that
# reference to only be populated when the module has been succesfully
# reference to only be populated when the module has been successfully
# imported, whereas this we want to have to stop a circular import.
module_static = self.module_internal_static_name(module_name, emitter)

Expand Down
2 changes: 1 addition & 1 deletion mypyc/genops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ def gen_glue_method(self, sig: FuncSignature, target: FuncIR,
class A:
def f(self, x: int) -> object: ...

then it is totally permissable to have a subclass
then it is totally permissible to have a subclass

class B(A):
def f(self, x: object) -> int: ...
Expand Down
2 changes: 1 addition & 1 deletion mypyc/namegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, groups: Iterable[List[str]]) -> None:
"""Initialize with a list of modules in each compilation group.

The names of modules are used to shorten names referring to
modules, for convenience. Arbitary module
modules, for convenience. Arbitrary module
names are supported for generated names, but uncompiled modules
will use long names.
"""
Expand Down