From ce414053d9460de25868679f4defb4d6b011aa59 Mon Sep 17 00:00:00 2001 From: Pragati Date: Fri, 26 May 2023 11:05:24 -0700 Subject: [PATCH] formatting fixes --- firebase_admin/project_config_mgt.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/firebase_admin/project_config_mgt.py b/firebase_admin/project_config_mgt.py index fe24fe679..b3d15c854 100644 --- a/firebase_admin/project_config_mgt.py +++ b/firebase_admin/project_config_mgt.py @@ -54,11 +54,15 @@ def get_project_config(app=None): project_config_mgt_service = _get_project_config_mgt_service(app) return project_config_mgt_service.get_project_config() -def update_project_config(multi_factor_config: MultiFactorConfig = None, password_policy_config: PasswordPolicyConfig = None, app=None): +def update_project_config( + multi_factor_config: MultiFactorConfig = None, + password_policy_config: PasswordPolicyConfig = None, + app=None): """Update the Project Config with the given options. Args: multi_factor_config: Updated Multi Factor Authentication configuration - (optional) + (optional). + password_policy_config: Updated Password Policy configuration (optional). app: An App instance (optional). Returns: Project: An updated ProjectConfig object. @@ -67,7 +71,9 @@ def update_project_config(multi_factor_config: MultiFactorConfig = None, passwor FirebaseError: If an error occurs while updating the project. """ project_config_mgt_service = _get_project_config_mgt_service(app) - return project_config_mgt_service.update_project_config(multi_factor_config=multi_factor_config, password_policy_config=password_policy_config) + return project_config_mgt_service.update_project_config( + multi_factor_config=multi_factor_config, + password_policy_config=password_policy_config) def _get_project_config_mgt_service(app): @@ -90,7 +96,7 @@ def multi_factor_config(self): if data: return MultiFactorServerConfig(data) return None - + @property def password_policy_config(self): data = self._data.get('passwordPolicyConfig') @@ -121,7 +127,10 @@ def get_project_config(self) -> ProjectConfig: else: return ProjectConfig(body) - def update_project_config(self, multi_factor_config: MultiFactorConfig = None, password_policy_config: PasswordPolicyConfig = None) -> ProjectConfig: + def update_project_config( + self, + multi_factor_config: MultiFactorConfig = None, + password_policy_config: PasswordPolicyConfig = None) -> ProjectConfig: """Updates the specified project with the given parameters.""" payload = {}