Skip to content

Commit

Permalink
Bump black from 23.11.0 to 24.3.0 (#920)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
dependabot[bot] and scaramallion committed Mar 21, 2024
1 parent 7b6c194 commit 7d429ed
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 26 deletions.
47 changes: 26 additions & 21 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pynetdicom/ae.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The main user class, represents a DICOM Application Entity
"""

from copy import deepcopy
from datetime import datetime
import logging
Expand Down
1 change: 1 addition & 0 deletions pynetdicom/dimse.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Implementation of the DIMSE service provider.
"""

from io import BytesIO
import logging
import queue
Expand Down
17 changes: 13 additions & 4 deletions pynetdicom/dimse_primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ class NTF(Protocol):
name: str
file: BufferedWriter

def write(self, data: bytes) -> bytes:
...
def write(self, data: bytes) -> bytes: ...

def close(self) -> None:
...
def close(self) -> None: ...


LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -475,6 +473,7 @@ class C_STORE(DIMSEPrimitive):
An optional status related field containing a text description
of the error detected. 64 characters maximum.
"""

STATUS_OPTIONAL_KEYWORDS = (
"OffendingElement",
"ErrorComment",
Expand Down Expand Up @@ -681,6 +680,7 @@ class C_FIND(DIMSEPrimitive):
An optional status related field containing a text
description of the error detected. 64 characters maximum.
"""

STATUS_OPTIONAL_KEYWORDS = (
"OffendingElement",
"ErrorComment",
Expand Down Expand Up @@ -806,6 +806,7 @@ class C_GET(DIMSEPrimitive):
An optional status related field containing a text
description of the error detected. 64 characters maximum.
"""

STATUS_OPTIONAL_KEYWORDS = (
"ErrorComment",
"OffendingElement",
Expand Down Expand Up @@ -991,6 +992,7 @@ class C_MOVE(DIMSEPrimitive):
An optional status related field containing a text
description of the error detected. 64 characters maximum.
"""

STATUS_OPTIONAL_KEYWORDS = (
"ErrorComment",
"OffendingElement",
Expand Down Expand Up @@ -1185,6 +1187,7 @@ class C_ECHO(DIMSEPrimitive):
An optional status related field containing a text description
of the error detected. 64 characters maximum.
"""

STATUS_OPTIONAL_KEYWORDS = ("ErrorComment",)
REQUEST_KEYWORDS = ("MessageID", "AffectedSOPClassUID")

Expand Down Expand Up @@ -1315,6 +1318,7 @@ class N_EVENT_REPORT(DIMSEPrimitive):
Status : int
The error or success notification of the operation.
"""

# Optional status element keywords other than 'Status'
STATUS_OPTIONAL_KEYWORDS = (
"AffectedSOPClassUID",
Expand Down Expand Up @@ -1463,6 +1467,7 @@ class N_GET(DIMSEPrimitive):
Status : int
The error or success notification of the operation.
"""

STATUS_OPTIONAL_KEYWORDS = (
"AttributeIdentifierList",
"ErrorComment",
Expand Down Expand Up @@ -1645,6 +1650,7 @@ class N_SET(DIMSEPrimitive):
Status : int
The error or success notification of the operation.
"""

STATUS_OPTIONAL_KEYWORDS = ("ErrorComment", "ErrorID", "AttributeIdentifierList")
REQUEST_KEYWORDS = (
"MessageID",
Expand Down Expand Up @@ -1804,6 +1810,7 @@ class N_ACTION(DIMSEPrimitive):
Status : int
The error or success notification of the operation.
"""

STATUS_OPTIONAL_KEYWORDS = ("ErrorComment", "ErrorID", "AttributeIdentifierList")
REQUEST_KEYWORDS = (
"MessageID",
Expand Down Expand Up @@ -1974,6 +1981,7 @@ class N_CREATE(DIMSEPrimitive):
The error or success notification of the operation. It shall be
one of the following values:
"""

STATUS_OPTIONAL_KEYWORDS = (
"ErrorComment",
"ErrorID",
Expand Down Expand Up @@ -2071,6 +2079,7 @@ class N_DELETE(DIMSEPrimitive):
Status : int
The error or success notification of the operation.
"""

STATUS_OPTIONAL_KEYWORDS = (
"ErrorComment",
"ErrorID",
Expand Down
1 change: 1 addition & 0 deletions pynetdicom/fsm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The DUL's finite state machine representation.
"""

import logging
import queue
from typing import TYPE_CHECKING, cast
Expand Down
1 change: 1 addition & 0 deletions pynetdicom/pdu_primitives.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Implementation of the service parameter primitives.
"""

import logging
from typing import Optional, List, Any, Union, Tuple, cast, Type

Expand Down
1 change: 1 addition & 0 deletions pynetdicom/timer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
A generic timer class suitable for use as the DICOM UL's ARTIM timer.
"""

import logging
import time
from typing import Optional
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ python = "^3.10"

# Optional dependencies
asv = { version = "^0.6", optional = true }
black = { version = "^23.1", optional = true }
black = { version = ">=23.1,<25.0", optional = true }
codespell = { version = "^2.2", optional = true }
coverage = { version = "^7.3", optional = true }
mypy = { version = "^1.7", optional = true }
Expand Down

0 comments on commit 7d429ed

Please sign in to comment.