diff options
| author | Dennis Fink | 2020-09-26 15:21:04 +0200 |
|---|---|---|
| committer | Dennis Fink | 2020-09-26 15:21:04 +0200 |
| commit | 7bea7b219b7ac44e637f359584b914aa112fa6d4 (patch) | |
| tree | bf638a7f206219baaae36fba199b01dcbb4fb345 | |
| parent | 9b80026a5bc0aa0504dfb46ef8a25e5204d5a86a (diff) | |
| download | patternutils-7bea7b219b7ac44e637f359584b914aa112fa6d4.tar.gz patternutils-7bea7b219b7ac44e637f359584b914aa112fa6d4.zip | |
Add type decorations
Diffstat (limited to '')
| -rw-r--r-- | patternutils/commands/patterncfg.py | 6 | ||||
| -rw-r--r-- | patternutils/commands/tln.py | 2 | ||||
| -rw-r--r-- | patternutils/commands/tmv.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/patternutils/commands/patterncfg.py b/patternutils/commands/patterncfg.py index fa30e01..0115ed2 100644 --- a/patternutils/commands/patterncfg.py +++ b/patternutils/commands/patterncfg.py @@ -7,9 +7,9 @@ import click from .. import config try: - from pygments import highlight - from pygments.formatters import TerminalFormatter - from pygments.lexers import DjangoLexer, Python3Lexer + from pygments import highlight # type: ignore + from pygments.formatters import TerminalFormatter # type: ignore + from pygments.lexers import DjangoLexer, Python3Lexer # type: ignore except ImportError: has_pygments = False else: diff --git a/patternutils/commands/tln.py b/patternutils/commands/tln.py index 7dd09f9..8f2bd2e 100644 --- a/patternutils/commands/tln.py +++ b/patternutils/commands/tln.py @@ -106,7 +106,7 @@ def tln( if not stream: data = json.load(read_from) # type: ignore else: - data = [json.loads(line) for line in read_from] + data = [json.loads(line) for line in read_from] # type: ignore except json.JSONDecodeError: click.secho("JSON not valid!", fg="red", err=True) raise SystemExit diff --git a/patternutils/commands/tmv.py b/patternutils/commands/tmv.py index 3e92342..4e93ff4 100644 --- a/patternutils/commands/tmv.py +++ b/patternutils/commands/tmv.py @@ -103,7 +103,7 @@ def tmv( if not stream: data = json.load(read_from) # type: ignore else: - data = [json.loads(line) for line in read_from] + data = [json.loads(line) for line in read_from] # type: ignore except json.JSONDecodeError: click.secho("JSON not valid!", fg="red", err=True) raise SystemExit |
