making get_brawlers (issue #60)#61
Conversation
major changes: 1) all py files were refactored in pep8 style 2) splitting BaseBox into BaseBox and BaseBoxList for convenience (with the corresponding estates of both the models themselves and the models inheriting these models) 3) added: - get_brawlers function - model Brawlers - BRAWLERS_URL in API - nothing function to replace lambda expressions in typecasted 4) changed async.py and sync.py (now they are completely identical, in terms of meaning)
This reverts commit 17e7066.
major changes: 1) all py files were refactored in pep8 style (except for 97 lines in utils.py) 2) splitting BaseBox into BaseBox and BaseBoxList for convenience (with the corresponding estates of both the models themselves and the models inheriting these models) 3) added: - get_brawlers function - model Brawlers - BRAWLERS_URL in API - nothing function to replace lambda expressions in typecasted 4) changed async.py and sync.py (now they are completely identical, in terms of meaning) .. add some of my files to gitignore
|
Please revert everything and readd only the tests for
|
|
I corrected everything, but you should know that pep8 standards did not come from the air! |
fourjr
left a comment
There was a problem hiding this comment.
some of my feedback regarding code clarity
| @@ -1,3 +1,5 @@ | |||
| some.py | |||
There was a problem hiding this comment.
extra files should not be added to the .gitignore
There was a problem hiding this comment.
nothing bad here, I just need to ignore some files. it does not spoil, you can remove this change
There was a problem hiding this comment.
If you need another file, move it into another directory - do not add unnecessary stuff to the project's .gitignore file
| ### Changed | ||
| - splitting `BaseBox` into `BaseBox` and `BaseBoxList` for convenience | ||
| ### Fixed | ||
| - tox for py38 works (not completely sure) |
There was a problem hiding this comment.
tox should be tested first...
There was a problem hiding this comment.
I do not often create tox files (so I'm not sure), but it works fine for me
There was a problem hiding this comment.
here too that to the bottom post
|
|
||
| # do nothing | ||
| def nothing(value): | ||
| return value |
There was a problem hiding this comment.
i dont think its necessary to create a function here, the lambda works just fine and is cleaner
| converter = param.annotation | ||
| if converter is inspect._empty: | ||
| converter = lambda a: a # do nothing | ||
| converter = nothing |
There was a problem hiding this comment.
i dont think its necessary to create a function here, the lambda works just fine and is cleaner
There was a problem hiding this comment.
lambda expression is created every time, and the function is defined, I think that it is worth avoiding lambda expressions, there is no problem to remove it here
There was a problem hiding this comment.
lambda expression can result in unexpected performance issues
There was a problem hiding this comment.
so I would recommend you leave this part alone
|
Transferred to PR #62 |
Changes Description
(except for 97 lines in utils.py)
(with the corresponding estates of both the models themselves and the models inheriting these models)
7.5) add some.py to gitignore
Checklist