Ir al contenido

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.

maxRetries = 5
default_timeout = 30
MAX_RETRIES = 5
DEFAULT_TIMEOUT = 30

Rename module/class-level constants to UPPER_SNAKE_CASE.