W1508 invalid-envvar-defaultΒΆ

Message

'%s default type is %s. Expected str or None.'

Description

Env manipulation functions return None or str values. Supplying anything different as a default may cause bugs. See https://docs.python.org/3/library/os.html#os.getenv.