Skip to content

Not setting precedence higher precedence than setting precedence #514

Description

@ahuang11
from param import Parameterized
from param import Parameter
class A(Parameterized):
    question = Parameter("What is it?", doc="The question", precedence=3)
    answer = Parameter(2, constant=True, doc="The answer")
    ultimate_answer = Parameter(42, readonly=True, doc="The real answer")

class B(A):
    question_b = Parameter("What is it?", doc="The question", precedence=1)

a = B(question="How is it?", answer="6")
Name                  Value         Type    Mode 

answer                  2        Parameter  C RW 
ultimate_answer         42       Parameter  C RO 
question_b        'What is it?'  Parameter  V RW 
question          'What is it?'  Parameter  V RW 

I expected question_b to be listed first, then question, then answer + ulimate answer,

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions