Makefile, MyPy error fix

This commit is contained in:
DarkCat09 2022-11-01 16:20:36 +04:00
parent e2eb87994d
commit 467fbf6ef7
2 changed files with 18 additions and 1 deletions

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
build:
python -m build
upload:
python -m twine upload dist/*
clean:
rm -rf dist/
rm -rf showdialog/__pycache__/
check:
python -m mypy .
python -m pylint -j 4 ./showdialog
format:
python -m autopep8 -r --in-place ./showdialog

View file

@ -1,10 +1,11 @@
"""Simple module for showing GTK dialog""" """Simple module for showing GTK dialog"""
from typing import Union, Optional, Tuple
import gi # type: ignore import gi # type: ignore
gi.require_version('Gtk', '3.0') gi.require_version('Gtk', '3.0')
from gi.repository import Gtk # type: ignore from gi.repository import Gtk # type: ignore
from typing import Union, Optional, Tuple # type: ignore
TxtTuple = Tuple[Optional[str], bool] TxtTuple = Tuple[Optional[str], bool]
TxtType = Union[TxtTuple, Optional[str]] TxtType = Union[TxtTuple, Optional[str]]