@@ -78,8 +78,7 @@ def _check_async_ops(self) -> AsynchronousOperationsWindowNegotiation | None:
7878 default values for the number of operations invoked/performed
7979 (1, 1).
8080 """
81- # pylint: disable=broad-except
82- setattr (self .assoc , "abort" , self .assoc ._abort_nonblocking )
81+ setattr (self .assoc , "abort" , self .assoc ._abort_nonblocking ) # noqa: B010
8382
8483 try :
8584 # Response is always ignored as async ops is not supported
@@ -113,8 +112,7 @@ def _check_sop_class_common_extended(
113112 The {SOP Class UID : SOPClassCommonExtendedNegotiation} items for
114113 the accepted SOP Class Common Extended negotiation items.
115114 """
116- # pylint: disable=broad-except
117- setattr (self .assoc , "abort" , self .assoc ._abort_nonblocking )
115+ setattr (self .assoc , "abort" , self .assoc ._abort_nonblocking ) # noqa: B010
118116
119117 try :
120118 rsp = evt .trigger (
@@ -155,8 +153,7 @@ def _check_sop_class_extended(self) -> list[SOPClassExtendedNegotiation]:
155153 list of pdu_primitives.SOPClassExtendedNegotiation
156154 The SOP Class Extended Negotiation items to be sent in response
157155 """
158- # pylint: disable=broad-except
159- setattr (self .assoc , "abort" , self .assoc ._abort_nonblocking )
156+ setattr (self .assoc , "abort" , self .assoc ._abort_nonblocking ) # noqa: B010
160157
161158 try :
162159 user_response = evt .trigger (
@@ -207,8 +204,7 @@ def _check_user_identity(self) -> tuple[bool, UserIdentityNegotiation | None]:
207204 The negotiation response, if a positive response is requested,
208205 otherwise None.
209206 """
210- # pylint: disable=broad-except
211- setattr (self .assoc , "abort" , self .assoc ._abort_nonblocking )
207+ setattr (self .assoc , "abort" , self .assoc ._abort_nonblocking ) # noqa: B010
212208
213209 # The UserIdentityNegotiation (request) item
214210 req = self .requestor .user_identity
@@ -361,9 +357,7 @@ def _negotiate_as_acceptor(self) -> None:
361357
362358 # SOP Class Common Extended Negotiation items
363359 # Note: No response items are allowed
364- # pylint: disable=protected-access
365360 self .acceptor ._common_ext = self ._check_sop_class_common_extended ()
366- # pylint: enable=protected-access
367361
368362 # Asynchronous Operations Window Negotiation items
369363 if self .requestor .asynchronous_operations != (1 , 1 ):
@@ -382,7 +376,6 @@ def _negotiate_as_acceptor(self) -> None:
382376 reject_assoc_rsd = (0x02 , 0x03 , 0x02 )
383377
384378 if reject_assoc_rsd :
385- # pylint: disable=no-value-for-parameter
386379 LOGGER .info ("Rejecting Association" )
387380 self .send_reject (* reject_assoc_rsd )
388381 evt .trigger (self .assoc , evt .EVT_REJECTED , {})
@@ -410,13 +403,11 @@ def _negotiate_as_acceptor(self) -> None:
410403 rq_roles ,
411404 )
412405
413- # pylint: disable=protected-access
414406 # Accepted contexts are stored as {context ID : context}
415407 self .assoc ._accepted_cx = {
416408 cast (int , cx .context_id ): cx for cx in result if cx .result == 0x00
417409 }
418410 self .assoc ._rejected_cx = [cx for cx in result if cx .result != 0x00 ]
419- # pylint: enable=protected-access
420411
421412 # Add any SCP/SCU Role Selection Negotiation response items
422413 for role_item in ac_roles :
@@ -498,7 +489,6 @@ def _negotiate_as_requestor(self) -> None:
498489 ac_roles ,
499490 )
500491
501- # pylint: disable=protected-access
502492 # Accepted contexts are stored as {context ID : context}
503493 self .assoc ._accepted_cx = {
504494 cast (int , cx .context_id ): cx
@@ -508,7 +498,6 @@ def _negotiate_as_requestor(self) -> None:
508498 self .assoc ._rejected_cx = [
509499 cx for cx in negotiated_contexts if cx .result != 0x00
510500 ]
511- # pylint: enable=protected-access
512501
513502 evt .trigger (self .assoc , evt .EVT_ACCEPTED , {})
514503
0 commit comments