From 33b91dc443c19eceb4b69a761a384f18287350e0 Mon Sep 17 00:00:00 2001 From: algonell Date: Fri, 30 Aug 2024 12:39:12 +0300 Subject: [PATCH] fix: typos (#112) --- CHANGELOG.md | 6 +++--- numerapi/base_api.py | 4 ++-- tests/test_numerapi.py | 2 +- tests/test_utils.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b399d0f..5f6e599 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -99,7 +99,7 @@ Notable changes to this project. ## [2.12.6] - 2022-11-01 - add `check_round_open` to check if there is a currently an active round -- make `check_new_round` accessiable from `SignalsAPI` +- make `check_new_round` accessible from `SignalsAPI` ## [2.12.5] - 2022-10-24 - add fncV3 to `daily_submissions_performances` @@ -120,7 +120,7 @@ Notable changes to this project. - `download_dataset`: in case the destination path contains a directory, ensure it exists ## [2.12.1] - 2022-06-20 -- bugfix, timeout for http requests was accidently set to 3 seconds. +- bugfix, timeout for http requests was accidentally set to 3 seconds. ## [2.12.0] - 2022-06-17 - make downloads more robust and prevent broken files by downloading to temporary files @@ -507,7 +507,7 @@ Notable changes to this project. - test coverage reports via codecov.io ## [0.6.3] - 2017-12-20 -- complete rewrite to adapt to Numerai's API swich to GraphQL +- complete rewrite to adapt to Numerai's API switch to GraphQL - update documentation and example - added staking via API - `stake` - added `get_staking_leaderboard` diff --git a/numerapi/base_api.py b/numerapi/base_api.py index 745336c..9303d31 100644 --- a/numerapi/base_api.py +++ b/numerapi/base_api.py @@ -1240,7 +1240,7 @@ def check_round_open(self) -> bool: arguments = {'tournament': self.tournament_id} # in some period in between rounds, "number: 0" returns Value error - # "Current round not open for submissions", because there is no active - # round. This is catched by the try / except. + # round. This is caught by the try / except. try: raw = self.raw_query(query, arguments)['data']['rounds'][0] except ValueError: @@ -1281,7 +1281,7 @@ def check_new_round(self, hours: int = 12, tournament: int = None) -> bool: arguments = {'tournament': tournament} # in some period in between rounds, "number: 0" returns Value error - # "Current round not open for submissions", because there is no active - # round. This is catched by the try / except. + # round. This is caught by the try / except. try: raw = self.raw_query(query, arguments)['data']['rounds'][0] except ValueError: diff --git a/tests/test_numerapi.py b/tests/test_numerapi.py index 8d61a63..0b744f0 100644 --- a/tests/test_numerapi.py +++ b/tests/test_numerapi.py @@ -34,7 +34,7 @@ def test_unauthorized_requests(api, fun): # while this won't work because we are not authorized, it still tells # us if the remaining code works getattr(api, fun)() - # error should warn about not beeing logged in. + # error should warn about not being logged in. assert "API keys required for this action" in str(err.value) or \ "Your session is invalid or has expired." in str(err.value) diff --git a/tests/test_utils.py b/tests/test_utils.py index 8c57a8c..ebd7c44 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -55,7 +55,7 @@ def test_post_with_err_handling(caplog): assert 'Http Error' in caplog.text caplog.clear() - # invalid resonse type + # invalid response type responses.add(responses.POST, "https://someurl2") utils.post_with_err_handling("https://someurl2", None, None) assert 'Oops' in caplog.text