Skip to content

Commit bcd7719

Browse files
authored
Merge pull request #123 from jamesobutler/python-3.14-testing
ENH: Specify explicit support for Python 3.14
2 parents e1a8957 + f695f5f commit bcd7719

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.github/workflows/run_unit_tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
"3.10",
2020
"3.11",
2121
"3.12",
22-
"3.13"
22+
"3.13",
23+
"3.14"
2324
]
2425

2526
steps:

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.11",
2727
"Programming Language :: Python :: 3.12",
2828
"Programming Language :: Python :: 3.13",
29+
"Programming Language :: Python :: 3.14",
2930
]
3031
dependencies = [
3132
"numpy>=1.19",
@@ -41,10 +42,10 @@ gcp = ["dataclasses>=0.8; python_version=='3.6'", "google-auth>=1.6"]
4142

4243
[dependency-groups]
4344
test = [
44-
"mypy==0.982",
45+
"mypy==1.18.2",
4546
"flake8==6.1.0",
46-
"pytest==7.1.3",
47-
"pytest-cov==3.0.0",
47+
"pytest==9.0.1",
48+
"pytest-cov==7.0.0",
4849
"pytest-flake8==1.1.3",
4950
"pytest-localserver==0.5.0",
5051
"types-requests==2.27.14",

src/dicomweb_client/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ class _QueryResourceType(Enum):
461461

462462

463463
def _build_acceptable_media_type_lut(
464-
media_types: Tuple[Union[str, Tuple[str, str]], ...],
464+
media_types: Tuple[Union[str, Tuple[str, ...]], ...],
465465
supported_media_type_lut: Mapping[str, Iterable[str]]
466466
) -> Mapping[str, Iterable[str]]:
467467
# If no acceptable transfer syntax has been specified, then we just return

src/dicomweb_client/log.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import logging
44

55

6-
def _filter_header_parsing_error(record: logging.LogRecord) -> int:
6+
def _filter_header_parsing_error(record: logging.LogRecord) -> bool:
77
"""Filters warnings of ``urllib3.exceptions.HeaderParsingError``.
88
99
Parameters
@@ -13,13 +13,13 @@ def _filter_header_parsing_error(record: logging.LogRecord) -> int:
1313
1414
Returns
1515
-------
16-
int
17-
zero if the record should be filtered, non-zero otherwise
16+
bool
17+
False if the record should be filtered, True otherwise
1818
1919
"""
2020
if 'Failed to parse headers' in record.getMessage():
21-
return 0
22-
return 1
21+
return False
22+
return True
2323

2424

2525
def _map_logging_verbosity(verbosity: int) -> int:

0 commit comments

Comments
 (0)