Revision c489de079174aecc8fe982b6ccafae331ee70a96 authored by Felix Schnabel on 12 December 2022, 09:27:04 UTC, committed by GitHub on 12 December 2022, 09:27:04 UTC
Fixes #5657.

### Description

Enable config to also type check untyped functions (not in tests).
- Type annotations were added
- Explicit casts were added
- Variable redefinitions with other types were refactored 
- If no other option was available (or it would be overly verbose) `#
type: ignore` was added

### 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).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [x] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4f584a9
History
File Mode Size
.github
docs
monai
tests
.clang-format -rw-r--r-- 2.5 KB
.deepsource.toml -rw-r--r-- 349 bytes
.dockerignore -rw-r--r-- 160 bytes
.gitattributes -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.8 KB
.pre-commit-config.yaml -rw-r--r-- 2.2 KB
.readthedocs.yml -rw-r--r-- 628 bytes
CHANGELOG.md -rw-r--r-- 34.7 KB
CITATION.cff -rw-r--r-- 3.8 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTING.md -rw-r--r-- 22.6 KB
Dockerfile -rw-r--r-- 2.4 KB
LICENSE -rw-r--r-- 11.1 KB
MANIFEST.in -rw-r--r-- 83 bytes
README.md -rw-r--r-- 4.1 KB
environment-dev.yml -rw-r--r-- 206 bytes
pyproject.toml -rw-r--r-- 581 bytes
requirements-dev.txt -rw-r--r-- 1.0 KB
requirements-min.txt -rw-r--r-- 118 bytes
requirements.txt -rw-r--r-- 23 bytes
runtests.sh -rwxr-xr-x 20.1 KB
setup.cfg -rw-r--r-- 5.6 KB
setup.py -rw-r--r-- 5.0 KB
versioneer.py -rw-r--r-- 79.2 KB

README.md

back to top