Skip to content

Commit c9f65af

Browse files
committed
correct type anno
1 parent 69d0f35 commit c9f65af

3 files changed

Lines changed: 36 additions & 2 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
2+
3+
name: publish
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
release:
11+
12+
runs-on: ubuntu-latest
13+
14+
environment: release
15+
16+
permissions:
17+
id-token: write
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.x'
26+
27+
- name: Install builder
28+
run: pip install build
29+
30+
- name: Build package
31+
run: python -m build
32+
33+
- name: Publish package
34+
uses: pypa/gh-action-pypi-publish@release/v1

src/maidenhead/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .to_maiden import to_maiden
1212

1313
__all__ = ["to_location", "to_maiden", "to_location_rect", "to_geoJSONObject"]
14-
__version__ = "1.7.0"
14+
__version__ = "1.8.0"
1515

1616

1717
def google_maps(maiden: str, center: bool = False) -> str:

src/maidenhead/to_maiden.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import functools
44

55

6-
def to_maiden(lat: float, lon: float = None, precision: int = 3) -> str:
6+
def to_maiden(lat: float, lon: float, precision: int = 3) -> str:
77
"""
88
Returns a maidenhead string for latitude, longitude at specified level.
99

0 commit comments

Comments
 (0)