By DeepSource
All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
Instead of addepts items to a set just after creation, it should be refactored to add those items into the set definition itself.
trees = set() trees.add('cedar') trees.add('oak')
trees = {'cedar', 'oak'}