Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Oct 14, 2024
1 parent bb54e2b commit 32ef447
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pynetdicom/association.py
Original file line number Diff line number Diff line change
Expand Up @@ -1893,12 +1893,16 @@ def send_c_store(
)
# `dataset` might also be created from scratch
ds_encoding: tuple[bool | None, bool | None] = (
dataset.is_implicit_VR
if dataset.original_encoding[0] is None
else dataset.original_encoding[0],
dataset.is_little_endian
if dataset.original_encoding[1] is None
else dataset.original_encoding[1],
(
dataset.is_implicit_VR
if dataset.original_encoding[0] is None
else dataset.original_encoding[0]
),
(
dataset.is_little_endian
if dataset.original_encoding[1] is None
else dataset.original_encoding[1]
),
)
if None not in ds_encoding and ts_encoding != ds_encoding:
s = ("explicit VR", "implicit VR")[cast(bool, ds_encoding[0])]
Expand Down

0 comments on commit 32ef447

Please sign in to comment.