From 55f545d107cc2c5cf64f75abd86f0806f4579d96 Mon Sep 17 00:00:00 2001 From: melt Date: Wed, 1 May 2024 22:27:43 +0100 Subject: [PATCH] fix mypy issues --- mdb/backend.py | 3 ++- mdb/mdb_wrapper.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mdb/backend.py b/mdb/backend.py index ee2444a..3775788 100644 --- a/mdb/backend.py +++ b/mdb/backend.py @@ -2,6 +2,7 @@ # details. from abc import ABC, abstractmethod +from typing import List, Type class DebugBackend(ABC): @@ -78,4 +79,4 @@ def float_regex(self) -> str: return r"\d+ = ([+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?)" -backends = [LLDBBackend, GDBBackend] +backends: List[Type[DebugBackend]] = [LLDBBackend, GDBBackend] diff --git a/mdb/mdb_wrapper.py b/mdb/mdb_wrapper.py index 1bc9f63..8586c56 100644 --- a/mdb/mdb_wrapper.py +++ b/mdb/mdb_wrapper.py @@ -23,6 +23,7 @@ "ranks": int, "select": str, "target": str, + "connection_attempts": int, }, )