https://github.com/python/cpython/commit/d29c38eeb9b1bb815a2fe910899231de19c4529d
commit: d29c38eeb9b1bb815a2fe910899231de19c4529d
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-09-08T18:00:06+03:00
summary:

[3.14] gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296) 
(#138299)

Co-authored-by: Fangyi Zhou <[email protected]>

files:
M Doc/howto/descriptor.rst

diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
index f6c3e473f1c36d..9d5a9ac8b718cb 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}'

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to