diff options
| author | Dennis Fink | 2021-01-23 21:21:06 +0100 |
|---|---|---|
| committer | Dennis Fink | 2021-01-23 21:21:06 +0100 |
| commit | f07018175a1d4b4b3c9285b9452ae9cb0515c6b4 (patch) | |
| tree | 184f1679d341fa08c26fa916e74e817a4076efbe | |
| parent | ddd741a0c78a7857446c747ed21442e9db862fa0 (diff) | |
| download | patternutils-f07018175a1d4b4b3c9285b9452ae9cb0515c6b4.tar.gz patternutils-f07018175a1d4b4b3c9285b9452ae9cb0515c6b4.zip | |
Add type annotations
| -rw-r--r-- | patternutils/commands/targs.py | 4 | ||||
| -rw-r--r-- | patternutils/commands/tln.py | 4 | ||||
| -rw-r--r-- | patternutils/commands/tmv.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/patternutils/commands/targs.py b/patternutils/commands/targs.py index b262149..5ca8d04 100644 --- a/patternutils/commands/targs.py +++ b/patternutils/commands/targs.py @@ -81,9 +81,9 @@ def targs( ) -> None: if stream: - data = map(utils.json_loads, read_from) + data = map(utils.json_loads, read_from) # type: ignore else: - data = utils.json_loads(read_from.read()) + data = utils.json_loads(read_from.read()) # type: ignore if use_predefined_template: try: diff --git a/patternutils/commands/tln.py b/patternutils/commands/tln.py index 509f4ad..b0476b2 100644 --- a/patternutils/commands/tln.py +++ b/patternutils/commands/tln.py @@ -102,9 +102,9 @@ def tln( ) -> None: if stream: - data = map(utils.json_loads, read_from) + data = map(utils.json_loads, read_from) # type: ignore else: - data = utils.json_loads(read_from.read()) + data = utils.json_loads(read_from.read()) # type: ignore if use_predefined_template: try: diff --git a/patternutils/commands/tmv.py b/patternutils/commands/tmv.py index 5ae2582..a82b8f7 100644 --- a/patternutils/commands/tmv.py +++ b/patternutils/commands/tmv.py @@ -100,9 +100,9 @@ def tmv( """ if stream: - data = map(utils.json_loads, read_from) + data = map(utils.json_loads, read_from) # type: ignore else: - data = utils.json_loads(read_from.read()) + data = utils.json_loads(read_from.read()) # type: ignore if use_predefined_template: try: |
