mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix getting callback params on py3.14+ (#1741)
* Add test to reproduce `TypeError: unsupported callable` on `python >=3.14` * Fix getting callback params on py3.14+ Add 1741.bugfix.rst * Code optimization
This commit is contained in:
parent
79ee135331
commit
b27ca9a45d
4 changed files with 63 additions and 5 deletions
|
|
@ -57,8 +57,8 @@ class TestCallableObject:
|
|||
pytest.param(callback1, {"foo", "bar", "baz"}),
|
||||
pytest.param(callback2, {"foo", "bar", "baz"}),
|
||||
pytest.param(callback3, {"foo"}),
|
||||
pytest.param(TestFilter(), {"self", "foo", "bar", "baz"}),
|
||||
pytest.param(SyncCallable(), {"self", "foo", "bar", "baz"}),
|
||||
pytest.param(TestFilter(), {"foo", "bar", "baz"}),
|
||||
pytest.param(SyncCallable(), {"foo", "bar", "baz"}),
|
||||
],
|
||||
)
|
||||
def test_init_args_spec(self, callback: Callable, args: Set[str]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue