Skip to content

Commit 490fa2b

Browse files
committed
fix(#240): pin typing-extensions>=2.4.0
1 parent 2f8bf4b commit 490fa2b

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# marshmallow\_dataclass change log
22

3+
## v8.5.14 (unreleased)
4+
5+
- Pin `typing-extensions>=2.4.0` to ensure support for the
6+
`field_specifiers` paramter of the `dataclass_transform` decorator.
7+
([#240])
8+
9+
[#240]: https://github.com/lovasoa/marshmallow_dataclass/issues/240
10+
311
## v8.5.13 (2023-04-20)
412

513
- Fix to allow type-checkers to properly handle fields initialized

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@
6060
install_requires=[
6161
"marshmallow>=3.13.0,<4.0",
6262
"typing-inspect>=0.8.0",
63-
# `dataclass_transform` was introduced in:
64-
# - Python 3.11 (https://www.python.org/dev/peps/pep-0681)
65-
# - typing-extensions 4.1.0
66-
"typing-extensions>=4.1.0; python_version < '3.11'",
63+
# Need `Literal`
64+
"typing-extensions>=3.7.2; python_version < '3.8'",
65+
# Need `dataclass_transform(field_specifiers)`
66+
# NB: typing-extensions>=4.2.0 conflicts with python 3.6
67+
"typing-extensions>=4.2.0; python_version<'3.11' and python_version>='3.7'",
6768
],
6869
extras_require=EXTRAS_REQUIRE,
6970
package_data={"marshmallow_dataclass": ["py.typed"]},

0 commit comments

Comments
 (0)