Fix consumer fn args random mixing
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "breakshaft"
|
name = "breakshaft"
|
||||||
version = "0.1.0"
|
version = "0.1.0.post1"
|
||||||
description = "Library for in-time codegen for type conversion"
|
description = "Library for in-time codegen for type conversion"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "nikto_b", email = "niktob560@yandex.ru" }
|
{ name = "nikto_b", email = "niktob560@yandex.ru" }
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from types import NoneType
|
|||||||
from typing import Callable, Optional
|
from typing import Callable, Optional
|
||||||
|
|
||||||
from .models import ConversionPoint, Callgraph, CallgraphVariant, TransformationPoint, CompositionDirection
|
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:
|
class GraphWalker:
|
||||||
@@ -23,8 +23,9 @@ class GraphWalker:
|
|||||||
if cg is None:
|
if cg is None:
|
||||||
return None
|
return None
|
||||||
branches |= {cg}
|
branches |= {cg}
|
||||||
variant = CallgraphVariant(ConversionPoint(consumer_fn, NoneType, tuple(extract_func_argtypes(consumer_fn))),
|
variant = CallgraphVariant(
|
||||||
branches, frozenset())
|
ConversionPoint(consumer_fn, NoneType, tuple(extract_func_argtypes_seq(consumer_fn))),
|
||||||
|
branches, frozenset())
|
||||||
return Callgraph(frozenset({variant}))
|
return Callgraph(frozenset({variant}))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user