mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
changes and Sets
This commit is contained in:
parent
32d5f79a25
commit
945e1cf865
3 changed files with 5 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import functools
|
||||
from typing import Any, Dict, Union, Callable
|
||||
from typing import Any, Dict, Union, Callable, Set
|
||||
|
||||
import pytest
|
||||
from magic_filter import F as A
|
||||
|
|
@ -61,7 +61,7 @@ class TestCallableMixin:
|
|||
pytest.param(SyncCallable(), {"self", "foo", "bar", "baz"}),
|
||||
],
|
||||
)
|
||||
def test_init_args_spec(self, callback: Callable, args: set[str]):
|
||||
def test_init_args_spec(self, callback: Callable, args: Set[str]):
|
||||
obj = CallableMixin(callback)
|
||||
assert set(obj.params) == args
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue