Fix errors reported by mypy

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-11-02 09:42:21 +01:00
commit d8d514a4d1
3 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import annotations
from typing import List, Type, Union, TypeVar
from typing import Optional, List, Type, Union, TypeVar
import inspect, sys, re, abc, argparse
from argparse import ArgumentParser, _SubParsersAction
@ -17,6 +17,7 @@ class Cmd(abc.ABC): # export
pass
def __init__(self, name: str, help: str) -> None:
from . import Cmds
self.name = name
self.help = help
self.parent = None