A tiny improvement

This commit is contained in:
Sadra Barikbin 2023-09-17 16:59:23 +03:30
parent 3a88adb320
commit 2b41123004
1 changed files with 1 additions and 1 deletions

View File

@ -1668,7 +1668,7 @@ class DeprecatingFuncArgs(Dict[str, object]):
def __getitem__(self, key: str) -> object:
if key not in self.initialnames:
warnings.warn(ITEM_FUNCARGS_MEMBERS)
warnings.warn(ITEM_FUNCARGS_MEMBERS, stacklevel=2)
return super().__getitem__(key)