From 5c3cae6369ce5153c5e6470a9a4e4c092cec8ee1 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Thu, 19 Nov 2020 15:21:27 -0500 Subject: [PATCH] Added type hint --- filter/internals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/internals.py b/filter/internals.py index 405d789..dad20e4 100644 --- a/filter/internals.py +++ b/filter/internals.py @@ -46,7 +46,7 @@ def _read_stdin() -> Iterator[float]: except KeyboardInterrupt: sys.stdout.write("\n") -def _read_file(filename) -> Iterator[float]: +def _read_file(filename: str) -> Iterator[float]: try: with open(filename, 'r') as f: for line in f.readlines(): -- 2.45.2