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

MyPy Errors With Version 0.981

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3
    • Affects Version/s: None
    • Component/s: None
    • None

      Found 10 errors in 4 files (checked 120 source files)
      38
                  self.assertRaises(InvalidBSON, decode, data)  # type: ignore[a...
      39
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
      40
      test/test_bson.py:1035: error: Unused "type: ignore" comment
      41
                          decode,  # type: ignore[arg-type]
      42
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      43
      test/test_bson.py:1040: error: Unused "type: ignore" comment
      44
                          InvalidBSON, decode, invalid, CodecOptions()  # type: ...
      45
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
      46
      test/test_bson.py:1042: error: Unused "type: ignore" comment
      47
                      self.assertRaises(InvalidBSON, decode, invalid)  # type: i...
      48
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
      49
      test/test_bson.py:1062: error: Unused "type: ignore" comment
      50
                      decode,  # type: ignore[arg-type]
      51
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      52
      test/test_auth.py:332: error: Unused "type: ignore" comment
      53
                  self.assertRaises(OperationFailure, bad_user.admin.command, "p...
      54
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
      55
      test/test_auth.py:333: error: Unused "type: ignore" comment
      56
                  self.assertRaises(OperationFailure, bad_pwd.admin.command, "pi...
      57
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
      58
      test/test_change_stream.py:1085: error: Unused "type: ignore" comment
      59
                      client_context.client.admin.command,  # type: ignore[arg-t...
      60
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      61
      test/test_database.py:608: error: Unused "type: ignore" comment
      62
                      self.assertRaises(ExecutionTimeout, db.command, "count", "...
      63
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
      64
      test/test_database.py:614: error: Unused "type: ignore" comment
      65
                          db.command,  # type: ignore[arg-type]
      66
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

            Assignee:
            julius.park@mongodb.com Julius Park (Inactive)
            Reporter:
            julius.park@mongodb.com Julius Park (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: