Skip to content

Commit 79f2216

Browse files
committed
chore: fix types-html5lib and typing-ext dep for py3.8
1 parent 51d14b8 commit 79f2216

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ dependencies = [
1616
'typing_extensions ~= 4.10; python_version < "3.13"',
1717
'cssselect ~= 1.2', # inline annotation
1818
'beautifulsoup4 ~= 4.13', # inline annotation
19-
'types-html5lib ~= 1.1.11, != 1.1.11.20250516', # breaks pyright
19+
# 1.1.11.20250516 breaks pyright
20+
'types-html5lib ~= 1.1.11.20241018, != 1.1.11.20250516',
2021
]
2122
keywords = ['lxml', 'typing', 'stubs', 'annotation']
2223
authors = [
@@ -48,14 +49,16 @@ basedpyright = ['basedpyright >= 1.4.0']
4849
# mostly pinned for tox testing except dev group
4950
[dependency-groups]
5051
basic = [
51-
# pyright unhappy with 20250516 Incomplete change
52-
"types-html5lib == 1.1.11.20250809",
53-
"typing_extensions == 4.15.0; python_version < '3.13'",
52+
'types-html5lib == 1.1.11.20241018; python_version <= "3.8"',
53+
'types-html5lib == 1.1.11.20250809; python_version >= "3.9"',
54+
'typing_extensions == 4.13.2; python_version == "3.8"',
55+
'typing_extensions == 4.15.0; python_version >= "3.9" and python_version < "3.13"',
5456
"cssselect == 1.2.0; python_version <= '3.8'",
5557
"cssselect == 1.3.0; python_version >= '3.9'",
5658
"beautifulsoup4 == 4.13.5",
5759
]
5860
mypy = [
61+
# 1.17 breaks union syntax
5962
"mypy == 1.16.1; python_version >= '3.9'",
6063
"mypy == 1.14.0; python_version <= '3.8'",
6164
]

0 commit comments

Comments
 (0)