From 59224bb7eeaa7c3496386fae9a9fb179a23f5360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=91=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Wed, 22 Apr 2026 16:43:37 +0300 Subject: [PATCH 1/8] Update sigmatch dependency to version 0.0.10 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 46659d0..7e8e517 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ description = "Function-based plugin system with respect to typing" readme = "README.md" requires-python = ">=3.8" dependencies = [ - 'sigmatch>=0.0.9', + 'sigmatch>=0.0.10', 'simtypes>=0.0.13', 'denial>=0.0.13', 'printo>=0.0.26', From b13f3dc9c05761672fd4b0b552b8896c3f4d31b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=91=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Wed, 22 Apr 2026 16:44:22 +0300 Subject: [PATCH 2/8] Bumped version to 0.0.12 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7e8e517..8429855 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pristan" -version = "0.0.11" +version = "0.0.12" authors = [{ name = "Evgeniy Blinov", email = "zheni-b@yandex.ru" }] description = "Function-based plugin system with respect to typing" readme = "README.md" From ae9f8fdb1ae103ce1fa2aff517f37388bee879f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=91=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Wed, 22 Apr 2026 16:44:47 +0300 Subject: [PATCH 3/8] Bump printo to 0.0.27 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8429855..06a05db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ dependencies = [ 'sigmatch>=0.0.10', 'simtypes>=0.0.13', 'denial>=0.0.13', - 'printo>=0.0.26', + 'printo>=0.0.27', 'getsources>=0.0.3', 'packaging>=26.0', 'importlib-metadata; python_version < "3.10"', From 17d19c9f9458cbe6b57061fe28ab3431bc0ac7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=91=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Wed, 22 Apr 2026 16:45:10 +0300 Subject: [PATCH 4/8] Update getsources version requirement to 0.0.4 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 06a05db..48db921 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ 'simtypes>=0.0.13', 'denial>=0.0.13', 'printo>=0.0.27', - 'getsources>=0.0.3', + 'getsources>=0.0.4', 'packaging>=26.0', 'importlib-metadata; python_version < "3.10"', ] From cccb500fa1c4470112173462c9f1d27538835d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=91=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Wed, 22 Apr 2026 16:48:00 +0300 Subject: [PATCH 5/8] Remove unnecessary type: ignore comments for @repred decorators --- pristan/components/plugin.py | 2 +- pristan/components/slot.py | 2 +- pristan/components/slot_code_representer.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pristan/components/plugin.py b/pristan/components/plugin.py index 1340842..35cb5ce 100644 --- a/pristan/components/plugin.py +++ b/pristan/components/plugin.py @@ -10,7 +10,7 @@ from pristan.errors import NumberOfCallsError -@repred(positionals=['name']) # type: ignore[arg-type] +@repred(positionals=['name']) class Plugin(Generic[PluginResult]): # TODO: consider to delete this "type: ignore" if python 3.9 deleted from the matrix def __init__(self, name: str, plugin_function: PluginFunction[SlotPapameters, PluginResult], expected_result_type: Union[InnerNoneType, Type[Any]], type_check: bool, unique: bool, run_once: bool = False) -> None: # type: ignore[type-arg, unused-ignore] # noqa: PLR0913 diff --git a/pristan/components/slot.py b/pristan/components/slot.py index 4da3237..1674ccc 100644 --- a/pristan/components/slot.py +++ b/pristan/components/slot.py @@ -44,7 +44,7 @@ # TODO: consider to delete all the "type: ignore"d comments if python 3.9 deleted from the matrix -@repred( # type: ignore[arg-type] +@repred( positionals=['slot_function'], filters={ 'signature': not_none, diff --git a/pristan/components/slot_code_representer.py b/pristan/components/slot_code_representer.py index 3dd01c6..61f1026 100644 --- a/pristan/components/slot_code_representer.py +++ b/pristan/components/slot_code_representer.py @@ -27,7 +27,7 @@ sentinel = InnerNoneType() -@repred(prefer_positional=True) # type: ignore[arg-type] +@repred(prefer_positional=True) class SlotCodeRepresenter: def __init__(self, function: Callable[..., Any]) -> None: self.function = function From 9c4cff96317176c78e869eab9249951e99813d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=91=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Wed, 22 Apr 2026 16:50:36 +0300 Subject: [PATCH 6/8] Update package version in SlotCodeRepresenter test to 0.0.27 --- tests/units/components/test_slot_code_representer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/units/components/test_slot_code_representer.py b/tests/units/components/test_slot_code_representer.py index 59040be..ce7c3a2 100644 --- a/tests/units/components/test_slot_code_representer.py +++ b/tests/units/components/test_slot_code_representer.py @@ -629,7 +629,7 @@ def function(): ... def test_package_version(): def function(): ... - assert SlotCodeRepresenter(descript_data_object).package_version == Version('0.0.26') + assert SlotCodeRepresenter(descript_data_object).package_version == Version('0.0.27') assert SlotCodeRepresenter(function).package_version is None From 7b5e731b36e4fe8e5fac29d0fa108370baf1dd3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=91=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Wed, 22 Apr 2026 16:52:01 +0300 Subject: [PATCH 7/8] Update package version assertion to use >= for flexibility --- tests/units/components/test_slot_code_representer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/units/components/test_slot_code_representer.py b/tests/units/components/test_slot_code_representer.py index ce7c3a2..11c14c2 100644 --- a/tests/units/components/test_slot_code_representer.py +++ b/tests/units/components/test_slot_code_representer.py @@ -629,7 +629,7 @@ def function(): ... def test_package_version(): def function(): ... - assert SlotCodeRepresenter(descript_data_object).package_version == Version('0.0.27') + assert SlotCodeRepresenter(descript_data_object).package_version >= Version('0.0.27') assert SlotCodeRepresenter(function).package_version is None From 68811f2d004551d09c05854e43b24d5a17fabafd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=91=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Wed, 22 Apr 2026 16:53:52 +0300 Subject: [PATCH 8/8] Update SlotCodeRepresenter test to use describe_call instead of descript_data_object --- tests/units/components/test_slot_code_representer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/units/components/test_slot_code_representer.py b/tests/units/components/test_slot_code_representer.py index 11c14c2..b31627d 100644 --- a/tests/units/components/test_slot_code_representer.py +++ b/tests/units/components/test_slot_code_representer.py @@ -4,7 +4,7 @@ from denial import InnerNoneType from full_match import match from packaging.version import Version -from printo import descript_data_object +from printo import describe_call from pristan.components.slot_code_representer import SlotCodeRepresenter @@ -622,14 +622,14 @@ def function() -> int: # type: ignore[empty-body] def test_base_module(): def function(): ... - assert SlotCodeRepresenter(descript_data_object).base_module == 'printo' + assert SlotCodeRepresenter(describe_call).base_module == 'printo' assert SlotCodeRepresenter(function).base_module == 'tests' def test_package_version(): def function(): ... - assert SlotCodeRepresenter(descript_data_object).package_version >= Version('0.0.27') + assert SlotCodeRepresenter(describe_call).package_version >= Version('0.0.27') assert SlotCodeRepresenter(function).package_version is None