mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296)
"an str" -> "a str"
This commit is contained in:
parent
7bca924fdb
commit
552cf86b83
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ Here are three practical data validation utilities:
|
|||
|
||||
def validate(self, value):
|
||||
if not isinstance(value, str):
|
||||
raise TypeError(f'Expected {value!r} to be an str')
|
||||
raise TypeError(f'Expected {value!r} to be a str')
|
||||
if self.minsize is not None and len(value) < self.minsize:
|
||||
raise ValueError(
|
||||
f'Expected {value!r} to be no smaller than {self.minsize!r}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue