We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
generate_deprecation_message
1 parent 9e7b02c commit 294dc7bCopy full SHA for 294dc7b
src/prefect/_internal/compatibility/deprecated.py
@@ -88,7 +88,16 @@ def generate_deprecation_message(
88
if TYPE_CHECKING:
89
assert start_date is not None
90
91
- end_date = start_date + datetime.timedelta(days=182.625)
+ if sys.version_info >= (3, 13):
92
+ from whenever import PlainDateTime
93
+
94
+ end_date = (
95
+ PlainDateTime.from_py_datetime(start_date).add(months=6).py_datetime()
96
+ )
97
+ else:
98
+ import pendulum
99
100
+ end_date = pendulum.instance(start_date).add(months=6)
101
102
if when:
103
when = " when " + when
0 commit comments