Skip to content

Commit d4f41e0

Browse files
committed
Fix type hintings in the Python wheel.
1 parent 6c0e656 commit d4f41e0

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/cpp-python-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ jobs:
497497
run: ctest --parallel $(sysctl -n hw.logicalcpu) --output-on-failure
498498
- name: Build the source package for Python
499499
run: |
500-
python python/pyxstubgen.py --pyxfile=build/python/_jsbsim.pyx --output=python/_jsbsim.pyi
500+
python python/pyxstubgen.py --pyxfile=build/python/_jsbsim.pyx --output=python/__init__.pyi
501501
cp build/python/pyproject.toml .
502502
python -m build --sdist
503503
- name: Check reset for real time execution

python/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from . import _jsbsim
21
from ._jsbsim import (
32
__version__,
43
Attribute,

python/jsbsim.pyx.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ cdef class FGPropertyNode:
270270
self.__intercept_invalid_pointer()
271271
return GetFullyQualifiedName(self.thisptr.ptr()).decode()
272272

273-
def get_node(self, path: str, create: bool = False) -> Optional[SGPropertyNode]:
273+
def get_node(self, path: str, create: bool = False) -> Optional[FGPropertyNode]:
274274
"""Get a pointer to another node by relative path.
275275

276276
:param path: The relative path from the node.
@@ -325,7 +325,7 @@ cdef class FGPropertyManager:
325325
if not self.thisptr:
326326
raise MemoryError()
327327

328-
def get_node(self, path: Optional[str] = None, create: bool = False) -> Optional[SGPropertyNode]:
328+
def get_node(self, path: Optional[str] = None, create: bool = False) -> Optional[FGPropertyNode]:
329329
"""@Dox(JSBSim::FGPropertyManager::GetNode)"""
330330
node = FGPropertyNode()
331331
if path is None:

0 commit comments

Comments
 (0)