Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ 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" },
]
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",
Expand Down
4 changes: 2 additions & 2 deletions sigmatch/matchers/possible_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sigmatch/matchers/series.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand Down
Loading