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

XMLWordPrintableJSON

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

      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
            Reporter:
            Casey Clements
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: