Skip to content

Commit 5ca89e5

Browse files
EdwardBettsilevkivskyi
authored andcommitted
correct spelling mistakes (#4042)
1 parent eec6745 commit 5ca89e5

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

docs/source/cheat_sheet_py3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Other stuff
239239
else:
240240
return sys.stdout
241241
242-
# forward references are useful if you want to referemce a class before it is designed
242+
# forward references are useful if you want to reference a class before it is designed
243243
244244
def f(foo: A) -> int: # this will fail
245245
...
@@ -304,4 +304,4 @@ Mypy brings limited support for PEP 526 annotations.
304304
def __init__(self) -> None:
305305
self.items: List[str] = []
306306
307-
Please see :ref:`python-36` for more on mypy's compatability with Python 3.6's new features.
307+
Please see :ref:`python-36` for more on mypy's compatibility with Python 3.6's new features.

docs/source/kinds_of_types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ a value, you should use the
977977
Note that unlike many other generics in the typing module, the ``SendType`` of
978978
``Generator`` behaves contravariantly, not covariantly or invariantly.
979979

980-
If you do not plan on recieving or returning values, then set the ``SendType``
980+
If you do not plan on receiving or returning values, then set the ``SendType``
981981
or ``ReturnType`` to ``None``, as appropriate. For example, we could have
982982
annotated the first example as the following:
983983

misc/incremental_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
re-runs mypy on the commits with incremental mode enabled to make sure it returns
1010
the same results.
1111
12-
This script will download and test the offical mypy repo by default. Running:
12+
This script will download and test the official mypy repo by default. Running:
1313
1414
python3 misc/incremental_checker.py last 30
1515

misc/upload-pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
"""Build and upload mypy packages for Linux and macOS to PyPI.
33
4-
Note: This should be run on macOS using offical python.org Python 3.6 or
4+
Note: This should be run on macOS using official python.org Python 3.6 or
55
later, as this is the only tested configuration. Use --force to
66
run anyway.
77

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ def check_override(self, override: FunctionLike, original: FunctionLike,
11461146
# variables. If an argument or return type of override
11471147
# does not have the correct subtyping relationship
11481148
# with the original type even after these variables
1149-
# are erased, then it is definitely an incompatiblity.
1149+
# are erased, then it is definitely an incompatibility.
11501150

11511151
override_ids = override.type_var_ids()
11521152

mypy/checkexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def extract_refexpr_names(expr: RefExpr) -> Set[str]:
6666
while expr.kind == MODULE_REF or expr.fullname is not None:
6767
if expr.kind == MODULE_REF and expr.fullname is not None:
6868
# If it's None, something's wrong (perhaps due to an
69-
# import cycle or a supressed error). For now we just
69+
# import cycle or a suppressed error). For now we just
7070
# skip it.
7171
output.add(expr.fullname)
7272

mypy/semanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
# nested functions. In the first phase we add the function to the symbol table
157157
# but don't process body. In the second phase we process function body. This
158158
# way we can have mutually recursive nested functions.
159-
FUNCTION_BOTH_PHASES = 0 # Everthing in one go
159+
FUNCTION_BOTH_PHASES = 0 # Everything in one go
160160
FUNCTION_FIRST_PHASE_POSTPONE_SECOND = 1 # Add to symbol table but postpone body
161161
FUNCTION_SECOND_PHASE = 2 # Only analyze body
162162

mypy/test/testcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def run_case_once(self, testcase: DataDrivenTestCase, incremental_step: int = 0)
171171
if incremental_step:
172172
options.incremental = True
173173
else:
174-
options.cache_dir = os.devnull # Dont waste time writing cache
174+
options.cache_dir = os.devnull # Don't waste time writing cache
175175

176176
sources = []
177177
for module_name, program_path, program_text in module_data:

0 commit comments

Comments
 (0)