We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9127774 commit c071b08Copy full SHA for c071b08
pymongo/common.py
@@ -250,9 +250,7 @@ def validate_string(option: str, value: Any) -> str:
250
"""Validates that 'value' is an instance of `str`."""
251
if isinstance(value, str):
252
return value
253
- raise TypeError(
254
- f"Wrong type for {option}, value must be an instance of str, not {type(value)}"
255
- )
+ raise TypeError(f"Wrong type for {option}, value must be an instance of str, not {type(value)}")
256
257
258
def validate_string_or_none(option: str, value: Any) -> Optional[str]:
0 commit comments