Skip to content

Commit

Permalink
fix: typos (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
algonell authored Aug 30, 2024
1 parent 2ced623 commit 33b91dc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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
Expand Down Expand Up @@ -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`
Expand Down
4 changes: 2 additions & 2 deletions numerapi/base_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_numerapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33b91dc

Please sign in to comment.