Skip to content

Commit b08088a

Browse files
spelling
1 parent a2f5123 commit b08088a

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

python/egglog/declarations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Data only descriptions of the components of an egraph and the expressions.
33
4-
We seperate it it into two pieces, the references the declerations, so that we can report mutually recursive types.
4+
We separate it it into two pieces, the references the declarations, so that we can report mutually recursive types.
55
"""
66

77
from __future__ import annotations
@@ -310,9 +310,9 @@ def check_binary_method_with_other_type(self, method_name: str, other_type: Just
310310
def get_class_decl(self, ident: Ident) -> ClassDecl:
311311
return self._classes[ident]
312312

313-
def get_paramaterized_class(self, ident: Ident) -> TypeRefWithVars:
313+
def get_parameterized_class(self, ident: Ident) -> TypeRefWithVars:
314314
"""
315-
Returns a class reference with type parameters, if the class is paramaterized.
315+
Returns a class reference with type parameters, if the class is parameterized.
316316
"""
317317
type_vars = self._classes[ident].type_vars
318318
return TypeRefWithVars(ident, type_vars)
@@ -754,7 +754,7 @@ class PartialCallDecl:
754754
755755
Note it does not need to have any args, in which case it's just a function pointer.
756756
757-
Seperated from the call decl so it's clear it is translated to a `unstable-fn` call.
757+
Separated from the call decl so it's clear it is translated to a `unstable-fn` call.
758758
"""
759759

760760
call: CallDecl

python/egglog/egraph.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def _fn_decl(
589589
else:
590590
var_arg_type = None
591591
arg_types = tuple(
592-
decls.get_paramaterized_class(ref.ident)
592+
decls.get_parameterized_class(ref.ident)
593593
if i == 0 and isinstance(ref, MethodRef | PropertyRef)
594594
else resolve_type_annotation_mutate(decls, hints[t.name])
595595
for i, t in enumerate(params)
@@ -604,7 +604,7 @@ def _fn_decl(
604604
decls.update(*arg_defaults)
605605

606606
return_type = (
607-
decls.get_paramaterized_class(ref.ident)
607+
decls.get_parameterized_class(ref.ident)
608608
if isinstance(ref, InitRef)
609609
else arg_types[0]
610610
if mutates_first_arg
@@ -778,7 +778,7 @@ def _add_default_rewrite_function(
778778
arg_exprs: list[RuntimeExpr | RuntimeClass] = [RuntimeExpr.__from_values__(decls, a) for a in args]
779779
# If this is a classmethod, add the class as the first arg
780780
if isinstance(ref, ClassMethodRef):
781-
tp = decls.get_paramaterized_class(ref.ident)
781+
tp = decls.get_parameterized_class(ref.ident)
782782
arg_exprs.insert(0, RuntimeClass(Thunk.value(decls), tp))
783783
with set_current_ruleset(ruleset):
784784
res = fn(*arg_exprs)

0 commit comments

Comments
 (0)