Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ jobs:
strategy:
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "pypy-3.10"
- "pypy-3.11"
- "pypy-3.12"
steps:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ For the purpose of determining breaking changes:

### :house: Internal

- End of Python 3.10 support
- Add tests for PyPy 3.12
- Update dev dependencies

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Utilities",
"Topic :: Text Processing :: Markup :: XML",
]
requires-python = ">=3.10"
requires-python = ">=3.11"
dependencies = [
"defusedxml>=0.7.1",
"typing-extensions>=4.6.0 ; python_version<'3.12'",
Expand Down Expand Up @@ -138,7 +137,7 @@ testpaths = ["docs", "tests"]

[tool.ruff]
src = ["src"]
target-version = "py310"
target-version = "py311"

[tool.ruff.lint]
select = ["ALL"]
Expand Down
8 changes: 1 addition & 7 deletions src/bigxml/handle_mgr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from collections.abc import Callable, Iterable, Iterator
import sys
from typing import TYPE_CHECKING, Any, Optional, Union, overload
from typing import TYPE_CHECKING, Any, Never, Optional, Union, overload

from bigxml.handler_creator import create_handler
from bigxml.typing import (
Expand All @@ -10,11 +9,6 @@
)
from bigxml.utils import last_item_or_none

if sys.version_info < (3, 11): # pragma: no cover
from typing_extensions import Never
else: # pragma: no cover
from typing import Never

if TYPE_CHECKING:
from bigxml.nodes import XMLElement, XMLText

Expand Down
8 changes: 1 addition & 7 deletions tests/integration/test_typing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections.abc import Iterable, Iterator
from dataclasses import dataclass
import sys
from typing import Never, assert_type

from bigxml import (
HandlerTypeHelper,
Expand All @@ -11,12 +11,6 @@
xml_handle_text,
)

if sys.version_info < (3, 11):
from typing_extensions import Never, assert_type
else:
from typing import Never, assert_type


# Note: the aim of this file is to test the typing of return-values
# for iter_from and return_from as they would be used in the wild.
# As a result, we don't try to factor code or do anything smart here.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[tox]
envlist =
py, py310, py311, py312, py313, py314, pypy3
py, py311, py312, py313, py314, pypy3
build, docs, lint, type

[testenv]
Expand Down
Loading