Skip to content

Commit

Permalink
Correcting apparent merge/rebase error.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbartel committed Mar 15, 2024
1 parent 69cbfdb commit ebae398
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ async def determine_required_access_types(self, request: ExternalRequest, user)
# FIXME: for now, just use the default type (which happens to be "everything")
return self._default_required_access_type,

if not isinstance(request, (JobControlRequest, JobInfoRequest, JobListRequest)):
async def handle_request(self, request: Union[JobControlRequest, JobInfoRequest, JobListRequest],
**kwargs) -> Union[JobControlResponse, JobInfoResponse, JobListResponse]:
if not any(isinstance(request, rt) for rt in {JobControlRequest, JobInfoRequest, JobListRequest}):
raise TypeError(f"Invalid message type {request.__class__.__name__} sent to {self.__class__.__name__}")
Expand Down

0 comments on commit ebae398

Please sign in to comment.