From 988694e3388a81143c714962975d41eefabb76ff Mon Sep 17 00:00:00 2001 From: Vaskar Kafle Date: Sun, 29 Nov 2026 13:50:43 +0545 Subject: [PATCH] Fix typos in stdlib comments --- Lib/annotationlib.py | 2 +- Lib/dataclasses.py | 2 +- Lib/imaplib.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/annotationlib.py b/Lib/annotationlib.py index c41df197eee7d5..fa481dc3e68ee2 100644 --- a/Lib/annotationlib.py +++ b/Lib/annotationlib.py @@ -789,7 +789,7 @@ def call_annotate_function(annotate, format, *, owner=None, _is_evaluate=False): # __getattr__ and __eq__, and return new _Stringifier objects so we can accurately # reconstruct the source. But in the dictionary that we eventually return, we # want to return objects with more user-friendly behavior, such as an __eq__ - # that returns a bool and an defined set of attributes. + # that returns a bool and a defined set of attributes. namespace = {**annotate.__builtins__, **annotate.__globals__} is_class = isinstance(owner, type) globals = _StringifierDict( diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py index 5ec91cddaa3e10..c56f74e4fc4b9d 100644 --- a/Lib/dataclasses.py +++ b/Lib/dataclasses.py @@ -788,7 +788,7 @@ def _get_type_from_annotation(annotation, cls): # ClassVar. This is a fairly obscure corner case, and the best # way to fix it would be to eval() the string "CV" with the # correct global and local namespaces. However that would involve - # a eval() penalty for every single field of every dataclass + # an eval() penalty for every single field of every dataclass # that's defined. It was judged not worth it. # String regex that string annotations for ClassVar or InitVar must match. diff --git a/Lib/imaplib.py b/Lib/imaplib.py index d9ec48cbc21959..a01add2106c0f2 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -1969,7 +1969,7 @@ def _pop(self, timeout, default=('', None)): # Historical Note: # The timeout was originally implemented using select() after # checking for the presence of already-buffered data. - # That allowed timeouts on pipe connetions like IMAP4_stream. + # That allowed timeouts on pipe connections like IMAP4_stream. # However, it seemed possible that SSL data arriving without any # IMAP data afterward could cause select() to indicate available # application data when there was none, leading to a read() call