Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,18 @@ jobs:
pip install codecov
codecov
fi
typing:
name: Typing Check
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -r requirements-typing.txt
- name: Run mypy
run: mypy metar
2 changes: 2 additions & 0 deletions metar/Metar.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def _sanitize(code: str) -> str: ...
def _report_match(handler: Callable[[dict], None], match: Match) -> None: ...
def _unparsedGroup(self: "Metar", d: dict) -> None: ...

class ParserError(Exception): ...

class Metar:
code: str
type: Literal["METAR", "SPECI"]
Expand Down
1 change: 1 addition & 0 deletions requirements-typing.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mypy==1.3.0