Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4202

Apply PEP 604 Recommended Typing for Optional parameters

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 4.10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers

      Context
      We are not using the modern annotation recommended in PEP 604. Ruff format even has a rule and autofix for this. https://docs.astral.sh/ruff/rules/non-pep604-annotation/

      Definition of done

      Apply ruff-formatting throughout.
      What must be done to consider the task complete?
      Make sure all unit tests, and mypy tests, pass.

      Pitfalls
      None

            Assignee:
            Unassigned Unassigned
            Reporter:
            casey.clements@mongodb.com Casey Clements
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: