Skip to content

Commit 88fc1a7

Browse files
committed
chore: update readme with correct function call
1 parent e958722 commit 88fc1a7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Deploy your function as per documentation.
1212

1313
```python3
1414
import asyncio
15-
from supafunc import FunctionsClient
15+
from supafunc import AsyncFunctionsClient
1616
async def run_func():
17-
fc = FunctionsClient("https://<project_ref>.functions.supabase.co", {})
17+
fc = AsyncFunctionsClient("https://<project_ref>.functions.supabase.co", {})
1818
res = await fc.invoke("payment-sheet", {"responseType": "json"})
1919

2020
if __name__ == "__main__":

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ upload_to_vcs_release = true
3636
branch = "main"
3737
changelog_components = "semantic_release.changelog.changelog_headers,semantic_release.changelog.compare_url"
3838

39+
[tool.pytest.ini_options]
40+
asyncio_mode = "auto"
41+
3942
[build-system]
4043
requires = ["poetry-core>=1.0.0"]
4144
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)