This is an automated email from the ASF dual-hosted git repository. jli pushed a commit to branch 4.1 in repository https://gitbox.apache.org/repos/asf/superset.git
commit 0f82cbaffd722ddac46a0f660ebf23f1fb02a388 Author: Andreas Motl <[email protected]> AuthorDate: Mon Apr 28 20:55:36 2025 +0200 fix: Downgrade to marshmallow<4 (#33216) --- pyproject.toml | 2 ++ superset/commands/report/base.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ca6119143a..5c68e932cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,8 @@ dependencies = [ "jsonpath-ng>=1.6.1, <2", "Mako>=1.2.2", "markdown>=3.0", + # marshmallow>=4 has issues: https://github.com/apache/superset/issues/33162 + "marshmallow<4", "msgpack>=1.0.0, <1.1", "nh3>=0.2.11, <0.3", "numpy==1.23.5", diff --git a/superset/commands/report/base.py b/superset/commands/report/base.py index 199f985d0d..b5ff4e6cf2 100644 --- a/superset/commands/report/base.py +++ b/superset/commands/report/base.py @@ -118,7 +118,7 @@ class BaseReportScheduleCommand(BaseCommand): for _ in range(iterations): next_exec = next(schedule) - diff, current_exec = next_exec - current_exec, next_exec + diff, current_exec = next_exec - current_exec, next_exec # type: ignore if int(diff) < minimum_interval: raise ReportScheduleFrequencyNotAllowed( report_type=report_type, minimum_interval=minimum_interval
