diff --git a/pyproject.toml b/pyproject.toml index 10f65dc..84f4341 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "sigmatch" -version = "0.0.9" +version = "0.0.10" authors = [ { name="Evgeniy Blinov", email="zheni-b@yandex.ru" }, ] @@ -12,7 +12,7 @@ description = 'A quick way to verify function signatures in Python' readme = "README.md" requires-python = ">=3.8" dependencies = [ - 'printo>=0.0.22', + 'printo>=0.0.26', ] classifiers = [ "Operating System :: OS Independent", diff --git a/sigmatch/matchers/possible_call.py b/sigmatch/matchers/possible_call.py index 5a0a954..74bcc28 100644 --- a/sigmatch/matchers/possible_call.py +++ b/sigmatch/matchers/possible_call.py @@ -3,7 +3,7 @@ from itertools import chain, combinations from typing import Any, Callable, Generator, List, Optional, Tuple, cast -from printo import describe_data_object +from printo import describe_call from sigmatch.errors import ( IncorrectArgumentsOrderError, @@ -47,7 +47,7 @@ def __init__(self, *args: str) -> None: self.is_wrong = False def __repr__(self) -> str: - return describe_data_object(type(self).__name__, (self._get_signature_string(),), {}, filters={0: lambda x: x != ''}) + return describe_call(type(self).__name__, [self._get_signature_string()], {}, filters={0: lambda x: x != ''}) def __eq__(self, other: Any) -> bool: from sigmatch.matchers.series import SignatureSeriesMatcher # noqa: PLC0415 diff --git a/sigmatch/matchers/series.py b/sigmatch/matchers/series.py index 56058ec..fdaed49 100644 --- a/sigmatch/matchers/series.py +++ b/sigmatch/matchers/series.py @@ -1,6 +1,6 @@ from typing import Any, Callable, Generator, List -from printo import describe_data_object +from printo import describe_call from sigmatch import PossibleCallMatcher from sigmatch.errors import SignatureMismatchError, SignatureNotFoundError @@ -20,7 +20,7 @@ def __init__(self, *matchers: AbstractSignatureMatcher) -> None: self.matchers = sorted(set(self.matchers), key=lambda x: x._get_signature_string()) def __repr__(self) -> str: - return describe_data_object(type(self).__name__, self.matchers, {}) + return describe_call(type(self).__name__, self.matchers, {}) def __bool__(self) -> bool: return bool(self.matchers)