mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 16:15:51 +00:00
Fixed aiogram/filters/magic_data.py:21:41: C416 Unnecessary dict comprehension (rewrite using dict())
This commit is contained in:
parent
fea1b7b0a3
commit
5a99b78292
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ class MagicData(Filter):
|
|||
|
||||
async def __call__(self, event: TelegramObject, *args: Any, **kwargs: Any) -> Any:
|
||||
return self.magic_data.resolve(
|
||||
AttrDict({"event": event, **{k: v for k, v in enumerate(args)}, **kwargs})
|
||||
AttrDict({"event": event, **dict(enumerate(args)), **kwargs})
|
||||
)
|
||||
|
||||
def __str__(self) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue