Skip to content

Commit

Permalink
♻️ Fix mypy issue
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Dec 15, 2024
1 parent 9322626 commit e5ceb90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vyper/cli/venom_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def _parse_args(argv: list[str]):
elif args.input_file:
venom_source = read_from_file(args.input_file)

assert venom_source is not None
process_venom_source(venom_source)

Check notice

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns Note

Mixing implicit and explicit returns may indicate an error as implicit returns always return None.


Expand All @@ -75,7 +76,7 @@ def read_from_stdin():
sys.exit(1)


def read_from_file(input_file):
def read_from_file(input_file: str):
try:
with open(input_file, "r") as f:
return f.read()
Expand Down

0 comments on commit e5ceb90

Please sign in to comment.