summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patternutils/commands/patterncfg.py6
-rw-r--r--patternutils/commands/tln.py2
-rw-r--r--patternutils/commands/tmv.py2
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