Fix getting callback params on py3.14+

Add 1741.bugfix.rst
This commit is contained in:
andrew000 2025-12-23 09:50:24 +02:00
parent 1e4a650171
commit 37a5eee31c
No known key found for this signature in database
GPG key ID: FE06E474CBF9C85D
3 changed files with 33 additions and 5 deletions

View file

@ -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]):