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:
Don Cross
2019-07-09 18:16:04 -04:00
parent e169f79fc8
commit fdbad8a252
4 changed files with 6 additions and 7 deletions

View File

@@ -7,7 +7,7 @@
---
<a name="BodyCode"></a>
### BodyCode(name) &#8658; 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) &#8658; 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.

View File

@@ -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.