From 3a2d2d4cb12ad2e29a9b2e152e2a8bf3530e1b44 Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Sat, 9 Nov 2019 10:41:20 +0100 Subject: [PATCH] Remove unneeded generic attribute --- generic/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/registry.py b/generic/registry.py index 9143f7b..2499d25 100644 --- a/generic/registry.py +++ b/generic/registry.py @@ -41,7 +41,7 @@ class Registry(Generic[T]): def register(self, target: T, *arg_keys: K, **kw_keys: K) -> None: tree_node = self._tree for key in self._align_with_axes(arg_keys, kw_keys): - tree_node = tree_node.setdefault(key, _TreeNode[T]()) + tree_node = tree_node.setdefault(key, _TreeNode()) if not tree_node.target is None: raise ValueError(