mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Fixed overlapping of names in context module.
This commit is contained in:
parent
221ce362fc
commit
a18ea82974
1 changed files with 4 additions and 4 deletions
|
|
@ -46,10 +46,10 @@ def get_current_state() -> typing.Dict:
|
||||||
:rtype: :obj:`dict`
|
:rtype: :obj:`dict`
|
||||||
"""
|
"""
|
||||||
task = asyncio.Task.current_task()
|
task = asyncio.Task.current_task()
|
||||||
context = getattr(task, 'context', None)
|
context_ = getattr(task, 'context', None)
|
||||||
if context is None:
|
if context_ is None:
|
||||||
context = task.context = {}
|
context_ = task.context = {}
|
||||||
return context
|
return context_
|
||||||
|
|
||||||
|
|
||||||
def get_value(key, default=None):
|
def get_value(key, default=None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue