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 7bca924 commit 552cf86Copy full SHA for 552cf86
Doc/howto/descriptor.rst
@@ -420,7 +420,7 @@ Here are three practical data validation utilities:
420
421
def validate(self, value):
422
if not isinstance(value, str):
423
- raise TypeError(f'Expected {value!r} to be an str')
+ raise TypeError(f'Expected {value!r} to be a str')
424
if self.minsize is not None and len(value) < self.minsize:
425
raise ValueError(
426
f'Expected {value!r} to be no smaller than {self.minsize!r}'
0 commit comments