mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-04-04 06:45:05 -04:00
Python type annotations are causing problems.
I'm not going to use type annotations in function signatures because they are causing more problems than they are worth. The last straw was that different versions of Python don't generate the same text representation. This broke my Travis CI tests.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
---
|
||||
|
||||
<a name="BodyCode"></a>
|
||||
### BodyCode(name) ⇒ astronomy.Body
|
||||
### BodyCode(name)
|
||||
Finds the Body enumeration value, given the name of a body.
|
||||
|
||||
name: str
|
||||
@@ -27,7 +27,7 @@ Body
|
||||
---
|
||||
|
||||
<a name="GeoMoon"></a>
|
||||
### GeoMoon(time: astronomy.Time) ⇒ astronomy.Vector
|
||||
### GeoMoon(time)
|
||||
Calculates the geocentric position of the Moon at a given time.
|
||||
|
||||
Given a time of observation, calculates the Moon's position as a vector.
|
||||
|
||||
@@ -123,7 +123,7 @@ class Body(IntEnum):
|
||||
Moon = 10
|
||||
"""The body code for the Moon."""
|
||||
|
||||
def BodyCode(name) -> Body:
|
||||
def BodyCode(name):
|
||||
"""Finds the Body enumeration value, given the name of a body.
|
||||
|
||||
Parameters
|
||||
@@ -2014,7 +2014,7 @@ def _CalcMoon(time):
|
||||
(_ARC * (_ERAD / _AU)) / (0.999953253 * SINPI)
|
||||
)
|
||||
|
||||
def GeoMoon(time:Time) -> Vector:
|
||||
def GeoMoon(time):
|
||||
"""Calculates the geocentric position of the Moon at a given time.
|
||||
|
||||
Given a time of observation, calculates the Moon's position as a vector.
|
||||
|
||||
Reference in New Issue
Block a user