From b5f21d6ff53b6c9dd7481b752d93aeb7265ca47b Mon Sep 17 00:00:00 2001 From: codingbeast Date: Mon, 19 Sep 2022 14:57:43 +0530 Subject: [PATCH] error fixed --- README.md | 4 +++- substack/api.py | 14 +++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5408ea9..845a0d4 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,6 @@ Python versions from 3.8+. You can install python-substack using: - $ pip install python-substack \ No newline at end of file + $ pip install python-substack + $ pip uninstall python-substack + $ python3 -m build \ No newline at end of file diff --git a/substack/api.py b/substack/api.py index 764cd90..40b5952 100644 --- a/substack/api.py +++ b/substack/api.py @@ -16,11 +16,11 @@ class Api: def __init__( self, - email: str | None = None, - password: str | None = None, - base_url: str | None = None, - publication_url: str | None = None, - debug: bool = False, + email = None, + password = None, + base_url = None, + publication_url = None, + debug = False, ): """ @@ -220,8 +220,8 @@ def get_category(self, category_id: int, category_type: str, page: int): params={"page": page}) return Api._handle_response(response=response) - def get_single_category(self, category_id: int, category_type: str, page: int | None = None, - limit: int | None = None): + def get_single_category(self, category_id: int, category_type: str, page = None, + limit = None): """ Args: