Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI type hinting and minor refactor #839

Conversation

thealpinegoat
Copy link

Problem: The type hinting for jenkinsapi.command_line is a little lacking. In addition, the use of asserts in non-test code is undesirable.

Solution: Introduce type hinting following PEP-484 for straddling code and refactor asserts to use proper conditionals instead.

@thealpinegoat thealpinegoat force-pushed the dev_georgeh_type_hinting_python_2_3_jenkinsapi_command_line branch 4 times, most recently from f653345 to 9f41cd3 Compare March 29, 2023 23:34
Problem: The type hinting for jenkinsapi.command_line is a little
lacking. In addition, the use of asserts in non-test code is
undesirable.

Solution: Introduce type hinting following PEP-484 for straddling code
and refactor asserts to use proper conditionals instead.
@thealpinegoat thealpinegoat force-pushed the dev_georgeh_type_hinting_python_2_3_jenkinsapi_command_line branch from 9f41cd3 to a3f9694 Compare March 29, 2023 23:38
@lechat
Copy link
Collaborator

lechat commented Mar 30, 2023

Thanks!

@lechat lechat closed this Mar 30, 2023
@thealpinegoat thealpinegoat deleted the dev_georgeh_type_hinting_python_2_3_jenkinsapi_command_line branch April 2, 2023 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants