Skip to content

Commit

Permalink
Deal with py37 mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology committed May 2, 2022
1 parent 025b8c0 commit 977cc90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stac_pydantic/scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@


@click.group(short_help="Validate STAC")
def app():
def app() -> None:
"""stac-pydantic cli group"""
pass


@app.command(short_help="Validate STAC Item")
@click.argument("infile")
def validate_item(infile):
def validate_item(infile: str) -> None:
"""Validate stac item"""
r = requests.get(infile)
r.raise_for_status()
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ extend-ignore = E203, E501
[mypy]
no_strict_optional = True
ignore_missing_imports = True
implicit_reexport = True
deps = types-click

[tool:isort]
profile = black
Expand Down

0 comments on commit 977cc90

Please sign in to comment.