It adds type annotation in similar way how they are done on 'increment'. It helps mypy to analyze functions from this library.
Verification Process
[ ] I checked out specific branch from my repo and I could remove type: ignore comments in my project.
It's just comments so there shouldn't be any runtime impact.
Review checklist (to be filled by reviewers)
[ ] Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
[ ] PR should not have do-not-merge/ label attached.
[ ] If Applicable, issue must have kind/ and severity/ labels attached at least.
What does this PR do?
It adds type annotation in similar way how they are done on 'increment'. It helps mypy to analyze functions from this library.
Verification Process
type: ignore
comments in my project. It's just comments so there shouldn't be any runtime impact.Review checklist (to be filled by reviewers)
changelog/
label attached. If applicable it should have thebackward-incompatible
label attached.do-not-merge/
label attached.kind/
andseverity/
labels attached at least.