aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2022-05-27 12:32:08 +0200
committerGuido Günther <agx@sigxcpu.org>2022-05-27 12:32:08 +0200
commit92c3fd2f631368f4febb3cba9cebdcf151612262 (patch)
tree7aea2abb8975faa570fc0cde5bd306ad295a8002
parent39ae57e57654950b56c1d960df20cbe4cd90c824 (diff)
dch: Add minimal type information
Just enough to make mypy happy
-rw-r--r--gbp/scripts/dch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index 4914b778..325a0372 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -19,6 +19,7 @@
import os.path
import re
+import typing
import sys
import shutil
import gbp.command_wrappers as gbpc
@@ -33,7 +34,7 @@ from gbp.deb.changelog import ChangeLog, NoChangeLogError
from gbp.scripts.common import ExitCodes, maybe_debug_raise
from gbp.scripts.common.hook import Hook
-user_customizations = {}
+user_customizations: typing.Dict[str, str] = {}
snapshot_re = re.compile(r'\s*\*\* SNAPSHOT build @(?P<commit>[a-z0-9]+)\s+\*\*')