Fix a typing import for < Python3.11.

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

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.

Summary ID
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
david
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
maubin
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.x (b886f19)
Loading...