Skip to content

Commit

Permalink
Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Oct 11, 2024
1 parent 889377b commit 71b55c3
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
ObjectSchema,
PreviewObjectRequest,
MetadataSchema,
GetMetadataRequest
GetMetadataRequest,
)
from .positron_comm import CommMessage, JsonRpcErrorCode, PositronComm
from .third_party import pd_, sqlalchemy_
Expand Down Expand Up @@ -461,7 +461,7 @@ def _handle_msg(
self.handle_preview_object_request(connection, request)
result = None
elif isinstance(request, GetMetadataRequest):
result = self.handle_get_metadata_request(connection, request) # type: ignore
result = self.handle_get_metadata_request(connection, request) # type: ignore
else:
raise NotImplementedError(f"Unhandled request: {request}")

Expand Down Expand Up @@ -513,8 +513,10 @@ def handle_preview_object_request(
title = request.params.path[-1].name
self._kernel.data_explorer_service.register_table(res, title)

def handle_get_metadata_request(self, conn: Connection, request: GetMetadataRequest) -> MetadataSchema :
res = conn.get_metadata()
def handle_get_metadata_request(
self, conn: Connection, request: GetMetadataRequest
) -> MetadataSchema:
res = conn.get_metadata()
return res


Expand Down

0 comments on commit 71b55c3

Please sign in to comment.