From fa6b77267444e5b63630fe0722ccfb9c917eacd3 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Mon, 18 Mar 2024 20:55:34 +0100 Subject: [PATCH] Fixed typo in context.unset_data Picked from 71e5c5b and 38029e3 --- src/formatitko/context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formatitko/context.py b/src/formatitko/context.py index a4563bc..7cafb55 100644 --- a/src/formatitko/context.py +++ b/src/formatitko/context.py @@ -143,8 +143,8 @@ class Context: def unset_data(self, key: str): if key == "": - self._doc = {} - data = self._doc + self._data = {} + data = self._data keys = key.split(".") for k in keys[:-1]: data = data[k]