variable typing
This commit is contained in:
@@ -27,7 +27,7 @@ class HookedMapping(HookedContainer[T], MutableMapping[T, MutableNesting[T]]):
|
||||
case MutableMapping() as mapping:
|
||||
new_path = copy(self._path)
|
||||
new_path.append(key)
|
||||
return HookedMapping(self.hook, existing=mapping, path=new_path)
|
||||
return type(self)(self.hook, existing=mapping, path=new_path)
|
||||
case MutableSequence() as seq:
|
||||
new_path = copy(self._path)
|
||||
new_path.append(key)
|
||||
|
||||
Reference in New Issue
Block a user