Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanSchell committed Sep 26, 2024
1 parent dcc1c44 commit eb6e882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/syft/src/syft/service/sync/resolve_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ def deny_and_ignore(self, reason: str) -> None:
# relative
from ..request.request import Request

assert batch.root_type == Request, "method can only be excecuted on requests" # nosec: B101
assert batch.root_type == Request, "method can only be excecuted on requests" # nosec: B101
request = batch.root.low_obj
assert request is not None # nosec: B101
assert request is not None # nosec: B101
request.deny(reason)

def click_sync(self, *args: list, **kwargs: dict) -> SyftSuccess:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from syft.service.code.user_code import ApprovalDecision
from syft.service.code.user_code import UserCodeStatus
from syft.service.job.job_stash import Job
from syft.service.request.request import Request
from syft.service.request.request import RequestStatus
from syft.service.response import SyftSuccess
from syft.service.sync.resolve_widget import ResolveWidget
Expand Down

0 comments on commit eb6e882

Please sign in to comment.