Skip to content

Commit fd2cc21

Browse files
committed
chore: update dev dependencies
1 parent fc0e183 commit fd2cc21

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ adheres to [Semantic Versioning](https://semver.org/).
1717

1818
- Fix test xz files generation for xz-utils 5.5.1+
1919
- Freeze dev dependencies versions
20+
- Update dev dependencies
2021
- Update GitHub actions dependencies
2122
- Add tests for PyPy 3.10 and 3.11
2223
- Improve tox & CI pipelines

dev-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ build==1.3.0
88
ruff==0.13.1
99

1010
# typing
11-
mypy==1.0.1
11+
mypy==1.18.2
1212

1313
# tests
14-
pytest==7.2.1
15-
pytest-cov==4.0.0
14+
pytest==8.4.2
15+
pytest-cov==7.0.0

mypy.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ warn_no_return = True
3434
warn_return_any = True
3535
warn_unreachable = True
3636

37-
# Supressing errors
38-
show_none_errors = True
37+
# Suppressing errors
3938
ignore_errors = False
4039

4140
# Miscellaneous strictness flags

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ package_dir = =src
3232
packages = xz
3333
python_requires = >=3.9
3434
setup_requires =
35-
setuptools_scm==7.1.0
35+
setuptools_scm==9.2.0

src/xz/open.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from functools import wraps
21
from io import TextIOWrapper
32
from typing import BinaryIO, Optional, Union, cast, overload
43

@@ -54,16 +53,18 @@ def __init__(
5453
def mode(self) -> str:
5554
return f"{self.xz_file.mode}t"
5655

57-
@wraps(XZFile.change_stream)
5856
def change_stream(self) -> None:
5957
self.flush()
6058
self.xz_file.change_stream()
6159

62-
@wraps(XZFile.change_block)
60+
change_stream.__doc__ = XZFile.change_stream.__doc__
61+
6362
def change_block(self) -> None:
6463
self.flush()
6564
self.xz_file.change_block()
6665

66+
change_block.__doc__ = XZFile.change_block.__doc__
67+
6768

6869
@overload
6970
def xz_open(

tox.ini

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ envlist =
99
package = wheel
1010
wheel_build_env = .pkg # reuse same wheel across envs
1111
deps =
12-
pytest==7.2.1
13-
pytest-cov==4.0.0
12+
pytest==8.4.2
13+
pytest-cov==7.0.0
1414
passenv = PY_COLORS
1515
setenv =
1616
COVERAGE_FILE = {toxworkdir}/{envname}/.coverage
@@ -27,10 +27,9 @@ commands =
2727
python -m build
2828

2929
[testenv:generate-integration-files]
30-
basepython = python3.11
3130
deps =
32-
pytest==7.2.1
33-
pytest-cov==4.0.0
31+
pytest==8.4.2
32+
pytest-cov==7.0.0
3433
passenv = PY_COLORS
3534
setenv =
3635
PYTEST_ADDOPTS = --no-cov
@@ -45,10 +44,9 @@ commands =
4544
ruff format --check src tests
4645

4746
[testenv:type]
48-
basepython = python3.11
4947
deps =
50-
mypy==1.0.1
51-
pytest==7.2.1 # for typing
48+
mypy==1.18.2
49+
pytest==8.4.2 # for typing
5250
commands =
5351
mypy
5452
mypy --namespace-packages --explicit-package-bases tests

0 commit comments

Comments
 (0)