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