Skip to content

Typehinting bools #522

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

Merged
merged 1 commit into from
Jun 10, 2020
Merged

Typehinting bools #522

merged 1 commit into from
Jun 10, 2020

Conversation

crtrentz
Copy link
Contributor

@crtrentz crtrentz commented Jun 9, 2020

Co-authored-by: Benjamin Gorman [email protected]

Description

Remove (bool) from docstrings and add corresponding type hints. (part of #476)

Status

Ready

Types of changes

  • Docstrings/Documentation updated

@@ -33,11 +33,11 @@ class DataLoader(torch.utils.data.DataLoader):
num_workers (int, optional): how many subprocesses to use for data
loading. ``0`` means that the data will be loaded in the main process.
(default: ``0``)
pin_memory (bool, optional): If ``True``, the data loader will copy Tensors
pin_memory: If ``True``, the data loader will copy Tensors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this corresponding signature not updated? some compatibility issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, we just made the fix.

@crtrentz crtrentz force-pushed the typehinting-bools branch from 8aa3330 to 015040e Compare June 9, 2020 21:50
@hjmjohnson hjmjohnson mentioned this pull request Jun 10, 2020
1 task
Copy link
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
Thanks.

@wyli wyli merged commit edeac8f into Project-MONAI:master Jun 10, 2020
@hjmjohnson hjmjohnson deleted the typehinting-bools branch June 10, 2020 18:10
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.

3 participants