validate existing type annotations#353
Conversation
traeok
left a comment
There was a problem hiding this comment.
Thanks for adding all these types! I had a question about one parameter and a concern about interpreting binary contents.
c07cc2b to
4e643a4
Compare
zFernand0
left a comment
There was a problem hiding this comment.
the overall goal makes sense to me 😋
However, there are a few things that I'm not sure that's exactly they should be done. 😋
Left some comments since I'm not able to run unit (nor integration) tests successfully in this PR 😢
4e643a4 to
9405b81
Compare
zFernand0
left a comment
There was a problem hiding this comment.
Seems like some items have not been resoled yet.
Please check them out before re-requesting review 🙏
9405b81 to
ef18862
Compare
|
Not sure if the re-request is happening automatically because of the force-push 😓 For now, I'll remove myself from the list of reviewers on this PR 🙏 |
|
@zFernand0 my apologies. haha, ive been the one re-requesting review. could you please point out the few issues you noticed cause the ones mentioned earlier has been solved |
zFernand0
left a comment
There was a problem hiding this comment.
After fixing these, please run pytest -s tests/unit/ to view any failing unit tests 😅
| from .end_response import EndResponse | ||
| from .issue_response import IssueResponse | ||
| from .send_response import SendResponse | ||
| from .start_response import StartResponse |
There was a problem hiding this comment.
| from .end_response import EndResponse | |
| from .issue_response import IssueResponse | |
| from .send_response import SendResponse | |
| from .start_response import StartResponse | |
| from .tso import EndResponse, IssueResponse, SendResponse, StartResponse |
| from .job_response import JobResponse | ||
| from .spool_response import SpoolResponse | ||
| from .status_response import StatusResponse | ||
|
|
There was a problem hiding this comment.
| from .job_response import JobResponse | |
| from .spool_response import SpoolResponse | |
| from .status_response import StatusResponse | |
| from .jobs import JobResponse, SpoolResponse, StatusResponse |
| from .console_response import ConsoleResponse | ||
| from .response import IssueCommandResponse |
There was a problem hiding this comment.
| from .console_response import ConsoleResponse | |
| from .response import IssueCommandResponse | |
| from .console import ConsoleResponse, IssueCommandResponse |
| ### Enhancements | ||
| - Split response classes into individual modules for better maintainability: | ||
| - `JobResponse` now lives in `job_response.py` | ||
| - `SpoolResponse` now lives in `spool_response.py` | ||
| - `StatusResponse` now lives in `status_response.py` | ||
| - Updated imports in relevant modules to reflect these changes. |
There was a problem hiding this comment.
These enhancements should be moved under a ## Recent Changes header at the top of the CHANGELOG.md file.
|
|
||
| ### Bug Fixes | ||
|
|
||
| - Validate existing type annotations. [#321] (https://github.com/zowe/zowe-client-python-sdk/issues/321) |
There was a problem hiding this comment.
Similar to previous comment - this bug fix should be moved under a ## Recent Changes header at the top of the CHANGELOG.md file.
There was a problem hiding this comment.
Python added a number of built-in types in 3.9 like list and dict. Since we require Python 3.9 or newer, I think we should prefer using these built-in types (lowercase) over ones imported from the typing module (uppercase).
Signed-off-by: Olamide Ojo <peterojoolamide@gmail.com>
ef18862 to
6975821
Compare
Hello @zFernand0, one major error is: |
e03211f
into
zowe:staging/353/type_annotation
|
Hey @olamidepeterojo, 👋 |
Fixes #321
How to Test
Review Checklist
I certify that I have:
Additional Comments