Skip to content
Open
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/binder.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Frame:
operations. It also records whether it is possible to reach that
point at all.

We add a new frame wherenever there is a new scope or control flow
We add a new frame whenever there is a new scope or control flow
branching.

This information is not copied into a new Frame when it is pushed
Expand Down
2 changes: 1 addition & 1 deletion mypy/test/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def find_steps(self) -> list[list[FileOperation]]:
second step, etc. Each operation can either be a file modification/creation (UpdateFile)
or deletion (DeleteFile).
Defaults to having two steps if there aern't any operations.
Defaults to having two steps if there aren't any operations.
"""
return self.steps

Expand Down
2 changes: 1 addition & 1 deletion mypyc/doc/dev-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def test_concat_empty_lists() -> None:

There is one test case, `testConcatenateLists`. It has two sub-cases,
`test_concat_lists` and `test_concat_empty_lists`. Note that you can
use the pytest -k argument to only run `testConcetanateLists`, but you
use the pytest -k argument to only run `testConcatenateLists`, but you
can't filter tests at the sub-case level.

It's recommended to have multiple sub-cases per test case, since each
Expand Down
2 changes: 1 addition & 1 deletion mypyc/doc/future.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ replaced with more efficient operations. Examples:
intermediate single-character string object `s[i]` but just compare
the character value to `ord('x')`.

* `a + ':' + b` (two string concetenations) can be implemented as
* `a + ':' + b` (two string concatenations) can be implemented as
single three-operand concatenation that doesn't construct an
intermediate object.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class GTEST_API_ FilePath {

void Normalize();

// Returns a pointer to the last occurence of a valid path separator in
// Returns a pointer to the last occurrence of a valid path separator in
// the FilePath. On Windows, for example, both '/' and '\' are valid path
// separators. Returns NULL if no path separator was found.
const char* FindLastPathSeparator() const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class TestFactoryBase {
GTEST_DISALLOW_COPY_AND_ASSIGN_(TestFactoryBase);
};

// This class provides implementation of TeastFactoryBase interface.
// This class provides implementation of TestFactoryBase interface.
// It is used in TEST and TEST_F macros.
template <class TestClass>
class TestFactoryImpl : public TestFactoryBase {
Expand Down
2 changes: 1 addition & 1 deletion mypyc/ir/pprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def format_blocks(
and not source_to_error.get(ops[-1], [])
):
# Hide the last goto if it just goes to the next basic block,
# and there are no assocatiated errors with the op.
# and there are no associated errors with the op.
ops = ops[:-1]
for op in ops:
line = " " + op.accept(visitor)
Expand Down
2 changes: 1 addition & 1 deletion mypyc/lib-rt/list_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ PyObject *CPyList_PopLast(PyObject *list)
Py_ssize_t index = PyList_GET_SIZE(list) - 1;
return list_pop_index(list, index);
#else
// I tried a specalized version of pop_impl for just removing the
// I tried a specialized version of pop_impl for just removing the
// last element and it wasn't any faster in microbenchmarks than
// the generic one so I ditched it.
return list_pop_impl((PyListObject *)list, -1);
Expand Down
2 changes: 1 addition & 1 deletion mypyc/transform/refcount.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Transformation for inserting refrecence count inc/dec opcodes.
"""Transformation for inserting reference count inc/dec opcodes.
This transformation happens towards the end of compilation. Before this
transformation, reference count management is not explicitly handled at all.
Expand Down
2 changes: 1 addition & 1 deletion test-data/unit/check-formatting.test
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ class D(bytes):
'{}'.format(D())
[builtins fixtures/primitives.pyi]

[case testNoSpuriousFormattingErrorsDuringFailedOverlodMatch]
[case testNoSpuriousFormattingErrorsDuringFailedOverloadMatch]
from typing import overload, Callable

@overload
Expand Down
4 changes: 2 additions & 2 deletions test-data/unit/check-protocols.test
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def fun4(x: U, y: P[U, U]) -> U:
pass
reveal_type(fun4('a', C())) # N: Revealed type is "builtins.object"

[case testUnrealtedGenericProtocolsEquivalent]
[case testUnrelatedGenericProtocolsEquivalent]
from typing import TypeVar, Protocol
T = TypeVar('T')

Expand Down Expand Up @@ -954,7 +954,7 @@ if int():
[builtins fixtures/list.pyi]
[typing fixtures/typing-medium.pyi]

[case testMutuallyRecursiveProtocolsTypesWithSubteMismatch]
[case testMutuallyRecursiveProtocolsTypesWithSubtleMismatch]
from typing import Protocol, Sequence, List

class P1(Protocol):
Expand Down
2 changes: 1 addition & 1 deletion test-data/unit/check-redefine2.test
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def f3(x) -> None:
reveal_type(x) # N: Revealed type is "builtins.int"
reveal_type(x) # N: Revealed type is "Any | builtins.int"

[case tetNewRedefineDel]
[case testNewRedefineDel]
# flags: --allow-redefinition
def f1() -> None:
x = ""
Expand Down
Loading