mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
Fix errors reported by mypy
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
e071df39ab
commit
d8d514a4d1
3 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue