Skip to content

Commit 988694e

Browse files
author
Vaskar Kafle
committed
Fix typos in stdlib comments
1 parent 31ed3ef commit 988694e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Lib/annotationlib.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def call_annotate_function(annotate, format, *, owner=None, _is_evaluate=False):
789789
# __getattr__ and __eq__, and return new _Stringifier objects so we can accurately
790790
# reconstruct the source. But in the dictionary that we eventually return, we
791791
# want to return objects with more user-friendly behavior, such as an __eq__
792-
# that returns a bool and an defined set of attributes.
792+
# that returns a bool and a defined set of attributes.
793793
namespace = {**annotate.__builtins__, **annotate.__globals__}
794794
is_class = isinstance(owner, type)
795795
globals = _StringifierDict(

‎Lib/dataclasses.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ def _get_type_from_annotation(annotation, cls):
788788
# ClassVar. This is a fairly obscure corner case, and the best
789789
# way to fix it would be to eval() the string "CV" with the
790790
# correct global and local namespaces. However that would involve
791-
# a eval() penalty for every single field of every dataclass
791+
# an eval() penalty for every single field of every dataclass
792792
# that's defined. It was judged not worth it.
793793

794794
# String regex that string annotations for ClassVar or InitVar must match.

‎Lib/imaplib.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ def _pop(self, timeout, default=('', None)):
19691969
# Historical Note:
19701970
# The timeout was originally implemented using select() after
19711971
# checking for the presence of already-buffered data.
1972-
# That allowed timeouts on pipe connetions like IMAP4_stream.
1972+
# That allowed timeouts on pipe connections like IMAP4_stream.
19731973
# However, it seemed possible that SSL data arriving without any
19741974
# IMAP data afterward could cause select() to indicate available
19751975
# application data when there was none, leading to a read() call

0 commit comments

Comments
 (0)