Skip to content

Commit 969b0f2

Browse files
committed
Update comments
1 parent 95d3379 commit 969b0f2

9 files changed

Lines changed: 11 additions & 9 deletions

File tree

drone_models/_typing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
"""This file is to be remove later as soon as a proper typing is available by the official array-api."""
2+
13
from typing import Any, TypeAlias
24

35
import numpy.typing as npt
46

5-
Array: TypeAlias = Any # To be changed to a Protocol later (see array-api#589)
7+
Array: TypeAlias = Any # To be changed to array_api_typing later
68
ArrayLike: TypeAlias = Array | npt.ArrayLike

drone_models/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
if TYPE_CHECKING:
1515
from types import ModuleType
1616

17-
from drone_models._typing import Array # To be changed to a Protocol later (see array-api#589)
17+
from drone_models._typing import Array # To be changed to array_api_typing later
1818

1919

2020
F = TypeVar("F", bound=Callable[..., Any])

drone_models/first_principles/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from drone_models.utils import rotation, to_xp
1414

1515
if TYPE_CHECKING:
16-
from drone_models._typing import Array # To be changed to a Protocol later (see array-api#589)
16+
from drone_models._typing import Array # To be changed to array_api_typing later
1717

1818

1919
@supports(rotor_dynamics=True)

drone_models/so_rpy/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from drone_models.utils import rotation, to_xp
1515

1616
if TYPE_CHECKING:
17-
from drone_models._typing import Array # To be changed to a Protocol later (see array-api#589)
17+
from drone_models._typing import Array # To be changed to array_api_typing later
1818

1919

2020
@supports(rotor_dynamics=False)

drone_models/so_rpy_rotor/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from drone_models.utils import rotation, to_xp
1515

1616
if TYPE_CHECKING:
17-
from drone_models._typing import Array # To be changed to a Protocol later (see array-api#589)
17+
from drone_models._typing import Array # To be changed to array_api_typing later
1818

1919

2020
@supports(rotor_dynamics=True)

drone_models/so_rpy_rotor_drag/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from drone_models.utils import rotation, to_xp
1515

1616
if TYPE_CHECKING:
17-
from drone_models._typing import Array # To be changed to a Protocol later (see array-api#589)
17+
from drone_models._typing import Array # To be changed to array_api_typing later
1818

1919
# Additional symbols specific to this model
2020
roll, pitch, yaw = cs.MX.sym("roll"), cs.MX.sym("pitch"), cs.MX.sym("yaw")

drone_models/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from array_api_compat import array_namespace
1313

1414
if TYPE_CHECKING:
15-
from drone_models._typing import Array # To be changed to a Protocol later (see array-api#589)
15+
from drone_models._typing import Array # To be changed to array_api_typing later
1616

1717

1818
def motor_force2rotor_vel(motor_forces: Array, rpm2thrust: Array) -> Array:

drone_models/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
if TYPE_CHECKING:
88
from types import ModuleType
99

10-
from drone_models._typing import Array # To be changed to a Protocol later (see array-api#589)
10+
from drone_models._typing import Array # To be changed to array_api_typing later
1111

1212

1313
def to_xp(*args: Any, xp: ModuleType, device: Any) -> tuple[Array, ...] | Array:

tests/unit/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from drone_models.so_rpy_rotor_drag import dynamics as so_rpy_rotor_drag_dynamics
2323

2424
if TYPE_CHECKING:
25-
from drone_models._typing import Array # To be changed to a Protocol later (see array-api#589)
25+
from drone_models._typing import Array # To be changed to array_api_typing later
2626

2727
# For all tests to pass, we need the same precsion in jax as in np
2828
jax.config.update("jax_enable_x64", True)

0 commit comments

Comments
 (0)