1
0
Fork 0
mirror of https://github.com/Findus23/rebound-stubs.git synced 2024-09-19 15:13:48 +02:00

minor updates

This commit is contained in:
Lukas Winkler 2021-02-17 18:25:16 +01:00
parent 1493aa1bff
commit f99297d5a4
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 4 additions and 4 deletions

View file

@ -37,11 +37,11 @@ class Particle(Structure):
def copy(self) -> Particle: ... def copy(self) -> Particle: ...
def calculate_orbit(self, primary: Optional[Particle], G: Optional[float]): ... def calculate_orbit(self, primary: Optional[Particle], G: Optional[float]) -> Orbit: ...
def sample_orbit(self, Npts: int, primary: Optional[Particle], trailing: bool, def sample_orbit(self, Npts: int, primary: Optional[Particle], trailing: bool,
timespan: Optional[float], useTrueAnomaly: Optional[bool], timespan: Optional[float], useTrueAnomaly: Optional[bool],
duplicateEndpoint: Optional[bool]): ... duplicateEndpoint: Optional[bool]): ... #TODO: return value
def __pow__(self, other: Particle) -> Particle: ... def __pow__(self, other: Particle) -> Particle: ...
@ -170,7 +170,7 @@ class Particle(Structure):
def orbit(self) -> Orbit: ... def orbit(self) -> Orbit: ...
@property @property
def jacobi_com(self): ... #TODO: correct tpying def jacobi_com(self): ... #TODO: correct typing
@property @property
def hash(self) -> c_uint32: ... def hash(self) -> c_uint32: ...

View file

@ -256,7 +256,7 @@ class Simulation(Structure):
# _extras_cleanup: CFUNCTYPE(None, _Pointer[Simulation]) # _extras_cleanup: CFUNCTYPE(None, _Pointer[Simulation])
extras: c_void_p extras: c_void_p
def __new__(cls, *args: Any, **kw: Any): ... def __new__(cls, *args: Any, **kw: Any)->Simulation: ...
def __init__(self) -> None: ... def __init__(self) -> None: ...