From 60bb426c49843a3813bfdb68c50a36a5f68e5ed2 Mon Sep 17 00:00:00 2001 From: Marco del Carmen Date: Mon, 2 May 2022 14:23:41 -0500 Subject: [PATCH] Remove str pipe in optionals --- method/resources/Account.py | 4 ++-- method/resources/Entity.py | 4 ++-- method/resources/Payment.py | 4 ++-- setup.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/method/resources/Account.py b/method/resources/Account.py index 862b5f7..d380bb3 100644 --- a/method/resources/Account.py +++ b/method/resources/Account.py @@ -149,8 +149,8 @@ class AccountTransaction(TypedDict): class AccountListOpts(TypedDict): to_date: Optional[str] from_date: Optional[str] - page: Optional[str | int] - page_limit: Optional[str | int] + page: Optional[int] + page_limit: Optional[int] page_cursor: Optional[str] status: Optional[str] type: Optional[str] diff --git a/method/resources/Entity.py b/method/resources/Entity.py index 8117b3c..f88a639 100644 --- a/method/resources/Entity.py +++ b/method/resources/Entity.py @@ -104,8 +104,8 @@ class EntityUpdateOpts(TypedDict): class EntityListOpts(TypedDict): to_date: Optional[str] from_date: Optional[str] - page: Optional[str | int] - page_limit: Optional[str | int] + page: Optional[int] + page_limit: Optional[int] page_cursor: Optional[str] status: Optional[str] type: Optional[str] diff --git a/method/resources/Payment.py b/method/resources/Payment.py index a7a2f82..6081d80 100644 --- a/method/resources/Payment.py +++ b/method/resources/Payment.py @@ -80,8 +80,8 @@ class PaymentCreateOpts(TypedDict): class PaymentListOpts(TypedDict): to_date: Optional[str] from_date: Optional[str] - page: Optional[str | int] - page_limit: Optional[str | int] + page: Optional[int] + page_limit: Optional[int] page_cursor: Optional[str] status: Optional[str] type: Optional[str] diff --git a/setup.py b/setup.py index 6496676..cf985e0 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='method-python', - version='0.0.20', + version='0.0.21', description='Python library for the Method API', author='Marco del Carmen', author_email='marco@mdelcarmen.me',