Skip to content

Commit e0326eb

Browse files
⚠️ SECURITY: Patch 12 Dependabot security vulnerabilities
- Update poetry.lock: GitPython 3.1.49, cryptography 46.0.7, filelock 3.29.0, urllib3 2.6.3, requests 2.33.1 - Add `from __future__ import annotations` to workflow.py and task.py to fix Python 3.9 compatibility (PEP 604 union syntax) Resolves: Dependabot alerts #6, #7, #8, #9, #11, #13, #15, #16, #17, #18, #20, #21
1 parent 766a1a0 commit e0326eb

3 files changed

Lines changed: 65 additions & 60 deletions

File tree

dotflow/core/serializers/workflow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""Workflow serializer module"""
22

3-
# mypy: disable-error-code="misc"
3+
from __future__ import annotations
44

5+
# mypy: disable-error-code="misc"
56
from uuid import UUID
67

78
from pydantic import BaseModel, ConfigDict, Field, computed_field

dotflow/core/task.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Task module"""
22

3+
from __future__ import annotations
4+
35
import json
46
from collections.abc import Callable
57
from datetime import datetime
@@ -25,6 +27,8 @@
2527

2628
class TaskInstance:
2729
"""
30+
from __future__ import annotations
31+
2832
Import:
2933
You can import the **TaskInstance** class with:
3034
@@ -323,7 +327,7 @@ def add(
323327
callback: Callable = basic_callback,
324328
initial_context: Any = None,
325329
group_name: str = "default",
326-
) -> "TaskBuilder":
330+
) -> TaskBuilder:
327331
"""
328332
Args:
329333
step (Callable):

poetry.lock

Lines changed: 58 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)