mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Removed temporary fix of CallableMixin.__post_init__
This commit is contained in:
parent
fa9912aef7
commit
4292b3934f
1 changed files with 0 additions and 6 deletions
|
|
@ -24,12 +24,6 @@ class CallableMixin:
|
|||
def __post_init__(self) -> None:
|
||||
callback = inspect.unwrap(self.callback)
|
||||
self.awaitable = inspect.isawaitable(callback) or inspect.iscoroutinefunction(callback)
|
||||
if isinstance(callback, BaseFilter):
|
||||
# Pydantic 1.5 has incorrect signature generator
|
||||
# Issue: https://github.com/samuelcolvin/pydantic/issues/1419
|
||||
# Fixes: https://github.com/samuelcolvin/pydantic/pull/1427
|
||||
# TODO: Remove this temporary fix
|
||||
callback = inspect.unwrap(callback.__call__)
|
||||
self.spec = inspect.getfullargspec(callback)
|
||||
|
||||
def _prepare_kwargs(self, kwargs: Dict[str, Any]) -> Dict[str, Any]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue