osbuild: fix optional-types
Optional types were provided in places but were not always correct. Add mypy checking and fix those that fail(ed).
This commit is contained in:
parent
6e66c69608
commit
3fd864e5a9
29 changed files with 209 additions and 111 deletions
|
|
@ -22,7 +22,7 @@ import errno
|
|||
import os
|
||||
import sys
|
||||
|
||||
from typing import Dict
|
||||
from typing import Dict, Optional
|
||||
|
||||
from osbuild import devices
|
||||
from osbuild import loop
|
||||
|
|
@ -63,8 +63,6 @@ class LoopbackService(devices.DeviceService):
|
|||
|
||||
def __init__(self, args: argparse.Namespace):
|
||||
super().__init__(args)
|
||||
self.fd = None
|
||||
self.lo = None
|
||||
self.ctl = loop.LoopControl()
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue