mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
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:
parent
a9dd9c7d0d
commit
952bf4a4e1
9 changed files with 15 additions and 13 deletions
|
|
@ -1,5 +1,7 @@
|
|||
from __future__ import annotations
|
||||
from abc import ABC, abstractmethod
|
||||
from enum import Enum, Flag, auto
|
||||
from typing import *
|
||||
|
||||
def _sigchld_handler(signum, process):
|
||||
if not signum == signal.SIGCHLD:
|
||||
|
|
@ -8,7 +10,7 @@ def _sigchld_handler(signum, process):
|
|||
|
||||
class Process(ABC): # export
|
||||
|
||||
__processes = []
|
||||
__processes: List[Process] = []
|
||||
|
||||
class State(Enum):
|
||||
Running = auto()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue