mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix(utils): use stacklevel=3
level on which descriptor is being called
This commit is contained in:
parent
70aa5fd0fb
commit
bcbbdc3830
1 changed files with 1 additions and 1 deletions
|
|
@ -160,5 +160,5 @@ class DeprecatedReadOnlyClassVar(Generic[_OwnerCls, _VT]):
|
|||
self._new_value_getter = new_value_getter
|
||||
|
||||
def __get__(self, instance: Optional[_OwnerCls], owner: Type[_OwnerCls]):
|
||||
warn_deprecated(self._warning_message)
|
||||
warn_deprecated(self._warning_message, stacklevel=3)
|
||||
return self._new_value_getter(owner)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue