chore: bump ruff (#1085)
This commit is contained in:
parent
6f43d1f170
commit
9301924f44
2 changed files with 56 additions and 57 deletions
|
|
@ -87,7 +87,7 @@ class OAuthClientMetadata(BaseModel):
|
|||
elif len(self.redirect_uris) == 1:
|
||||
return self.redirect_uris[0]
|
||||
else:
|
||||
raise InvalidRedirectUriError("redirect_uri must be specified when client " "has multiple registered URIs")
|
||||
raise InvalidRedirectUriError("redirect_uri must be specified when client has multiple registered URIs")
|
||||
|
||||
|
||||
class OAuthClientInformationFull(OAuthClientMetadata):
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@ class BaseSession(
|
|||
except Exception as e:
|
||||
# For other validation errors, log and continue
|
||||
logging.warning(
|
||||
f"Failed to validate notification: {e}. " f"Message was: {message.message.root}"
|
||||
f"Failed to validate notification: {e}. Message was: {message.message.root}"
|
||||
)
|
||||
else: # Response or error
|
||||
stream = self._response_streams.pop(message.message.root.id, None)
|
||||
|
|
@ -410,7 +410,7 @@ class BaseSession(
|
|||
await stream.send(message.message.root)
|
||||
else:
|
||||
await self._handle_incoming(
|
||||
RuntimeError("Received response with an unknown " f"request ID: {message}")
|
||||
RuntimeError(f"Received response with an unknown request ID: {message}")
|
||||
)
|
||||
|
||||
except anyio.ClosedResourceError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue