Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [ "3.11", "3.12" ]
python: [ "3.10", "3.11", "3.12", "3.13" ]
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## Using the SDK

**Prerequisites**:
- Python >= v3.11
- Python >= v3.10

To use this SDK, add the dependency to your project:

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "restate-sdk"
description = "A Python SDK for Restate"
requires-python = ">=3.11"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down
4 changes: 2 additions & 2 deletions python/restate/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ def time(self) -> RestateDurableFuture[float]:
This timestamp will be stable across retries and replays.
"""

@typing_extensions.deprecated("`run` is deprecated, use `run_typed` instead for better type safety")
@overload
@typing_extensions.deprecated("`run` is deprecated, use `run_typed` instead for better type safety")
@abc.abstractmethod
def run(self,
name: str,
Expand Down Expand Up @@ -275,8 +275,8 @@ def run(self,

"""

@typing_extensions.deprecated("`run` is deprecated, use `run_typed` instead for better type safety")
@overload
@typing_extensions.deprecated("`run` is deprecated, use `run_typed` instead for better type safety")
@abc.abstractmethod
def run(self,
name: str,
Expand Down
7 changes: 6 additions & 1 deletion python/restate/server_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@

import asyncio
from typing import (Awaitable, Callable, Dict, Iterable, List,
Tuple, Union, TypedDict, Literal, Optional, NotRequired, Any)
Tuple, Union, TypedDict, Literal, Optional, Any)
import sys
if sys.version_info >= (3, 11):
from typing import NotRequired
else:
from typing_extensions import NotRequired

class ASGIVersions(TypedDict):
"""ASGI Versions"""
Expand Down