Skip to content

Commit c071b08

Browse files
committed
run pre-commit
1 parent 9127774 commit c071b08

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pymongo/common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ def validate_string(option: str, value: Any) -> str:
250250
"""Validates that 'value' is an instance of `str`."""
251251
if isinstance(value, str):
252252
return value
253-
raise TypeError(
254-
f"Wrong type for {option}, value must be an instance of str, not {type(value)}"
255-
)
253+
raise TypeError(f"Wrong type for {option}, value must be an instance of str, not {type(value)}")
256254

257255

258256
def validate_string_or_none(option: str, value: Any) -> Optional[str]:

0 commit comments

Comments
 (0)