Add type hints, missing docs, enums, and cleanup to djblets.features.
Review Request #12991 — Created April 27, 2023 and submitted — Latest diff uploaded
This adds missing type hints to
djblets.features
, and in the process
updates some of the code to add missing docstrings and to fix types in
some docstrings.
FeatureLevel
is now an enum, which should be backwards-compatible
with the originalint
in how this is used. That gives better type
checking than using anint
.
FeatureRegistry
has been updated to be a typed registry.
Unit tests pass.
Tested with some code defining a new feature.