Fix return type annotation of location.get_location()
`typing.Tuple` should contain a type for each element, or use ellipsis for a variable-length tuple of homogeneous type.
So, in this case `Tuple[float, float, float]` for longitude, latitude, altitude.
See docs here:
@@ -40,11 +40,11 @@ def stop_updating():
__PyLocationHelper__.stopUpdating()
-def get_location() -> Tuple[float]:
+def get_location() -> Tuple[float, float, float]:
"""
Returns a tuple with current longitude, latitude and altitude.
- :rtype: Tuple[float]
+ :rtype: Tuple[float, float, float]
"""
return (float(__PyLocationHelper__.longitude), float(__PyLocationHelper__.latitude), float(__PyLocationHelper__.altitude))
