mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update handler.py
This commit is contained in:
parent
d6ab1a7afc
commit
8b3f0b887d
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import inspect
|
||||
from contextvars import ContextVar
|
||||
from dataclasses import dataclass
|
||||
from typing import Union
|
||||
|
||||
ctx_data = ContextVar('ctx_handler_data')
|
||||
current_handler = ContextVar('current_handler')
|
||||
|
|
@ -125,4 +126,4 @@ class Handler:
|
|||
class HandlerObj:
|
||||
handler: callable
|
||||
spec: inspect.FullArgSpec
|
||||
filters: list = None
|
||||
filters: Union[list, tuple, set] = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue