tessl install tessl/pypi-varname@0.15.0Dark magics about variable names in python
Agent Success
Agent success rate when using this tile
90%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.41x
Baseline
Agent success rate without this tile
64%
{
"context": "This criteria evaluates how effectively an engineer uses the varname package to implement automatic variable name capture for simple assignments. The focus is on proper usage of varname's core functions to handle basic assignment scenarios including simple assignment, attribute assignment, and subscript assignment.",
"type": "weighted_checklist",
"checklist": [
{
"name": "varname() function usage",
"description": "Uses the varname() function from the varname package to retrieve the assignment variable name in the __init__ method",
"max_score": 35
},
{
"name": "Simple assignment handling",
"description": "Correctly captures variable names for simple assignments (e.g., config = NamedObject()) without requiring additional configuration",
"max_score": 20
},
{
"name": "Attribute assignment support",
"description": "Correctly captures the attribute name when assigned to object attributes (e.g., obj.setting = NamedObject()) by properly handling the assignment context",
"max_score": 20
},
{
"name": "Subscript assignment support",
"description": "Correctly captures the key name when assigned to dictionary subscripts (e.g., registry['handler'] = NamedObject()) by properly handling the subscript assignment context",
"max_score": 20
},
{
"name": "Name storage",
"description": "Stores the captured variable name in a manner that allows it to be accessed via the name property as specified in the API",
"max_score": 5
}
]
}