Skip to content

Commit

Permalink
fix typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed Jul 16, 2024
1 parent 0818cd9 commit 552d5b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pypnusershub/auth/providers/usershub_provider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Optional, Tuple
from typing import Any, Optional, Tuple, Union

import requests
from flask import request
Expand Down Expand Up @@ -36,7 +36,7 @@ def authenticate(self):
user_dict["uuid_role"] = user_resp.get("uuid_role")
return self.insert_or_update_role(user_dict)

def configure(self, configuration: dict | Any) -> None:
def configure(self, configuration: Union[dict, Any]) -> None:

class ExternalGNConfiguration(ProviderConfigurationSchema):
login_url = fields.String(required=True)
Expand Down

0 comments on commit 552d5b6

Please sign in to comment.