Without the type annotation, mypy errors with 'Cannot call function of unknown type'
when called from a type-checked function.
Details
Details
- Reviewers
olasd - Group Reviewers
Reviewers - Commits
- rDSTO8b65e42f5adb: backfill: Make integer_ranges() work on str args + add typing to…
Diff Detail
Diff Detail
- Repository
- rDSTO Storage manager
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Build was aborted
Patch application report for D7354 (id=26574)
Rebasing onto 77f7e6d10a...
Current branch diff-target is up to date.
Changes applied before test
commit 7c45c715094ecf37fde00795bd1990df5c673441 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Mar 15 16:56:40 2022 +0100 backfill: Make integer_ranges() work on str args + add typing to RANGE_GENERATORS Without the type annotation, mypy errors with 'Cannot call function of unknown type' when called from a type-checked function.
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1573/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1573/console
Comment Actions
Build was aborted
Patch application report for D7354 (id=26575)
Rebasing onto 77f7e6d10a...
Current branch diff-target is up to date.
Changes applied before test
commit de44c76abb0028adc630b67b2aee026cd5b34fbc Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Mar 15 16:56:40 2022 +0100 backfill: Make integer_ranges() work on str args + add typing to RANGE_GENERATORS Without the type annotation, mypy errors with 'Cannot call function of unknown type' when called from a type-checked function.
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1574/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1574/console
Comment Actions
Build is green
Patch application report for D7354 (id=26576)
Rebasing onto 77f7e6d10a...
Current branch diff-target is up to date.
Changes applied before test
commit 8b65e42f5adbeef9fd1ef8e28a908c82ee77204f Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Mar 15 16:56:40 2022 +0100 backfill: Make integer_ranges() work on str args + add typing to RANGE_GENERATORS Without the type annotation, mypy errors with 'Cannot call function of unknown type' when called from a type-checked function.
See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1575/ for more details.
Is this because some python versions don't have it, or just for OS portability?
I'm asking because we now have evidence (in T1817) that fdatasync is critical for us, in the sense that we can lose data if it's not available. So just silently ignoring the fact it's not available makes me shiver :-)
I'm tempted to suggest failing to initialize if fdatasync is not available.
Either way, we should log an error message if it's not available.