By DeepSource
All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
Instead of adding items to a dictionary just after creation, it should be refactored to add those items into the dict definition itself.
env = {} env['HOST'] = 'example.com' env['PORT'] = 8080
env = {'HOST': 'example.com', 'PORT': 8080}