]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
utils: overloads: type hint fix
authorVasek Sraier <git@vakabus.cz>
Tue, 30 Mar 2021 17:39:41 +0000 (19:39 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 8 Apr 2022 14:17:52 +0000 (16:17 +0200)
manager/knot_resolver_manager/utils/overload.py

index 8ea226aaa16a6cd47d95703f4ebc38595ece1e77..8834cfc40fea1753a0538d6d432f4a7349dad714 100644 (file)
@@ -12,7 +12,7 @@ class OverloadedFunctionException(Exception):
 
 class Overloaded(Generic[T]):
     def __init__(self):
-        self._vtable: Dict[Tuple[Any], Callable[..., T]] = {}
+        self._vtable: Dict[Tuple[Any, ...], Callable[..., T]] = {}
 
     @staticmethod
     def _create_signatures(*types: Any) -> List[Any]: