Modernize code to Python 3.6+ and some cleanup
This commit is contained in:
@@ -14,7 +14,7 @@ class Coordinate(NamedTuple):
|
||||
|
||||
lat: float
|
||||
long: float
|
||||
|
||||
|
||||
def __str__(self):
|
||||
ns = 'N' if self.lat >= 0 else 'S'
|
||||
we = 'E' if self.long >= 0 else 'W'
|
||||
|
||||
@@ -6,4 +6,4 @@ class Coordinate(typing.NamedTuple):
|
||||
long: float
|
||||
|
||||
trash = Coordinate('foo', None) # <1>
|
||||
print(trash)
|
||||
print(trash)
|
||||
|
||||
Reference in New Issue
Block a user