Skip to content

class based add_analysis #424

@paddymul

Description

@paddymul

Checks

  • I have checked that this enhancement has not already been requested

How would you categorize this request. You can select multiple if not sure

Developer ergonomics (defaults, error messages)

Enhancement Description

Adding analysis methods to buckaroo is awkward. I copy the existing list of analysis_klasses, extend it with the new analysis_klass, then create a new class extending buckaroo with the analysis plumbed in. This should be built into BuckarooWidget

Pseudo Code Implementation

    class A:

        b = 12
        def foo(self):
            return 10
        
        @classmethod
        def foo(kls, new_b):
            class t_class(kls):
                b = new_b
            return t_class
    #A.foo(), A().foo()
    new_class = A.foo(8)
    new_class().b
    return

Prior Art

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions