Skip to content

Commit 924f818

Browse files
authored
Fix typos (#18317)
Found few misspellings. Please help me if it comes to deprecation or failing tests. This is the best spellchecker out there: https://github.com/crate-ci/typos
1 parent 0901689 commit 924f818

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+106
-106
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ This was contributed by Marc Mueller (PR [18014](https://github.com/python/mypy/
184184
* Improve contributor documentation for Windows (ag-tafe, PR [18097](https://github.com/python/mypy/pull/18097))
185185
* Correct note about `--disallow-any-generics` flag in documentation (Abel Sen, PR [18055](https://github.com/python/mypy/pull/18055))
186186
* Further caution against `--follow-imports=skip` (Shantanu, PR [18048](https://github.com/python/mypy/pull/18048))
187-
* Fix the edit page buttton link in documentation (Kanishk Pachauri, PR [17933](https://github.com/python/mypy/pull/17933))
187+
* Fix the edit page button link in documentation (Kanishk Pachauri, PR [17933](https://github.com/python/mypy/pull/17933))
188188

189189
### Other Notables Fixes and Improvements
190190

@@ -751,7 +751,7 @@ This feature was contributed by Jukka Lehtosalo (PR [17404](https://github.com/p
751751

752752
### Mypyc Improvements
753753

754-
Mypyc now supports the new syntax for generics introduced in Python 3.12 (see above). Another notable improvement is signficantly faster basic operations on `int` values.
754+
Mypyc now supports the new syntax for generics introduced in Python 3.12 (see above). Another notable improvement is significantly faster basic operations on `int` values.
755755

756756
* Support Python 3.12 syntax for generic functions and classes (Jukka Lehtosalo, PR [17357](https://github.com/python/mypy/pull/17357))
757757
* Support Python 3.12 type alias syntax (Jukka Lehtosalo, PR [17384](https://github.com/python/mypy/pull/17384))

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ articulated in the [Python Community Code of Conduct](https://www.python.org/psf
1818

1919
#### (1) Fork the mypy repository
2020

21-
Within Github, navigate to <https://github.com/python/mypy> and fork the repository.
21+
Within GitHub, navigate to <https://github.com/python/mypy> and fork the repository.
2222

2323
#### (2) Clone the mypy repository and enter into it
2424

docs/source/common_issues.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ type check such code. Consider this example:
757757
x: int = 'abc' # Unreachable -- no error
758758
759759
It's easy to see that any statement after ``return`` is unreachable,
760-
and hence mypy will not complain about the mis-typed code below
760+
and hence mypy will not complain about the mistyped code below
761761
it. For a more subtle example, consider this code:
762762

763763
.. code-block:: python

misc/docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Why use Docker?
1212
Mypyc tests can be significantly faster in a Docker container than
1313
running natively on macOS.
1414

15-
Also, if it's inconvient to install the necessary dependencies on the
15+
Also, if it's inconvenient to install the necessary dependencies on the
1616
host operating system, or there are issues getting some tests to pass
1717
on the host operating system, using a container can be an easy
1818
workaround.

misc/trigger_wheel_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Trigger a build of mypyc compiled mypy wheels by updating the mypy
44
# submodule in the git repo that drives those builds.
55

6-
# $WHEELS_PUSH_TOKEN is stored in Github Settings and is an API token
6+
# $WHEELS_PUSH_TOKEN is stored in GitHub Settings and is an API token
77
# for the mypy-build-bot account.
88

99
git config --global user.email "nobody"

mypy/checker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,7 +2597,7 @@ def check_enum(self, defn: ClassDef) -> None:
25972597
if isinstance(sym.node, Var) and sym.node.has_explicit_value:
25982598
# `__members__` will always be overwritten by `Enum` and is considered
25992599
# read-only so we disallow assigning a value to it
2600-
self.fail(message_registry.ENUM_MEMBERS_ATTR_WILL_BE_OVERRIDEN, sym.node)
2600+
self.fail(message_registry.ENUM_MEMBERS_ATTR_WILL_BE_OVERRIDDEN, sym.node)
26012601
for base in defn.info.mro[1:-1]: # we don't need self and `object`
26022602
if base.is_enum and base.fullname not in ENUM_BASES:
26032603
self.check_final_enum(defn, base)
@@ -3645,7 +3645,7 @@ def is_assignable_slot(self, lvalue: Lvalue, typ: Type | None) -> bool:
36453645

36463646
typ = get_proper_type(typ)
36473647
if typ is None or isinstance(typ, AnyType):
3648-
return True # Any can be literally anything, like `@propery`
3648+
return True # Any can be literally anything, like `@property`
36493649
if isinstance(typ, Instance):
36503650
# When working with instances, we need to know if they contain
36513651
# `__set__` special method. Like `@property` does.
@@ -8524,7 +8524,7 @@ def group_comparison_operands(
85248524
85258525
x0 == x1 == x2 < x3 < x4 is x5 is x6 is not x7 is not x8
85268526
8527-
If we get these expressions in a pairwise way (e.g. by calling ComparisionExpr's
8527+
If we get these expressions in a pairwise way (e.g. by calling ComparisonExpr's
85288528
'pairwise()' method), we get the following as input:
85298529
85308530
[('==', x0, x1), ('==', x1, x2), ('<', x2, x3), ('<', x3, x4),

mypy/checkexpr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ def validate_typeddict_kwargs(
844844
# Having an optional key not explicitly declared by a ** unpacked
845845
# TypedDict is unsafe, it may be an (incompatible) subtype at runtime.
846846
# TODO: catch the cases where a declared key is overridden by a subsequent
847-
# ** item without it (and not again overriden with complete ** item).
847+
# ** item without it (and not again overridden with complete ** item).
848848
self.msg.non_required_keys_absent_with_star(absent_keys, last_star_found)
849849
return result, always_present_keys
850850

@@ -5349,7 +5349,7 @@ def visit_lambda_expr(self, e: LambdaExpr) -> Type:
53495349
can_skip=True, fall_through=0
53505350
), self.chk.scope.push_function(e):
53515351
# Lambdas can have more than one element in body,
5352-
# when we add "fictional" AssigmentStatement nodes, like in:
5352+
# when we add "fictional" AssignmentStatement nodes, like in:
53535353
# `lambda (a, b): a`
53545354
for stmt in e.body.body[:-1]:
53555355
stmt.accept(self.chk)

mypy/dmypy_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def refresh_file(module: str, path: str) -> list[str]:
714714
find_changes_time=t1 - t0,
715715
fg_update_time=t2 - t1,
716716
refresh_suppressed_time=t3 - t2,
717-
find_added_supressed_time=t4 - t3,
717+
find_added_suppressed_time=t4 - t3,
718718
cleanup_time=t5 - t4,
719719
)
720720

mypy/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class Errors:
268268
show_column_numbers: bool = False
269269

270270
# Set to True to show end line and end column in error messages.
271-
# Ths implies `show_column_numbers`.
271+
# This implies `show_column_numbers`.
272272
show_error_end: bool = False
273273

274274
# Set to True to show absolute file paths in error messages.

mypy/inspections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def expr_attrs(self, expression: Expression) -> tuple[str, bool]:
335335
node = expression.node
336336
names = sorted(node.names)
337337
if "__builtins__" in names:
338-
# This is just to make tests stable. No one will really need ths name.
338+
# This is just to make tests stable. No one will really need this name.
339339
names.remove("__builtins__")
340340
mod_dict = {f'"<{node.fullname}>"': [f'"{name}"' for name in names]}
341341
else:

mypy/message_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def with_additional_msg(self, info: str) -> ErrorMessage:
241241
CANNOT_MAKE_DELETABLE_FINAL: Final = ErrorMessage("Deletable attribute cannot be final")
242242

243243
# Enum
244-
ENUM_MEMBERS_ATTR_WILL_BE_OVERRIDEN: Final = ErrorMessage(
244+
ENUM_MEMBERS_ATTR_WILL_BE_OVERRIDDEN: Final = ErrorMessage(
245245
'Assigned "__members__" will be overridden by "Enum" internally'
246246
)
247247

mypy/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ def __init__(
11791179
self.keywords = dict(keywords) if keywords else {}
11801180
self.analyzed = None
11811181
self.has_incompatible_baseclass = False
1182-
# Used for error reporting (to keep backwad compatibility with pre-3.8)
1182+
# Used for error reporting (to keep backward compatibility with pre-3.8)
11831183
self.deco_line: int | None = None
11841184
self.docstring: str | None = None
11851185
self.removed_statements = []

mypy/plugins/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def find_shallow_matching_overload_item(overload: Overloaded, call: CallExpr) ->
164164

165165

166166
def _get_callee_type(call: CallExpr) -> CallableType | None:
167-
"""Return the type of the callee, regardless of its syntatic form."""
167+
"""Return the type of the callee, regardless of its syntactic form."""
168168

169169
callee_node: Node | None = call.callee
170170

mypy/plugins/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _implements_new(info: TypeInfo) -> bool:
129129

130130

131131
def enum_member_callback(ctx: mypy.plugin.FunctionContext) -> Type:
132-
"""By default `member(1)` will be infered as `member[int]`,
132+
"""By default `member(1)` will be inferred as `member[int]`,
133133
we want to improve the inference to be `Literal[1]` here."""
134134
if ctx.arg_types or ctx.arg_types[0]:
135135
arg = get_proper_type(ctx.arg_types[0][0])

mypy/semanal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4170,7 +4170,7 @@ def analyze_type_alias_type_params(
41704170
) -> tuple[TypeVarLikeList, list[str]]:
41714171
"""Analyze type_params of TypeAliasType.
41724172
4173-
Returns declared unbound type variable expressions and a list of all decalred type
4173+
Returns declared unbound type variable expressions and a list of all declared type
41744174
variable names for error reporting.
41754175
"""
41764176
if "type_params" in rvalue.arg_names:
@@ -4436,7 +4436,7 @@ def make_name_lvalue_var(
44364436
if kind != LDEF:
44374437
v._fullname = self.qualified_name(name)
44384438
else:
4439-
# fullanme should never stay None
4439+
# fullname should never stay None
44404440
v._fullname = name
44414441
v.is_ready = False # Type not inferred yet
44424442
v.has_explicit_value = has_explicit_value
@@ -6218,7 +6218,7 @@ def visit_yield_expr(self, e: YieldExpr) -> None:
62186218
def visit_await_expr(self, expr: AwaitExpr) -> None:
62196219
if not self.is_func_scope() or not self.function_stack:
62206220
# We check both because is_function_scope() returns True inside comprehensions.
6221-
# This is not a blocker, because some enviroments (like ipython)
6221+
# This is not a blocker, because some environments (like ipython)
62226222
# support top level awaits.
62236223
self.fail('"await" outside function', expr, serious=True, code=codes.TOP_LEVEL_AWAIT)
62246224
elif not self.function_stack[-1].is_coroutine:

mypy/solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def solve_with_dependent(
139139
* Find dependencies between type variables, group them in SCCs, and sort topologically
140140
* Check that all SCC are intrinsically linear, we can't solve (express) T <: List[T]
141141
* Variables in leaf SCCs that don't have constant bounds are free (choose one per SCC)
142-
* Solve constraints iteratively starting from leafs, updating bounds after each step.
142+
* Solve constraints iteratively starting from leaves, updating bounds after each step.
143143
"""
144144
graph, lowers, uppers = transitive_closure(vars, constraints)
145145

mypy/stubgenc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def __init__(
241241
self.module_name = module_name
242242
if self.is_c_module:
243243
# Add additional implicit imports.
244-
# C-extensions are given more lattitude since they do not import the typing module.
244+
# C-extensions are given more latitude since they do not import the typing module.
245245
self.known_imports.update(
246246
{
247247
"typing": [

mypy/test/testconstraints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_type_var_tuple_with_prefix_and_suffix(self) -> None:
6262
Constraint(type_var=fx.s, op=SUPERTYPE_OF, target=fx.d),
6363
}
6464

65-
def test_unpack_homogenous_tuple(self) -> None:
65+
def test_unpack_homogeneous_tuple(self) -> None:
6666
fx = self.fx
6767
assert set(
6868
infer_constraints(
@@ -77,7 +77,7 @@ def test_unpack_homogenous_tuple(self) -> None:
7777
Constraint(type_var=fx.t, op=SUBTYPE_OF, target=fx.b),
7878
}
7979

80-
def test_unpack_homogenous_tuple_with_prefix_and_suffix(self) -> None:
80+
def test_unpack_homogeneous_tuple_with_prefix_and_suffix(self) -> None:
8181
fx = self.fx
8282
assert set(
8383
infer_constraints(

mypy/test/testinfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def test_single_pair(self) -> None:
366366
)
367367

368368
def test_empty_pair_list(self) -> None:
369-
# This case should never occur in practice -- ComparisionExprs
369+
# This case should never occur in practice -- ComparisonExprs
370370
# always contain at least one comparison. But in case it does...
371371

372372
self.assertEqual(group_comparison_operands([], {}, set()), [])

mypy/test/testpythoneval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def test_python_evaluation(testcase: DataDrivenTestCase, cache_dir: str) -> None
6363
additional_flags = m.group(1).split()
6464
for flag in additional_flags:
6565
if flag.startswith("--python-version="):
66-
targetted_python_version = flag.split("=")[1]
67-
targetted_major, targetted_minor = targetted_python_version.split(".")
68-
if (int(targetted_major), int(targetted_minor)) > (
66+
targeted_python_version = flag.split("=")[1]
67+
targeted_major, targeted_minor = targeted_python_version.split(".")
68+
if (int(targeted_major), int(targeted_minor)) > (
6969
sys.version_info.major,
7070
sys.version_info.minor,
7171
):

mypy/test/update_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _iter_fixes(
6969
source_line = source_line[: comment_match.start("indent")] # strip old comment
7070
if reports:
7171
indent = comment_match.group("indent") if comment_match else " "
72-
# multiline comments are on the first line and then on subsequent lines emtpy lines
72+
# multiline comments are on the first line and then on subsequent lines empty lines
7373
# with a continuation backslash
7474
for j, (severity, msg) in enumerate(reports):
7575
out_l = source_line if j == 0 else " " * len(source_line)

mypy/typeanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ def analyze_unbound_type_without_type_info(
10001000
elif unbound_tvar:
10011001
assert isinstance(sym.node, TypeVarLikeExpr)
10021002
if sym.node.is_new_style:
1003-
# PEP 695 type paramaters are never considered unbound -- they are undefined
1003+
# PEP 695 type parameters are never considered unbound -- they are undefined
10041004
# in contexts where they aren't valid, such as in argument default values.
10051005
message = 'Name "{}" is not defined'
10061006
name = name.split(".")[-1]

mypy/typeshed/stdlib/_tkinter.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class TkappType:
8282
def mainloop(self, threshold: int = 0, /): ...
8383
def quit(self): ...
8484
def record(self, script, /): ...
85-
def setvar(self, *ags, **kwargs): ...
85+
def setvar(self, *args, **kwargs): ...
8686
if sys.version_info < (3, 11):
8787
def split(self, arg, /): ...
8888

mypy/typeshed/stdlib/email/message.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class MIMEPart(Message[_HeaderRegistryT, _HeaderRegistryParamT]):
153153
def attach(self, payload: Self) -> None: ... # type: ignore[override]
154154
# The attachments are created via type(self) in the attach method. It's theoretically
155155
# possible to sneak other attachment types into a MIMEPart instance, but could cause
156-
# cause unforseen consequences.
156+
# cause unforeseen consequences.
157157
def iter_attachments(self) -> Iterator[Self]: ...
158158
def iter_parts(self) -> Iterator[MIMEPart[_HeaderRegistryT]]: ...
159159
def get_content(self, *args: Any, content_manager: ContentManager | None = None, **kw: Any) -> Any: ...

mypyc/analysis/attrdefined.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def analyze_always_defined_attrs_in_class(cl: ClassIR, seen: set[ClassIR]) -> No
176176
m.blocks, self_reg, maybe_defined, dirty
177177
)
178178

179-
mark_attr_initialiation_ops(m.blocks, self_reg, maybe_defined, dirty)
179+
mark_attr_initialization_ops(m.blocks, self_reg, maybe_defined, dirty)
180180

181181
# Check if __init__ can run unpredictable code (leak 'self').
182182
any_dirty = False
@@ -260,7 +260,7 @@ def find_sometimes_defined_attributes(
260260
return attrs
261261

262262

263-
def mark_attr_initialiation_ops(
263+
def mark_attr_initialization_ops(
264264
blocks: list[BasicBlock],
265265
self_reg: Register,
266266
maybe_defined: AnalysisResult[str],

mypyc/codegen/emit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def attr(self, name: str) -> str:
195195
return ATTR_PREFIX + name
196196

197197
def object_annotation(self, obj: object, line: str) -> str:
198-
"""Build a C comment with an object's string represention.
198+
"""Build a C comment with an object's string representation.
199199
200200
If the comment exceeds the line length limit, it's wrapped into a
201201
multiline string (with the extra lines indented to be aligned with

mypyc/irbuild/ll_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""A "low-level" IR builder class.
22
3-
See the docstring of class LowLevelIRBuiler for more information.
3+
See the docstring of class LowLevelIRBuilder for more information.
44
55
"""
66

@@ -439,7 +439,7 @@ def coerce_int_to_fixed_width(self, src: Value, target_type: RType, line: int) -
439439

440440
size = target_type.size
441441
if size < int_rprimitive.size:
442-
# Add a range check when the target type is smaller than the source tyoe
442+
# Add a range check when the target type is smaller than the source type
443443
fast2, fast3 = BasicBlock(), BasicBlock()
444444
upper_bound = 1 << (size * 8 - 1)
445445
if not target_type.is_signed:

mypyc/irbuild/match.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def visit_or_pattern(self, pattern: OrPattern) -> None:
124124

125125
def visit_class_pattern(self, pattern: ClassPattern) -> None:
126126
# TODO: use faster instance check for native classes (while still
127-
# making sure to account for inheritence)
127+
# making sure to account for inheritance)
128128
isinstance_op = (
129129
fast_isinstance_op
130130
if self.builder.is_builtin_ref_expr(pattern.class_ref)

mypyc/lib-rt/CPy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ static inline PyObject *_CPy_FromDummy(PyObject *p) {
785785
return p;
786786
}
787787

788-
static int CPy_NoErrOccured(void) {
788+
static int CPy_NoErrOccurred(void) {
789789
return PyErr_Occurred() == NULL;
790790
}
791791

@@ -856,7 +856,7 @@ PyObject *CPy_FetchStopIterationValue(void);
856856
PyObject *CPyType_FromTemplate(PyObject *template_,
857857
PyObject *orig_bases,
858858
PyObject *modname);
859-
PyObject *CPyType_FromTemplateWarpper(PyObject *template_,
859+
PyObject *CPyType_FromTemplateWrapper(PyObject *template_,
860860
PyObject *orig_bases,
861861
PyObject *modname);
862862
int CPyDataclass_SleightOfHand(PyObject *dataclass_dec, PyObject *tp,

mypyc/lib-rt/int_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ CPyTagged CPyTagged_Add_(CPyTagged left, CPyTagged right) {
124124
return CPyTagged_StealFromObject(result);
125125
}
126126

127-
// Tagged int subraction slow path, where the result may be a long integer
127+
// Tagged int subtraction slow path, where the result may be a long integer
128128
CPyTagged CPyTagged_Subtract_(CPyTagged left, CPyTagged right) {
129129
PyObject *left_obj = CPyTagged_AsObject(left);
130130
PyObject *right_obj = CPyTagged_AsObject(right);

mypyc/lib-rt/misc_ops.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ PyObject *CPySingledispatch_RegisterFunction(PyObject *singledispatch_func,
897897

898898
}
899899

900-
// Adapated from ceval.c GET_AITER
900+
// Adapted from ceval.c GET_AITER
901901
PyObject *CPy_GetAIter(PyObject *obj)
902902
{
903903
unaryfunc getter = NULL;
@@ -935,7 +935,7 @@ PyObject *CPy_GetAIter(PyObject *obj)
935935
return iter;
936936
}
937937

938-
// Adapated from ceval.c GET_ANEXT
938+
// Adapted from ceval.c GET_ANEXT
939939
PyObject *CPy_GetANext(PyObject *aiter)
940940
{
941941
unaryfunc getter = NULL;

mypyc/primitives/exc_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
no_err_occurred_op = custom_op(
4242
arg_types=[],
4343
return_type=bit_rprimitive,
44-
c_function_name="CPy_NoErrOccured",
44+
c_function_name="CPy_NoErrOccurred",
4545
error_kind=ERR_FALSE,
4646
)
4747

mypyc/primitives/set_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# Get the 'builtins.set' type object.
2323
load_address_op(name="builtins.set", type=object_rprimitive, src="PySet_Type")
2424

25-
# Get the 'builtins.frozenset' tyoe object.
25+
# Get the 'builtins.frozenset' type object.
2626
load_address_op(name="builtins.frozenset", type=object_rprimitive, src="PyFrozenSet_Type")
2727

2828
# Construct an empty set.

0 commit comments

Comments
 (0)