Skip to content

Commit c73be94

Browse files
committed
lint
1 parent 8d24dd9 commit c73be94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pymongo/auth_oidc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def run_command(self, sock_info, cmd):
241241
except OperationFailure as exc:
242242
self.clear()
243243
if exc.code == _REAUTHENTICATION_REQUIRED_CODE:
244-
if "jwt" in bson.decode(cmd["payload"]):
244+
if "jwt" in bson.decode(cmd["payload"]): # type:ignore[attr-defined]
245245
if self.idp_info_gen_id > self.reauth_gen_id:
246246
raise
247247
return self.authenticate(sock_info, reauthenticate=True)

pymongo/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def validate_auth_mechanism_properties(option: str, value: Any) -> Dict[str, Uni
433433
props: Dict[str, Any] = {}
434434
if not isinstance(value, str):
435435
if not isinstance(value, dict):
436-
raise ValueError("Auth mechansim properties must be given as a string or a dictionary")
436+
raise ValueError("Auth mechanism properties must be given as a string or a dictionary")
437437
for key, value in value.items():
438438
if isinstance(value, str):
439439
props[key] = value
@@ -455,7 +455,7 @@ def validate_auth_mechanism_properties(option: str, value: Any) -> Dict[str, Uni
455455
props[key] = value
456456
else:
457457
raise ValueError(
458-
"Auth mechanism properity values must be strings or callback functions"
458+
"Auth mechanism property values must be strings or callback functions"
459459
)
460460
return props
461461

0 commit comments

Comments
 (0)