]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lint: satisfy new mypy version docs-develop-doc-vyxna8/deployments/3923
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 29 Apr 2024 09:19:20 +0000 (11:19 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 29 Apr 2024 09:19:20 +0000 (11:19 +0200)
manager/knot_resolver_manager/datamodel/types/base_types.py
manager/knot_resolver_manager/datamodel/types/files.py
manager/knot_resolver_manager/datamodel/types/generic_types.py
manager/knot_resolver_manager/datamodel/types/types.py

index 227a59eb9e488f0f79e9667d0c0270de426d9192..91f53406e33b7843cf56a543b6e7e5d426bb9e27 100644 (file)
@@ -13,7 +13,6 @@ class IntBase(BaseValueType):
     _value: int
 
     def __init__(self, source_value: Any, object_path: str = "/") -> None:
-        super().__init__(source_value, object_path)
         if isinstance(source_value, int) and not isinstance(source_value, bool):
             self._orig_value = source_value
             self._value = source_value
@@ -53,7 +52,6 @@ class StrBase(BaseValueType):
     _value: str
 
     def __init__(self, source_value: Any, object_path: str = "/") -> None:
-        super().__init__(source_value, object_path)
         if isinstance(source_value, (str, int)) and not isinstance(source_value, bool):
             self._orig_value = str(source_value)
             self._value = str(source_value)
index dd516358754faec2d58511287554a838b568c44c..49b51f713b29708fc25e24bca942f67f8ebb4bd2 100644 (file)
@@ -16,7 +16,6 @@ class UncheckedPath(BaseValueType):
     def __init__(
         self, source_value: Any, parents: Tuple["UncheckedPath", ...] = tuple(), object_path: str = "/"
     ) -> None:
-        super().__init__(source_value, object_path=object_path)
         self._object_path: str = object_path
         self._parents: Tuple[UncheckedPath, ...] = parents
         self.strict_validation: bool = get_strict_validation()
index 247673ca0460d23fe91b266757c5e7b006340a83..549b11a86dea1239ff49cbea9a751666c09431af 100644 (file)
@@ -10,7 +10,6 @@ class ListOrItem(BaseGenericTypeWrapper[Union[List[T], T]]):
     _list: List[T]
 
     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]
index 505b0be76a313f7b2057203659579b2b916dba0c..7c2d4dcb2e1dafbc0b77cff8db1509d0ae961c86 100644 (file)
@@ -287,7 +287,6 @@ class IPv4Address(BaseValueType):
     _value: ipaddress.IPv4Address
 
     def __init__(self, source_value: Any, object_path: str = "/") -> None:
-        super().__init__(source_value)
         if isinstance(source_value, str):
             try:
                 self._value: ipaddress.IPv4Address = ipaddress.IPv4Address(source_value)
@@ -332,7 +331,6 @@ class IPv6Address(BaseValueType):
     _value: ipaddress.IPv6Address
 
     def __init__(self, source_value: Any, object_path: str = "/") -> None:
-        super().__init__(source_value)
         if isinstance(source_value, str):
             try:
                 self._value: ipaddress.IPv6Address = ipaddress.IPv6Address(source_value)
@@ -385,7 +383,6 @@ class IPAddressEM(BaseValueType):
     _addr: Union[ipaddress.IPv4Address, ipaddress.IPv6Address]
 
     def __init__(self, source_value: Any, object_path: str = "/") -> None:
-        super().__init__(source_value)
         if isinstance(source_value, str):
             if source_value.endswith("!"):
                 addr, suff = source_value.split("!", 1)
@@ -437,7 +434,6 @@ class IPNetwork(BaseValueType):
     _value: Union[ipaddress.IPv4Network, ipaddress.IPv6Network]
 
     def __init__(self, source_value: Any, object_path: str = "/") -> None:
-        super().__init__(source_value)
         if isinstance(source_value, str):
             try:
                 self._value: Union[ipaddress.IPv4Network, ipaddress.IPv6Network] = ipaddress.ip_network(source_value)
@@ -475,7 +471,6 @@ class IPv6Network(BaseValueType):
     _value: ipaddress.IPv6Network
 
     def __init__(self, source_value: Any, object_path: str = "/") -> None:
-        super().__init__(source_value)
         if isinstance(source_value, str):
             try:
                 self._value: ipaddress.IPv6Network = ipaddress.IPv6Network(source_value)