from typing_extensions import Literal
from knot_resolver_manager.datamodel.types import DomainName, IDPattern, IPAddress, TimeUnit
-from knot_resolver_manager.datamodel.types.files import UncheckedPath, FilePath
+from knot_resolver_manager.datamodel.types.files import FilePath, UncheckedPath
from knot_resolver_manager.utils.modeling import ConfigSchema
class ListOrItem(BaseGenericTypeWrapper[Union[List[T], T]]):
-
_value_orig: Union[List[T], T]
_list: List[T]
- def __init__(self, source_value: Any, object_path: str = "/") -> None:
+ def __init__(self, source_value: Any, object_path: str = "/") -> None: # pylint: disable=unused-argument
super().__init__(source_value)
self._value_orig: Union[List[T], T] = source_value
self._list: List[T] = source_value if isinstance(source_value, list) else [source_value]
from typing import List, Optional
from typing_extensions import Literal
-from knot_resolver_manager.utils.modeling import ConfigSchema
+
from knot_resolver_manager.datamodel.types import IDPattern, IPNetwork
+from knot_resolver_manager.utils.modeling import ConfigSchema
class ViewOptionsSchema(ConfigSchema):
T = TypeVar("T")
-class BaseGenericTypeWrapper(Generic[T], BaseTypeABC):
+class BaseGenericTypeWrapper(Generic[T], BaseTypeABC): # pylint: disable=abstract-method
pass
import socket
-from http.client import HTTPConnection
import sys
+from http.client import HTTPConnection
from typing import Any, Optional, Union
from urllib.error import HTTPError, URLError
from urllib.request import AbstractHTTPHandler, Request, build_opener, install_opener, urlopen