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

Support mypy --strict testing in bson package

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.6
    • Affects Version/s: None
    • Component/s: None
    • None

      This is a step toward PYTHON-3698. Most of the failures are related to generics.
      Current status:

      $ mypy --strict bson
      ...
      bson/json_util.py: note: In function "_parse_canonical_regex":
      bson/json_util.py:714: error: Missing type parameters for generic type "Regex"  [type-arg]
          def _parse_canonical_regex(doc: Any) -> Regex:
      Found 54 errors in 8 files (checked 20 source files)
      
      $ mypy --strict pymongo
      ...
      Found 181 errors in 38 files (checked 59 source files)
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: