-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Minor type fix #535
Minor type fix #535
Conversation
Fix type of argument `module` in `load_module` in `dill/session.py`
This is interesting. If I remember right, I had at some point set the type hint to Does this affect type checking with some tool, e.g. |
Yes, that affects type checking with |
@victorcwai: Do you experience the same issue with Line 132 in f196e3c
and in load_module_asdict :Line 494 in f196e3c
? |
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.
Please respond to the question from the reviewer. Otherwise LGTM.
Same issue with dump_module. But no problems with load_module_asdict.
…On Sun, 7 Aug 2022, 7:08 pm Mike McKerns, ***@***.***> wrote:
@victorcwai <https://github.com/victorcwai>: Do you experience the same
issue with dump_module:
https://github.com/uqfoundation/dill/blob/f196e3c9cbbba3326064c09760f7129df7f3de4d/dill/session.py#L132
and in load_module_asdict:
https://github.com/uqfoundation/dill/blob/f196e3c9cbbba3326064c09760f7129df7f3de4d/dill/session.py#L494
?
—
Reply to this email directly, view it on GitHub
<#535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHZQIL7WUWKX2AMC2NPLCDVX7USFANCNFSM55ZK54FA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ok, makes sense. Thanks. |
Shall we merge this? :) |
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.
Please make a similar change to
Line 132 in f196e3c
module: Union[ModuleType, str] = None, |
I just went ahead and made the changes requested, then merged. |
Fix type of argument
module
inload_module
indill/session.py