agentune
agentune copied to clipboard
Define and follow guidelines for collections
Description
Suggestion
- Use tuple in attrs classes attributes
- Use Sequence in public API
- Wherever we create a collection - use tuple if it can be immutable, list if it can't be mutated
- Don't use List/Tuple/Mapping - enforce it by this ruff rule : "UP006"
@danarmak Sounds good?
Re (3) do you mean in local variables? I'm not convinced we should forbid using lists "unnecessarily" in local variables.