Skip to content

Commit

Permalink
Merge branch 'update-0.3.3' into 359_dev_mesh_rigid_body
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 authored Apr 28, 2024
2 parents b1949e0 + 836ecba commit eec41cf
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions elastica/rod/knot_theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@

import sys

if sys.version_info.minor >= 8:
# typing Protocol is introduced in python 3.8
from typing import Protocol
elif sys.version_info.minor < 8:
# Protocol is implemented in typing_extensions for previous pythons
from typing_extensions import Protocol

from typing import Union
from typing import Protocol, Union

from numba import njit
import numpy as np
Expand All @@ -35,16 +28,20 @@ class KnotTheoryCompatibleProtocol(Protocol):
"""

@property
def position_collection(self) -> np.ndarray: ...
def position_collection(self) -> np.ndarray:
...

@property
def director_collection(self) -> np.ndarray: ...
def director_collection(self) -> np.ndarray:
...

@property
def radius(self) -> np.ndarray: ...
def radius(self) -> np.ndarray:
...

@property
def base_length(self) -> np.ndarray: ...
def base_length(self) -> np.ndarray:
...


class KnotTheory:
Expand Down

0 comments on commit eec41cf

Please sign in to comment.