invalid-envvar-value / E1507#

Message emitted:

%s does not support %s type argument

Description:

Env manipulation functions support only string type arguments. See https://docs.python.org/3/library/os.html#os.getenv.

Correct code:

import os

os.getenv('1')

Problematic code:

import os

os.getenv(1)  # [invalid-envvar-value]

Created by the stdlib checker.