Skip to content

Commit 1924f3e

Browse files
committed
lint
1 parent c73be94 commit 1924f3e

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

pymongo/auth_oidc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import threading
1818
from dataclasses import dataclass, field
1919
from datetime import datetime, timedelta, timezone
20-
from typing import Any, Callable, Dict, List, Optional
20+
from typing import Callable, Dict, List, Optional
2121

2222
import bson
2323
from bson.binary import Binary

pymongo/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import datetime
1919
import inspect
20-
import re
2120
import warnings
2221
from collections import OrderedDict, abc
2322
from typing import (

pymongo/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def command(
790790
exhaust_allowed=exhaust_allowed,
791791
write_concern=write_concern,
792792
)
793-
except (OperationFailure, NotPrimaryError) as exc:
793+
except (OperationFailure, NotPrimaryError):
794794
raise
795795
# Catch socket.error, KeyboardInterrupt, etc. and close ourselves.
796796
except BaseException as error:

test/test_auth_spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def run_test(self):
4949
props["request_token_callback"] = lambda x, y: 1
5050
del props["REQUEST_TOKEN_CALLBACK"]
5151
if props.get("REFRESH_TOKEN_CALLBACK"):
52-
props["refresh_token_callback"] = lambda a, b: 1 # type:ignore[misc]
52+
props["refresh_token_callback"] = lambda a, b: 1
5353
del props["REFRESH_TOKEN_CALLBACK"]
5454
client = MongoClient(uri, connect=False, authmechanismproperties=props)
5555
credentials = client.options.pool_options._credentials

0 commit comments

Comments
 (0)