Skip to content

Commit

Permalink
New style list hinting does not work on py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Apr 26, 2024
1 parent 2c797c1 commit 76e8ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elastica/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" Handy utilities
"""

from typing import Iterable, Any
from typing import Iterable, Any, List
import functools
import numpy as np
from numpy import finfo, float64
Expand Down Expand Up @@ -92,7 +92,7 @@ def rtol():
return finfo(float64).eps * 1e11


def perm_parity(lst: list[int]):
def perm_parity(lst: List[int]):
"""
Given a permutation of the digits 0..N in order as a list,
returns its parity (or sign): +1 for even parity; -1 for odd.
Expand Down

0 comments on commit 76e8ce0

Please sign in to comment.