Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Make name argument to Functional optional #58

@wence-

Description

@wence-

When building specific functionals, we pass a name to the superclass constructor that is just a label.
A few of these superclass init calls have a functional name that doesn't match the class name. AFAICT this name is just an arbitrary label that one attaches, so it doesn't have to match.

To avoid this, we could make it an optional argument, and do:

class Functional:
    def __init__(self, ..., functional_type=None):
        ...
        self.functional_type = functional_type or type(self).__name__

Originally posted by @wence- in #56 (comment)

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