-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
add types to _option_set.py #249
Conversation
nox/_options.py
Outdated
global_config = parsed_args | ||
module = load_nox_module(global_config) | ||
manifest = discover_manifest(module, global_config) | ||
filtered_manifest = filter_manifest(manifest, global_config) | ||
if isinstance(filtered_manifest, int): # pragma: no cover |
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 this is never hit, we should just remove the branch.
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.
mypy complains that it might be an int, so it's there as a type refinement since filter_manifest
can return an int
. I can look into adding a test case to cover this line.
SG, thanks for doing this!
…On Fri, Sep 6, 2019 at 10:51 AM Chad Smith ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In nox/_options.py
<#249 (comment)>:
> global_config = parsed_args
module = load_nox_module(global_config)
manifest = discover_manifest(module, global_config)
filtered_manifest = filter_manifest(manifest, global_config)
+ if isinstance(filtered_manifest, int): # pragma: no cover
mypy complains that it might be an int, so it's there as a type refinement
since filter_manifest can return an int. I can look into adding a test
case to cover this line.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#249>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB5I47Z6LPXO7G7MPBVB3LQIKKCTANCNFSM4IUD4UHQ>
.
|
Thank you, @cs01! |
Ran
monkeytype apply nox._option_set
then added additional types as needed.