Skip to content

Commit

Permalink
test: fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 6, 2024
1 parent 678fce0 commit 450e674
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pysr/export_jax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np # noqa: F401
import sympy # type: ignore
from sympy.codegen.cfunctions import log2, log10
from sympy.codegen.cfunctions import log2, log10 # type: ignore

# Special since need to reduce arguments.
MUL = 0
Expand Down
2 changes: 1 addition & 1 deletion pysr/export_sympy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import sympy # type: ignore
from sympy import sympify
from sympy.codegen.cfunctions import log2, log10
from sympy.codegen.cfunctions import log2, log10 # type: ignore

from .utils import ArrayLike

Expand Down
2 changes: 1 addition & 1 deletion pysr/export_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np # noqa: F401
import sympy # type: ignore
from sympy.codegen.cfunctions import log2, log10
from sympy.codegen.cfunctions import log2, log10 # type: ignore


def _reduce(fn):
Expand Down

0 comments on commit 450e674

Please sign in to comment.