Skip to content

Generic <dict_to_object> converter is not used for custom types decorated with pytypes #8

Closed
@smarie

Description

@smarie
from parsyfiles import RootParser
from pytypes import typechecked

@typechecked
class Foo:
    def __init__(self, bar: str):
        self.bar = bar


rp = RootParser()
print(rp.get_all_conversion_chains_to_type(to_type=Foo))  # $<dict_to_object>$ not in list

Whereas if we remove the @typechecked annotation it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions