Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
76
{
"context": "Evaluates how well the solution uses aenum's descriptor utilities to control member exposure, immutability, and read-only properties for the access-scope enum. Focuses on correct use of member/skip/constant/enum_property rather than general coding style.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Forced member",
"description": "Uses aenum.member to turn the computed TOTAL_COUNT callable/value into an enum member that shows up in iteration and __members__.",
"max_score": 25
},
{
"name": "Skipped helpers",
"description": "Marks helper attributes like registry/_cache with aenum.skip or aenum.nonmember so they remain accessible but are excluded from enum membership and __members__.",
"max_score": 20
},
{
"name": "Constant prefix",
"description": "Defines AUDIT_PREFIX via aenum.constant to keep it immutable and prevent it from being treated as an enum member.",
"max_score": 20
},
{
"name": "Label property",
"description": "Exposes the human-friendly label through aenum.enum_property or aenum.property so it is read-only, coexists with stored codes, and does not create extra members.",
"max_score": 15
},
{
"name": "Count derived",
"description": "Derives TOTAL_COUNT from the number of real scopes (e.g., via len on the enum) instead of hard-coding, showing correct use of aenum iteration semantics alongside member/skip descriptors.",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-aenumevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10