Skip to content

Commit

Permalink
fix remaining mypy issues
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Ramsay <[email protected]>
  • Loading branch information
seapagan committed Aug 18, 2024
1 parent 459786c commit 3977150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def generate_header(

def get_lang(args: argparse.Namespace) -> str:
"""Check the specified language is supported."""
lang = args.language
lang: str = args.language
if lang and lang not in LANGS:
sys.stderr.write(
"I do not know about a language ending with "
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_lice.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_file_template() -> None:
path = TEMPLATE_PATH / (f"template-{license_name}.txt")
with path.open() as infile:
content = infile.read()
assert content == load_file_template(path).getvalue()
assert content == load_file_template(str(path)).getvalue()


def test_package_template() -> None:
Expand Down

0 comments on commit 3977150

Please sign in to comment.