Update cursor parameter type in NeonResource subclasses

This commit is contained in:
2024-01-17 19:40:04 -05:00
parent f8acb30bfd
commit de3bd34731
+4 -7
View File
@@ -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."""