Skip to content

Commit

Permalink
Merge pull request #8 from kaunta/i4
Browse files Browse the repository at this point in the history
generate coordinates
  • Loading branch information
kaunta committed Nov 22, 2019
2 parents 3e459ac + b560a59 commit 539360d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pacific-factbook/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from . import name, flag
from . import name, flag, coordinate

print(name.generate())
print(coordinate.generate())
print(flag.generate())
11 changes: 11 additions & 0 deletions pacific-factbook/coordinate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from typing import NamedTuple
import numbers


class Coordinate(NamedTuple):
latitude: numbers.Real
longitude: numbers.Real


def generate() -> Coordinate:
return Coordinate(latitude=-6, longitude=71.5)

0 comments on commit 539360d

Please sign in to comment.