You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add pyright strict type-check CI workflow
- New .github/workflows/typecheck.yml runs pyright in strict mode on
Python 3.10 (lowest supported) across durabletask and
durabletask-azuremanaged for PRs and pushes to main.
- Add pyrightconfig.json at repo root (strict, Python 3.10, excludes
generated protobuf/gRPC files).
- Add pyright to dev-requirements.txt.
- Clean up 1598 strict-mode type errors across the SDK while preserving
runtime behavior. Changes are purely additive type annotations,
casts, and targeted `# pyright: ignore` comments scoped to
specific rules.
- Address related typing issues:
- #93: OrchestrationContext.create_timer now returns TimerTask
(was CancellableTask).
- #94: WhenAnyTask is now generic; when_any(tasks: Sequence[Task[T]])
returns WhenAnyTask[T], so the completing child Task[T] is
statically typed.
- #92: Broad improvements to generic type-safety hints.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Modernize typing imports to use collections.abc (PEP 585)
Move Callable, Sequence, Generator, Iterable, Iterator, and AsyncIterable
imports from typing to collections.abc per PEP 585. These typing aliases
have been deprecated for runtime use since Python 3.9 in favor of the
collections.abc originals, and the project floor is Python 3.10.
No behavior change. Affected files:
- durabletask/client.py
- durabletask/task.py
- durabletask/worker.py
- durabletask/testing/in_memory_backend.py
- durabletask/internal/client_helpers.py
- durabletask/internal/grpc_interceptor.py
- durabletask/internal/grpc_resiliency.py
- durabletask/internal/history_helpers.py
- durabletask/internal/orchestration_entity_context.py
- durabletask/internal/proto_task_hub_sidecar_service_stub.py
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs(changelog): fold Unreleased into v1.5.0 with type-level breaking changes
Move the Unreleased changelog entries into the v1.5.0 sections of both the
core and azuremanaged changelogs ahead of the 1.5.0 release. Surface the
type-level breaking changes (no runtime impact for typical users) explicitly
rather than burying them, per PR review feedback, and document the when_any
copy semantics change and the EntityInstanceId.__lt__ recursion fix. Remove
the CI type-check workflow entry since CI changes are not user-facing.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Bernd Verst <beverst@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments