PYTHON-6274In Code Review

Enable ruff rule PLR2004

h3. *Context* {color:#505f79}Describe the background behind the problem.{color} Ruff's [PLR2004|httphttps://docs.astral.sh/ruff/rules/too-many-branches/] linting rule forbids the use of magic numbers. Our coding standards specify not to use magic numbers. h3. *Definition of done* {color:#505f79}What must be done to consider the task complete?{color} Enable the PLR2004 linting rule and make the code changes required to pass it. h3. *Pitfalls* {color:#505f79}What should the implementer

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.