From: Fangyi Zhou Date: Sun, 31 Aug 2025 15:50:23 +0000 (+0100) Subject: gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296) X-Git-Tag: v3.15.0a1~560 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=552cf86b83e8aafebcfe9abbc77101bdbfda14c8;p=thirdparty%2FPython%2Fcpython.git gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296) "an str" -> "a str" --- diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index f6c3e473f1c3..9d5a9ac8b718 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}'