From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 31 Aug 2025 15:59:22 +0000 (+0200) Subject: [3.13] gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296) (GH-138300) X-Git-Tag: v3.13.8~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aebf072a52b396e32f530dbaeab7c4155425eaef;p=thirdparty%2FPython%2Fcpython.git [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 552cf86b83e8aafebcfe9abbc77101bdbfda14c8) Co-authored-by: Fangyi Zhou --- diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 50a368b77129..ba6dd4e0505f 100644 --- a/Doc/howto/descriptor.rst +++ b/Doc/howto/descriptor.rst @@ -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}'