PYTHON-6258ClosedDone

Enable ruff TC001 rule

h3. *Context* {color:#505f79}Describe the background behind the problem.{color} Ruff's [TC001|https://docs.astral.sh/ruff/rules/typing-only-first-party-import/] rule requires that first-party imports used only for type-checking are imported within a {{if TYPE_CHECKING}} block for improved runtime performance. h3. *Definition of done* {color:#505f79}What must be done to consider the task complete?{color} Enable the TC001 rule and make the required code changes for it to pass. h3. *Pitfa

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Infrastructure
Labels
Tags and classification

No labels assigned.