Fix Python errors reported by mypy

This commit fixes Python errors and warnings reported by static type checking
with mypy.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2020-04-10 14:17:15 +02:00
commit 952bf4a4e1
9 changed files with 15 additions and 13 deletions

View file

@ -1,11 +1,9 @@
import abc
import argparse
from abc import ABC
from jwutils import log
# compatible with Python 2 *and* 3
ABC = abc.ABCMeta('ABC', (object,), {'__slots__': ()})
# full blown example of one level of nested subcommands
# git -C project remote -v show -n myremote