diff --git a/CHANGELOG.md b/CHANGELOG.md index c676675..bcfb018 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,10 @@ For the purpose of determining breaking changes: - Add support for buffer protocol ([PEP 688](https://peps.python.org/pep-0688/)) +### :house: Internal + +- Upgrade dev dependencies + ## [1.0.1] - 2024-04-27 [1.0.1]: https://github.com/rogdham/bigxml/compare/v1.0.0...v1.0.1 diff --git a/dev-requirements.txt b/dev-requirements.txt index cb76f0a..8e11a56 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -2,17 +2,17 @@ -e . # build -build==1.2.1 +build==1.2.2 # docs -mkdocs==1.6.0 +mkdocs==1.6.1 # lint -ruff==0.4.2 +ruff==0.6.9 # tests -pytest==8.1.1 +pytest==8.3.3 pytest-cov==5.0.0 # type -mypy==1.10.0 +mypy==1.11.2 diff --git a/src/bigxml/parser.py b/src/bigxml/parser.py index 7c1c636..0a8d909 100644 --- a/src/bigxml/parser.py +++ b/src/bigxml/parser.py @@ -25,7 +25,7 @@ def _parse( raise RuntimeError("Tried to access a node out of order") depth = 0 - last_child: Optional["Element"] = None + last_child: Optional[Element] = None def handle_text() -> Iterator[T]: if last_child is not None: diff --git a/tests/unit/test_handler_creator.py b/tests/unit/test_handler_creator.py index 0bc6be9..a0ce7d6 100644 --- a/tests/unit/test_handler_creator.py +++ b/tests/unit/test_handler_creator.py @@ -80,7 +80,7 @@ def handle( def cases( *args: Tuple[Tuple[str, ...], Optional[str], Optional[str]], ) -> pytest.MarkDecorator: - tests: List["ParameterSet"] = [] + tests: List[ParameterSet] = [] for node_path, expected_text, expected_node_name in args: nodes = create_nodes(*node_path) if expected_node_name is None: @@ -92,7 +92,7 @@ def cases( def test_create_handler( root: Union[XMLElement, XMLText], expected_text: Optional[str], - expected_node: Optional[str], + expected_node: Union[XMLElement, XMLText, None], *handles: object, ) -> None: handler = create_handler(*handles) diff --git a/tox.ini b/tox.ini index d88d0eb..f4eb538 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ envlist = package = wheel wheel_build_env = .pkg # reuse same wheel across envs deps = - pytest==8.1.2 + pytest==8.3.3 pytest-cov==5.0.0 passenv = PY_COLORS setenv = @@ -22,28 +22,28 @@ commands = [testenv:build] skip_install = true deps = - build==1.2.1 + build==1.2.2 commands = python -m build [testenv:docs] skip_install = true deps = - mkdocs==1.6.0 + mkdocs==1.6.1 commands = mkdocs {posargs:build} -f docs/mkdocs.yml [testenv:lint] deps = - ruff==0.4.2 + ruff==0.6.9 commands = ruff check src docs tests ruff format --check src docs tests [testenv:type] deps = - mypy==1.10.0 - pytest==8.1.2 # for typing + mypy==1.11.2 + pytest==8.3.3 # for typing commands = mypy mypy --explicit-package-bases docs tests