Skip to content

Commit 8e49b7d

Browse files
authored
[chore] Bump Libs (#627)
1 parent 53e2ee8 commit 8e49b7d

File tree

5 files changed

+1716
-1818
lines changed

5 files changed

+1716
-1818
lines changed

fixbackend/auth/oauth_clients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Any, Dict, List, Optional, Tuple, cast
22
from httpx_oauth.clients.github import GitHubOAuth2, BASE_SCOPES, PROFILE_ENDPOINT, EMAILS_ENDPOINT
33
import httpx
4-
from httpx_oauth.errors import GetIdEmailError
4+
from httpx_oauth.exceptions import GetIdEmailError
55

66

77
class GithubOauthClient(GitHubOAuth2):

fixbackend/cloud_accounts/azure_subscription_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from fixcloudutils.util import utc
2828
from azure.core.credentials_async import AsyncTokenCredential
2929

30-
from msgraph import GraphServiceClient
30+
from msgraph import GraphServiceClient # type: ignore
3131
from msgraph.generated.models.application import Application
3232
from msgraph.generated.models.password_credential import PasswordCredential
3333
from msgraph.generated.applications.item.add_password.add_password_post_request_body import AddPasswordPostRequestBody
@@ -238,10 +238,10 @@ async def create_role_assignment(
238238
if service_principal is None:
239239
log.error("Failed to create app registration: service_principal is None")
240240
return None
241-
service_principal_id = service_principal.id
242-
if service_principal_id is None:
243-
log.error("Failed to create app registration: service_principal_id is None")
241+
if service_principal.id is None:
242+
log.error("Failed to create app registration: service_principal.id is None")
244243
return None
244+
service_principal_id = service_principal.id
245245
log.info("created service principal")
246246

247247
# list all subscriptions

fixbackend/cloud_accounts/gcp_service_account_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def blocking_call() -> List[Dict[str, Any]]:
6767
service_account_json = json.loads(service_account_key)
6868
SCOPES = ["https://www.googleapis.com/auth/cloud-platform"]
6969

70-
credentials = service_account.Credentials.from_service_account_info(service_account_json, scopes=SCOPES)
70+
credentials = service_account.Credentials.from_service_account_info(service_account_json, scopes=SCOPES) # type: ignore # noqa
7171

7272
service = build("cloudresourcemanager", "v1", credentials=credentials)
7373

fixbackend/streaming_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def stream_response(self, send: Send) -> None:
8484
if self.additional_headers:
8585
self.init_headers(self.additional_headers)
8686
await send({"type": "http.response.start", "status": self.status_code, "headers": self.raw_headers})
87-
if not isinstance(chunk, bytes):
87+
if not isinstance(chunk, (bytes, memoryview)): # see super for details
8888
chunk = chunk.encode(self.charset)
8989
await send({"type": "http.response.body", "body": chunk, "more_body": True})
9090
if first:

0 commit comments

Comments
 (0)