Skip to content

Commit

Permalink
BUG: Downgrade type annotations to python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Jul 4, 2023
1 parent 215f7e3 commit bce0ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pysindy/feature_library/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import warnings
from functools import wraps
from itertools import repeat
from typing import Optional
from typing import Sequence

import numpy as np
Expand Down Expand Up @@ -399,7 +400,7 @@ def __init__(
self,
libraries: list,
library_ensemble=False,
inputs_per_library: None | Sequence[Sequence[int]] = None,
inputs_per_library: Optional[Sequence[Sequence[int]]] = None,
ensemble_indices=[0],
):
super(TensoredLibrary, self).__init__(
Expand Down
3 changes: 2 additions & 1 deletion pysindy/feature_library/generalized_library.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from itertools import repeat
from typing import Optional
from typing import Sequence
from warnings import warn

Expand Down Expand Up @@ -80,7 +81,7 @@ def __init__(
self,
libraries: list,
tensor_array=None,
inputs_per_library: None | Sequence[Sequence[int]] = None,
inputs_per_library: Optional[Sequence[Sequence[int]]] = None,
library_ensemble=False,
ensemble_indices=[0],
exclude_libraries=[],
Expand Down

0 comments on commit bce0ea6

Please sign in to comment.