Fix annotation issues from mypy 1.18.2 -> 1.19.0

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 4.16.0
    • Affects Version/s: None
    • Component/s: None
    • 🔵 Done
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      This mypy dependabot bump is blocked because there are failures in our typing tests.  

      Definition of done

      Fix the typing test failures and push the necessary changes to the dependabot PR. Once the typing test changes pass, the code should be good to merge.

      Pitfalls

      Looks like its expecting an attribute on an Optional[] type. This could introduce some code bloat or just the need to `cast`.

            Assignee:
            Steve Silvester
            Reporter:
            Jib Adegunloye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: