Constant casing UPPER_SNAKE (ARCH2006)
Esta página aún no está disponible en tu idioma.
Key python.naming.constant-upper-snake · Severity info · Category naming
Module- and class-level constants should use UPPER_SNAKE_CASE per Python convention. Otherwise constants are indistinguishable from ordinary variables.
Incorrect
Section titled “Incorrect”maxRetries = 5default_timeout = 30Correct
Section titled “Correct”MAX_RETRIES = 5DEFAULT_TIMEOUT = 30Rename module/class-level constants to UPPER_SNAKE_CASE.