Skip to content

Commit 2dd4fe1

Browse files
mypy fixes
1 parent b04e3ea commit 2dd4fe1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/egglog/examples/jointree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, name: StringLike) -> None: ...
1919

2020
def join(self, other: JoinTree) -> JoinTree: ...
2121

22-
@method(merge=lambda old, new: old.min(new))
22+
@method(merge=lambda old, new: old.min(new)) # type:ignore[prop-decorator]
2323
@property
2424
def size(self) -> i64: ...
2525

python/egglog/pretty.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def pretty_callable_ref(
121121
if include_all_args:
122122
signature = decls.get_callable_decl(ref).signature
123123
assert isinstance(signature, FunctionSignature)
124-
args: list[ExprDecl] = [UnboundVarDecl(ARG_STR)] * len(signature.arg_types)
125-
return f"{res[0]}({', '.join(context(a, parens=False, unwrap_lit=True) for a in args)})"
124+
correct_args: list[ExprDecl] = [UnboundVarDecl(ARG_STR)] * len(signature.arg_types)
125+
return f"{res[0]}({', '.join(context(a, parens=False, unwrap_lit=True) for a in correct_args)})"
126126
return res[0]
127127
return res
128128

0 commit comments

Comments
 (0)