Improve typing and docs for registries.

Review Request #12990 — Created April 25, 2023 and submitted

Information

Djblets
release-3.x

Reviewers

The typing additions for registries restricted errors to plain strings,
meaning that type checkers would fail if setting the result of
gettext_lazy(...) or other promise strings.

This change fixes that up to support both variants, and to add typing
and docs for the constants.

Unit tests pass.

Verified that this solved some typing issues in registries we provide.

Summary ID
Improve typing and docs for registries.
The typing additions for registries restricted errors to plain strings, meaning that type checkers would fail if setting the result of `gettext_lazy(...)` or other promise strings. This change fixes that up to support both variants, and to add typing and docs for the constants.
d4131b9305fb61f4d87723e3751db60c3c99ab38
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.x (5d45d22)