Fix a regression in extension packaging.

Review Request #13213 — Created Aug. 14, 2023 and submitted

Information

Djblets
release-4.x

Reviewers

When typing was introduced for djblets.extensions.packaging, an import
was added that triggered Django model/app machinery. This ended up
breaking, since we weren't setting up a Django environment at this
stage.

This import was only needed for typing, so it's been moved into a
TYPE_CHECKING block.

Successfully installed extension packages.

Summary ID
Fix a regression in extension packaging.
When typing was introduced for `djblets.extensions.packaging`, an import was added that triggered Django model/app machinery. This ended up breaking, since we weren't setting up a Django environment at this stage. This import was only needed for typing, so it's been moved into a `TYPE_CHECKING` block.
bf3eaadab2dd358430d8730a96f6b28a671c3e4a
maubin
  1. Ship It!
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.x (859430e)