Add type hints, missing docs, enums, and cleanup to djblets.features.
Review Request #12991 — Created April 27, 2023 and submitted
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
FeatureLevelis now an enum, which should be backwards-compatible
with the original
intin how this is used. That gives better type
checking than using an
FeatureRegistryhas been updated to be a typed registry.
Unit tests pass.
Tested with some code defining a new feature.