Skip to content

Commit e2bb801

Browse files
MathijsdeBoerMathijs de Boer
andauthored
Match type hint with ResidualUnit and Convolution (#6538)
### Description I noticed the type hint for `dropout` in `ConvDenseBlock` did not match the ones further down the file, when `dropout` is passed on to `ResidualUnit` or `Convolution`. This pull request changes this type hint to match the downstream ones. I don't think this will cause issues with the unit tests, but they're currently running while I prepare this pull request. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [x] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. Signed-off-by: Mathijs de Boer <m.deboer-41@umcutrecht.nl> Co-authored-by: Mathijs de Boer <m.deboer-41@umcutrecht.nl>
1 parent 5174165 commit e2bb801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/networks/blocks/denseblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(
7474
adn_ordering: str = "NDA",
7575
act: tuple | str | None = Act.PRELU,
7676
norm: tuple | str | None = Norm.INSTANCE,
77-
dropout: int | None = None,
77+
dropout: tuple | str | float | None = None,
7878
bias: bool = True,
7979
):
8080
self.spatial_dims = spatial_dims

0 commit comments

Comments
 (0)