---
source: crates/ruff_linter/src/rules/pylint/mod.rs
snapshot_kind: text
---
shallow_copy_environ.py:4:14: PLW1507 [*] Shallow copy of `os.environ` via `copy.copy(os.environ)`
  |
2 | import os
3 | 
4 | copied_env = copy.copy(os.environ)  # [shallow-copy-environ]
  |              ^^^^^^^^^^^^^^^^^^^^^ PLW1507
  |
  = help: Replace with `os.environ.copy()`

ℹ Safe fix
1 1 | import copy
2 2 | import os
3 3 | 
4   |-copied_env = copy.copy(os.environ)  # [shallow-copy-environ]
  4 |+copied_env = os.environ.copy()  # [shallow-copy-environ]
