This commit is contained in:
@@ -166,7 +166,7 @@ class Author(Base):
|
||||
return author
|
||||
return None
|
||||
|
||||
def set_oauth_account(self, provider: str, provider_id: str, email: Optional[str] = None) -> None:
|
||||
def set_oauth_account(self, provider: str, provider_id: str, email: str | None = None) -> None:
|
||||
"""
|
||||
Устанавливает OAuth аккаунт для автора
|
||||
|
||||
@@ -184,7 +184,7 @@ class Author(Base):
|
||||
|
||||
self.oauth[provider] = oauth_data # type: ignore[index]
|
||||
|
||||
def get_oauth_account(self, provider: str) -> Optional[Dict[str, Any]]:
|
||||
def get_oauth_account(self, provider: str) -> Dict[str, Any] | None:
|
||||
"""
|
||||
Получает OAuth аккаунт провайдера
|
||||
|
||||
|
||||
Reference in New Issue
Block a user