Fix a typing import for < Python3.11.

Review Request #14351 — Created Feb. 18, 2025 and submitted — Latest diff uploaded

Information

Djblets
release-5.x

Reviewers

There's one area where we import Self from typing. This is only
available in Python3.11+, and since we still support Python 3.8-3.10 we
need to import from typing_extensions instead to avoid issues. This
change does that.

Ran unit tests. Used Djblets with Python 3.9.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Fix a typing import for < Python3.11.
There's one area where we import `Self` from `typing`. This is only available in Python3.11+, and since we still support Python 3.8-3.10 we need to import from `typing_extensions` instead to avoid issues. This change does that.
89ec1f090a29f984ca7fcc1f5b51900a630d2d11 Michelle Aubin
djblets/forms/widgets.py
Loading...