-
Notifications
You must be signed in to change notification settings - Fork 0
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
[bufix] Batch submit jobs needs to filter the input keyword arguments #14
Conversation
If we have arguments that are None, then we have **not** include them as keyword arguments. See: https://github.com/vemel/mypy_boto3_builder/issues/30 See: boto/botocore#2075
Codecov Report
@@ Coverage Diff @@
## master #14 +/- ##
========================================
+ Coverage 73.3% 77.3% +3.9%
========================================
Files 11 11
Lines 428 441 +13
Branches 52 45 -7
========================================
+ Hits 314 341 +27
+ Misses 94 89 -5
+ Partials 20 11 -9 |
@@ -244,17 +260,37 @@ def stream(self) -> Optional[str]: | |||
|
|||
def submit(self) -> SubmitJobResponseTypeDef: | |||
"""Submits this job.""" | |||
|
|||
# If we have arguments that are None, then we have **not** include them as keyword |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# If we have arguments that are None, then we have **not** include them as keyword | |
# If we have arguments that are None, then we have to **not** include them as keyword |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this looks much nicer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Continues to LGTM
If we have arguments that are None, then we have not include them as keyword
arguments.
See: https://github.com/vemel/mypy_boto3_builder/issues/30
See: boto/botocore#2075