mirror of
https://github.com/kennethreitz/neon-api-python.git
synced 2026-06-05 22:50:18 +00:00
Update cursor parameter type in NeonResource subclasses
This commit is contained in:
@@ -1,14 +1,11 @@
|
|||||||
import os
|
import os
|
||||||
|
import typing as t
|
||||||
# from collections.abc import Sequence
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
from . import schema
|
from . import schema
|
||||||
|
|
||||||
import typing as t
|
|
||||||
|
|
||||||
|
|
||||||
__VERSION__ = "0.1.0"
|
__VERSION__ = "0.1.0"
|
||||||
|
|
||||||
@@ -132,7 +129,7 @@ class Project(NeonResource):
|
|||||||
client,
|
client,
|
||||||
*,
|
*,
|
||||||
shared: bool = False,
|
shared: bool = False,
|
||||||
cursor: int | None = None,
|
cursor: str | None = None,
|
||||||
limit: int | None = None,
|
limit: int | None = None,
|
||||||
):
|
):
|
||||||
"""Get a list of projects."""
|
"""Get a list of projects."""
|
||||||
@@ -170,7 +167,7 @@ class Branch(NeonResource):
|
|||||||
client,
|
client,
|
||||||
project_id: str,
|
project_id: str,
|
||||||
*,
|
*,
|
||||||
cursor: int | None = None,
|
cursor: str | None = None,
|
||||||
limit: int | None = None,
|
limit: int | None = None,
|
||||||
):
|
):
|
||||||
"""Get a list of projects."""
|
"""Get a list of projects."""
|
||||||
@@ -241,7 +238,7 @@ class Operation(NeonResource):
|
|||||||
client,
|
client,
|
||||||
project_id: str,
|
project_id: str,
|
||||||
*,
|
*,
|
||||||
cursor: int | None = None,
|
cursor: str | None = None,
|
||||||
limit: int | None = None,
|
limit: int | None = None,
|
||||||
):
|
):
|
||||||
"""Get a list of operations."""
|
"""Get a list of operations."""
|
||||||
|
|||||||
Reference in New Issue
Block a user