Skip to content

Commit 9c6b70d

Browse files
committed
verified changes
1 parent 255044d commit 9c6b70d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

aerosandbox/numpy/typing.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@
5858
# CasADi types (internal use only)
5959
# =============================================================================
6060

61-
_CasADiType = _cas.MX | _cas.DM | _cas.SX
62-
"""Any CasADi array type (MX, DM, or SX). Internal use only."""
61+
_CasADiType = _cas.MX | _cas.DM
62+
"""CasADi array types compatible with AeroSandbox's Opti class. Internal use only.
63+
64+
Note: cas.SX is intentionally excluded. While aerosandbox.numpy operations support SX
65+
at runtime, the Opti class is MX-based and incompatible with SX. Type hints using
66+
_CasADiType reflect what works in the optimization context.
67+
"""
6368

6469
# =============================================================================
6570
# CONCRETE TYPES - For external tools, I/O, plotting (NumPy only)

0 commit comments

Comments
 (0)