Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Sep 20, 2023
1 parent 37b31fd commit 6d767b3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions python/egglog/egraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ class EGraph(_BaseModule):
_decl_stack: list[Declarations] = field(default_factory=list, repr=False)
_token: Optional[Token[EGraph]] = None

def __post_init__(self, modules: list[Module], seminaive) -> None:
def __post_init__(self, modules: list[Module], seminaive: bool) -> None: # type: ignore
super().__post_init__(modules)
self._egraph = bindings.EGraph(seminaive=seminaive)
for m in self._flatted_deps:
Expand Down Expand Up @@ -899,7 +899,7 @@ def inner(*__args: PyObject, __fn_locals=fn_locals) -> PyObject:
new_kvs.append(arg)
eval_str += f"__arg_{i}, "
eval_str += ")"
return py_eval(eval_str, fn_locals.dict_update(new_kvs), fn_globals)
return py_eval(eval_str, fn_locals.dict_update(*new_kvs), fn_globals)

return inner

Expand Down
1 change: 0 additions & 1 deletion python/egglog/examples/lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Lambda Calculus
===============
"""
# mypy: disable-error-code=empty-body
from __future__ import annotations

from typing import Callable, ClassVar
Expand Down
1 change: 0 additions & 1 deletion python/egglog/examples/ndarrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Example of building NDarray in the vein of Mathemetics of Arrays.
"""
# mypy: disable-error-code=empty-body
from __future__ import annotations

from egglog import *
Expand Down
1 change: 0 additions & 1 deletion python/egglog/exp/array_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# mypy: disable-error-code=empty-body
from __future__ import annotations

import itertools
Expand Down
2 changes: 0 additions & 2 deletions python/tests/test_high_level.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# mypy: disable-error-code="empty-body"
from __future__ import annotations

import importlib
Expand All @@ -8,7 +7,6 @@

import pytest
from egglog import *
from egglog.builtins import count_matches
from egglog.declarations import (
CallDecl,
FunctionRef,
Expand Down

0 comments on commit 6d767b3

Please sign in to comment.