|
1 | 1 | import aerosandbox.numpy as np |
2 | 2 | from aerosandbox.common import AeroSandboxObject |
3 | 3 | from abc import ABC, abstractmethod |
4 | | -from typing import Sequence |
| 4 | +from typing import Literal, Sequence |
5 | 5 | from aerosandbox import ( |
6 | 6 | MassProperties, |
7 | 7 | Opti, |
|
13 | 13 | from aerosandbox.tools.string_formatting import trim_string |
14 | 14 | import inspect |
15 | 15 | import copy |
16 | | -from aerosandbox.numpy.typing import Vectorizable, Scalar, Vector |
| 16 | +from aerosandbox.numpy.typing import Vectorizable, Vector |
17 | 17 |
|
18 | 18 |
|
19 | 19 | class _DynamicsPointMassBaseClass(AeroSandboxObject, ABC): |
@@ -363,7 +363,7 @@ def add_force( |
363 | 363 | Fx: float | np.ndarray = 0, |
364 | 364 | Fy: float | np.ndarray = 0, |
365 | 365 | Fz: float | np.ndarray = 0, |
366 | | - axes: str = "wind", |
| 366 | + axes: Literal["geometry", "body", "wind", "stability", "earth"] = "wind", |
367 | 367 | ) -> None: |
368 | 368 | """ |
369 | 369 | Adds a force (in whichever axis system you choose) to this Dynamics instance. |
@@ -423,14 +423,14 @@ def op_point(self): |
423 | 423 | def draw( |
424 | 424 | self, |
425 | 425 | vehicle_model: "Airplane | PolyData | None" = None, |
426 | | - backend: str = "pyvista", |
| 426 | + backend: Literal["pyvista"] = "pyvista", |
427 | 427 | plotter=None, |
428 | 428 | draw_axes: bool = True, |
429 | 429 | draw_global_axes: bool = True, |
430 | 430 | draw_global_grid: bool = True, |
431 | 431 | scale_vehicle_model: float | None = None, |
432 | 432 | n_vehicles_to_draw: int = 10, |
433 | | - cg_axes: str = "geometry", |
| 433 | + cg_axes: Literal["geometry", "body", "wind", "stability"] = "geometry", |
434 | 434 | draw_trajectory_line: bool = True, |
435 | 435 | trajectory_line_color=None, |
436 | 436 | draw_altitude_drape: bool = True, |
|
0 commit comments