Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-1249

Type Hints in Stub Files: Convert Optional[d] to d | None

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • 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

      We applied it once based on the recommendation from an external contributor. Now we can apply throughout. Make sure all unit tests, and mypy tests, pass.

      What should the implementer watch out for? What are the risks?
      None

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

              Created:
              Updated: