From f4ca9658fb90d4320f001010459df519de97291f Mon Sep 17 00:00:00 2001 From: nikto_b Date: Sat, 19 Jul 2025 01:26:26 +0300 Subject: [PATCH] Fix consumer fn args random mixing --- pyproject.toml | 2 +- src/breakshaft/graph_walker.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8d3cb22..a887feb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "breakshaft" -version = "0.1.0" +version = "0.1.0.post1" description = "Library for in-time codegen for type conversion" authors = [ { name = "nikto_b", email = "niktob560@yandex.ru" } diff --git a/src/breakshaft/graph_walker.py b/src/breakshaft/graph_walker.py index 59e357c..dd3719b 100644 --- a/src/breakshaft/graph_walker.py +++ b/src/breakshaft/graph_walker.py @@ -3,7 +3,7 @@ from types import NoneType from typing import Callable, Optional from .models import ConversionPoint, Callgraph, CallgraphVariant, TransformationPoint, CompositionDirection -from .util import extract_func_argtypes, all_combinations +from .util import extract_func_argtypes, all_combinations, extract_func_argtypes_seq class GraphWalker: @@ -23,8 +23,9 @@ class GraphWalker: if cg is None: return None branches |= {cg} - variant = CallgraphVariant(ConversionPoint(consumer_fn, NoneType, tuple(extract_func_argtypes(consumer_fn))), - branches, frozenset()) + variant = CallgraphVariant( + ConversionPoint(consumer_fn, NoneType, tuple(extract_func_argtypes_seq(consumer_fn))), + branches, frozenset()) return Callgraph(frozenset({variant})) @classmethod