refactor: clean up code by adding missing commas and improving import order
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from typing import Dict, Any
|
||||
from typing import Any
|
||||
|
||||
from .base import OAuthProvider
|
||||
|
||||
|
||||
@@ -13,7 +14,7 @@ class GitHubOAuthProvider(OAuthProvider):
|
||||
def display_name(self) -> str:
|
||||
return "GitHub"
|
||||
|
||||
def get_client_config(self) -> Dict[str, Any]:
|
||||
def get_client_config(self) -> dict[str, Any]:
|
||||
"""Return GitHub OAuth client configuration."""
|
||||
return {
|
||||
"access_token_url": "https://github.com/login/oauth/access_token",
|
||||
@@ -22,7 +23,7 @@ class GitHubOAuthProvider(OAuthProvider):
|
||||
"client_kwargs": {"scope": "user:email"},
|
||||
}
|
||||
|
||||
def get_user_info(self, token: Dict[str, Any]) -> Dict[str, Any]:
|
||||
def get_user_info(self, token: dict[str, Any]) -> dict[str, Any]:
|
||||
"""Extract user information from GitHub OAuth token response."""
|
||||
client = self.get_client()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user