Update TypedProperty usage to benefit from type hints.
Review Request #13063 — Created May 24, 2023 and submitted
Djblets received support for type hints for
TypedProperty
. While
verbose, this allows us to ensure that the right values are going into
and coming out of these properties.This updates all usage to incorporate typing, and adds typing
information for a few additional fields in some of the affected classes.An argument could be made for switching away from
TypedProperty
in
time. However, it's still useful for ensuring strict types in key areas
like diff parsing and SCM results.
Unit tests pass.
Checked that pyright and mypy were happy.
- Change Summary:
-
- Added internal type aliases for the various
TypedProperty
generics. - Moved this to
release-6.x
.
- Added internal type aliases for the various
- Commits:
-
Summary ID 3957cf4871f978016584fd28a7ae94229f2d48ca 305c77dff7f1e91ab0f21fdfb347d2e835100e6b - Branch:
-
release-5.0.xrelease-6.x
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.