@@ -451,12 +451,14 @@ def _create_session(self) -> Session:
451451 raise ValueError (f"Failed to parse auth configuration as JSON from { source_env_var } : { raw_auth !r} " ) from e
452452 if not isinstance (auth_config , dict ):
453453 raise ValueError (
454- f"Auth configuration loaded from { source_env_var } must be a JSON object (dict), got { type (auth_config ).__name__ } : { raw_auth !r} "
454+ f"Auth configuration loaded from { source_env_var } must be a JSON object (dict), "
455+ f"got { type (auth_config ).__name__ } : { raw_auth !r} "
455456 )
456457 else :
457458 if not isinstance (raw_auth , dict ):
458459 raise ValueError (
459- f"Auth configuration for { source_env_var } must be a dict or JSON string, got { type (raw_auth ).__name__ } : { raw_auth !r} "
460+ f"Auth configuration for { source_env_var } must be a dict or JSON string, "
461+ f"got { type (raw_auth ).__name__ } : { raw_auth !r} "
460462 )
461463 auth_config = raw_auth
462464 auth_type = auth_config .get ("type" )
@@ -480,11 +482,13 @@ def _create_session(self) -> Session:
480482 )
481483 if auth_type == CUSTOM and not auth_impl :
482484 raise ValueError (
483- f"auth.impl must be specified when using custom auth.type{ f' (from { source_env_var } )' if source_env_var else '' } "
485+ f"auth.impl must be specified when using custom auth.type"
486+ f"{ f' (from { source_env_var } )' if source_env_var else '' } "
484487 )
485488 if auth_type != CUSTOM and auth_impl :
486489 raise ValueError (
487- f"auth.impl can only be specified when using custom auth.type{ f' (from { source_env_var } )' if source_env_var else '' } "
490+ f"auth.impl can only be specified when using custom auth.type"
491+ f"{ f' (from { source_env_var } )' if source_env_var else '' } "
488492 )
489493 self ._auth_manager = AuthManagerFactory .create (auth_impl or auth_type , auth_type_config or {})
490494 session .auth = AuthManagerAdapter (self ._auth_manager )
0 commit comments