From: Michael R. Crusoe <michael.crusoe@gmail.com>
Subject: Fix typos found by Debian's Lintian program
--- mypy.orig/mypy/metastore.py
+++ mypy/mypy/metastore.py
@@ -47,7 +47,7 @@
         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
--- mypy.orig/mypy/plugin.py
+++ mypy/mypy/plugin.py
@@ -154,7 +154,7 @@
 
     @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
@@ -257,7 +257,7 @@
     @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
@@ -634,7 +634,7 @@
                                ) -> 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
 
--- mypy.orig/mypyc/emitmodule.py
+++ mypy/mypyc/emitmodule.py
@@ -377,7 +377,7 @@
         # 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)
 
--- mypy.orig/mypy/options.py
+++ mypy/mypy/options.py
@@ -262,7 +262,7 @@
         # Don't properly free objects on exit, just kill the current process.
         self.fast_exit = False
 
-    # 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
--- mypy.orig/mypyc/build.py
+++ mypy/mypyc/build.py
@@ -385,7 +385,7 @@
     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
--- mypy.orig/mypyc/emit.py
+++ mypy/mypyc/emit.py
@@ -287,7 +287,7 @@
 
         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.
 
--- mypy.orig/mypy/fscache.py
+++ mypy/mypy/fscache.py
@@ -201,7 +201,7 @@
         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:
--- mypy.orig/mypy/typeshed/stdlib/2and3/decimal.pyi
+++ mypy/mypy/typeshed/stdlib/2and3/decimal.pyi
@@ -234,7 +234,7 @@
                      capitals: Optional[int] = ..., _clamp: Optional[int] = ...,
                      _ignored_flags: Optional[List[_TrapType]] = ...) -> None: ...
     if sys.version_info >= (3,):
-        # __setattr__() only allows to set a specific set of attributes,
+        # __setattr__() only allows one to set a specific set of attributes,
         # already defined above.
         def __delattr__(self, name: str) -> None: ...
         def __reduce__(self) -> Tuple[Type[Context], Tuple[Any, ...]]: ...
--- mypy.orig/mypyc/genops.py
+++ mypy/mypyc/genops.py
@@ -1603,7 +1603,7 @@
         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: ...
--- mypy.orig/mypyc/namegen.py
+++ mypy/mypyc/namegen.py
@@ -42,7 +42,7 @@
         """Initialize with names of all modules in the compilation unit.
 
         The names of modules are used to shorten names referring to
-        modules in the compilation unit, for convenience. Arbitary module
+        modules in the compilation unit, for convenience. Arbitrary module
         names are supported for generated names, but modules not in the
         compilation unit will use long names.
         """
