def _environment_variables ( ) -> Dict [ str , str ] : return { key : value for key , value in os . environ . items ( ) if _is_encodable ( value ) }
get environ varibles in python
Wraps os . environ to filter out non - encodable values .
def _environment_variables() -> Dict[str, str]:
    """
    Wraps `os.environ` to filter out non-encodable values.
    """
    return {key: value
            for key, value in os.environ.items()
            if _is_encodable(value)}