Skip to content

Commit 7d429ed

Browse files
Bump black from 23.11.0 to 24.3.0 (#920)
* Bump black from 23.11.0 to 24.3.0 Bumps [black](https://github.com/psf/black) from 23.11.0 to 24.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@23.11.0...24.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Blacken --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: scaramallion <[email protected]>
1 parent 7b6c194 commit 7d429ed

File tree

8 files changed

+45
-26
lines changed

8 files changed

+45
-26
lines changed

Diff for: poetry.lock

+26-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pynetdicom/ae.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The main user class, represents a DICOM Application Entity
33
"""
4+
45
from copy import deepcopy
56
from datetime import datetime
67
import logging

Diff for: pynetdicom/dimse.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Implementation of the DIMSE service provider.
33
"""
4+
45
from io import BytesIO
56
import logging
67
import queue

Diff for: pynetdicom/dimse_primitives.py

+13-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ class NTF(Protocol):
2929
name: str
3030
file: BufferedWriter
3131

32-
def write(self, data: bytes) -> bytes:
33-
...
32+
def write(self, data: bytes) -> bytes: ...
3433

35-
def close(self) -> None:
36-
...
34+
def close(self) -> None: ...
3735

3836

3937
LOGGER = logging.getLogger(__name__)
@@ -475,6 +473,7 @@ class C_STORE(DIMSEPrimitive):
475473
An optional status related field containing a text description
476474
of the error detected. 64 characters maximum.
477475
"""
476+
478477
STATUS_OPTIONAL_KEYWORDS = (
479478
"OffendingElement",
480479
"ErrorComment",
@@ -681,6 +680,7 @@ class C_FIND(DIMSEPrimitive):
681680
An optional status related field containing a text
682681
description of the error detected. 64 characters maximum.
683682
"""
683+
684684
STATUS_OPTIONAL_KEYWORDS = (
685685
"OffendingElement",
686686
"ErrorComment",
@@ -806,6 +806,7 @@ class C_GET(DIMSEPrimitive):
806806
An optional status related field containing a text
807807
description of the error detected. 64 characters maximum.
808808
"""
809+
809810
STATUS_OPTIONAL_KEYWORDS = (
810811
"ErrorComment",
811812
"OffendingElement",
@@ -991,6 +992,7 @@ class C_MOVE(DIMSEPrimitive):
991992
An optional status related field containing a text
992993
description of the error detected. 64 characters maximum.
993994
"""
995+
994996
STATUS_OPTIONAL_KEYWORDS = (
995997
"ErrorComment",
996998
"OffendingElement",
@@ -1185,6 +1187,7 @@ class C_ECHO(DIMSEPrimitive):
11851187
An optional status related field containing a text description
11861188
of the error detected. 64 characters maximum.
11871189
"""
1190+
11881191
STATUS_OPTIONAL_KEYWORDS = ("ErrorComment",)
11891192
REQUEST_KEYWORDS = ("MessageID", "AffectedSOPClassUID")
11901193

@@ -1315,6 +1318,7 @@ class N_EVENT_REPORT(DIMSEPrimitive):
13151318
Status : int
13161319
The error or success notification of the operation.
13171320
"""
1321+
13181322
# Optional status element keywords other than 'Status'
13191323
STATUS_OPTIONAL_KEYWORDS = (
13201324
"AffectedSOPClassUID",
@@ -1463,6 +1467,7 @@ class N_GET(DIMSEPrimitive):
14631467
Status : int
14641468
The error or success notification of the operation.
14651469
"""
1470+
14661471
STATUS_OPTIONAL_KEYWORDS = (
14671472
"AttributeIdentifierList",
14681473
"ErrorComment",
@@ -1645,6 +1650,7 @@ class N_SET(DIMSEPrimitive):
16451650
Status : int
16461651
The error or success notification of the operation.
16471652
"""
1653+
16481654
STATUS_OPTIONAL_KEYWORDS = ("ErrorComment", "ErrorID", "AttributeIdentifierList")
16491655
REQUEST_KEYWORDS = (
16501656
"MessageID",
@@ -1804,6 +1810,7 @@ class N_ACTION(DIMSEPrimitive):
18041810
Status : int
18051811
The error or success notification of the operation.
18061812
"""
1813+
18071814
STATUS_OPTIONAL_KEYWORDS = ("ErrorComment", "ErrorID", "AttributeIdentifierList")
18081815
REQUEST_KEYWORDS = (
18091816
"MessageID",
@@ -1974,6 +1981,7 @@ class N_CREATE(DIMSEPrimitive):
19741981
The error or success notification of the operation. It shall be
19751982
one of the following values:
19761983
"""
1984+
19771985
STATUS_OPTIONAL_KEYWORDS = (
19781986
"ErrorComment",
19791987
"ErrorID",
@@ -2071,6 +2079,7 @@ class N_DELETE(DIMSEPrimitive):
20712079
Status : int
20722080
The error or success notification of the operation.
20732081
"""
2082+
20742083
STATUS_OPTIONAL_KEYWORDS = (
20752084
"ErrorComment",
20762085
"ErrorID",

Diff for: pynetdicom/fsm.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The DUL's finite state machine representation.
33
"""
4+
45
import logging
56
import queue
67
from typing import TYPE_CHECKING, cast

Diff for: pynetdicom/pdu_primitives.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Implementation of the service parameter primitives.
33
"""
4+
45
import logging
56
from typing import Optional, List, Any, Union, Tuple, cast, Type
67

Diff for: pynetdicom/timer.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
A generic timer class suitable for use as the DICOM UL's ARTIM timer.
33
"""
4+
45
import logging
56
import time
67
from typing import Optional

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ python = "^3.10"
4949

5050
# Optional dependencies
5151
asv = { version = "^0.6", optional = true }
52-
black = { version = "^23.1", optional = true }
52+
black = { version = ">=23.1,<25.0", optional = true }
5353
codespell = { version = "^2.2", optional = true }
5454
coverage = { version = "^7.3", optional = true }
5555
mypy = { version = "^1.7", optional = true }

0 commit comments

Comments
 (0)