Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add poetry dependency * create APIResponse model * return APIResponse model in execute method * sort imports * mypy bug workaround (python/mypy#9319) * split logic, validate error existance and better type APIResponse * Implement APIError * add missing black config in pre-commit config * type APIError properties * fix: rm unused code and use returning param in update * refactor: reorder lines * chore: rebuild sync * chore: rebuild poetry.lock * fix: remove wrong parameter * chore: format * Chore: add missing return types Co-authored-by: Anand <40204976+anand2312@users.noreply.github.com> * chore: replace builtin dict by Dict to support python < 3.9 * chore: update precommit hooks * chore: apply format * update return type in execute method * use relative import * add link to mypy issue * switch super init by class init to avoid future errors * chore: apply future annotations notation to return * chore: rebuild sync * tests: Add tests for response model (#74) * initial commit * tests: add fixtures for APIResponse * tests: [WIP] Test methods that don't interact with RequestResponse * tests: replace builtin type by typing type and add type annotations * tests: add requests Response fixtures * chore: change return order to improve readability * tests: add tests for left methods Co-authored-by: Joel Lee <joel@joellee.org> Co-authored-by: Dani Reinón <dani@dribo.es> * chore: modify ValueError with ValidationError * chore: add "_" to internal methods Co-authored-by: Anand <40204976+anand2312@users.noreply.github.com> Co-authored-by: Lee Yi Jie Joel <lee.yi.jie.joel@gmail.com> Co-authored-by: Joel Lee <joel@joellee.org>
- Loading branch information
1 parent
e190621
commit 07ef4d4
Showing
10 changed files
with
554 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.