mirror of
https://github.com/python/cpython.git
synced 2026-02-21 06:30:52 +00:00
[3.13] gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296) (GH-138300)
gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296)
"an str" -> "a str"
(cherry picked from commit 552cf86b83)
Co-authored-by: Fangyi Zhou <me@fangyi.io>
This commit is contained in:
parent
6d2958583e
commit
aebf072a52
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