Skip to content

Refactoring _get_nodes #162

@liamhuber

Description

@liamhuber

I think it would help readability if _to_node_dict_entry were complete and returned a full node-dict entry. This would make it easier to draw a connection to a Function dataclass. By the same token, it appears to specifically mean a function node dict entry, as the composite workflow entries are handled in the previous clause, so a more specific name would help.

Also, the second if hasattr(func, "_semantikon_metadata"): should be redundant -- we can move it's body inside the first clause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions