Simply compare vars for equality in EnvironCredential.
@@ -40,13 +40,7 @@ class EnvironCredential(Credential):
self.pwd_env_var = pwd_env_var
def __eq__(self, other: object) -> bool:
- if not isinstance(other, EnvironCredential):
- return NotImplemented
-
- return (
- self.user_env_var == other.user_env_var
- and self.pwd_env_var == other.pwd_env_var
- )
+ return vars(self) == vars(other)
def _get_env(self, env_var):
"""Helper to read an environment variable"""
