Skip to content

Commit 1d2ae25

Browse files
authored
Fix some typos in comments (#9802)
1 parent 6ba28ae commit 1d2ae25

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

scripts/stubsabot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def get_update_pr_body(update: Update, metadata: dict[str, Any]) -> str:
581581
if update.diff_analysis is not None:
582582
body += f"\n\n{update.diff_analysis}"
583583

584-
# Loss of type due to infered [dict[Unknown, Unknown]]
584+
# Loss of type due to inferred [dict[Unknown, Unknown]]
585585
# scripts/stubsabot.py can't import tests/parse_metadata
586586
stubtest_will_run = (
587587
not metadata.get("tool", {}).get("stubtest", {}).get("skip", False) # pyright: ignore[reportUnknownMemberType]

stdlib/_typeshed/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class structseq(Generic[_T_co]):
293293
# https://github.com/python/typeshed/pull/6560#discussion_r767149830
294294
def __new__(cls: type[Self], sequence: Iterable[_T_co], dict: dict[str, Any] = ...) -> Self: ...
295295

296-
# Superset of typing.AnyStr that also inclues LiteralString
296+
# Superset of typing.AnyStr that also includes LiteralString
297297
AnyOrLiteralStr = TypeVar("AnyOrLiteralStr", str, bytes, LiteralString) # noqa: Y001
298298

299299
# Represents when str or LiteralStr is acceptable. Useful for string processing

stdlib/socketserver.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if sys.platform != "win32":
3030
]
3131

3232
_RequestType: TypeAlias = _socket | tuple[bytes, _socket]
33-
_AfUnixAddress: TypeAlias = str | ReadableBuffer # adddress acceptable for an AF_UNIX socket
33+
_AfUnixAddress: TypeAlias = str | ReadableBuffer # address acceptable for an AF_UNIX socket
3434
_AfInetAddress: TypeAlias = tuple[str | bytes | bytearray, int] # address acceptable for an AF_INET socket
3535

3636
# This can possibly be generic at some point:

stdlib/tkinter/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3207,7 +3207,7 @@ class OptionMenu(Menubutton):
32073207
# destroy and __getitem__ are overridden, signature does not change
32083208

32093209
# Marker to indicate that it is a valid bitmap/photo image. PIL implements compatible versions
3210-
# which don't share a class hierachy. The actual API is a __str__() which returns a valid name,
3210+
# which don't share a class hierarchy. The actual API is a __str__() which returns a valid name,
32113211
# not something that type checkers can detect.
32123212
@type_check_only
32133213
class _Image: ...

stubs/pyinstaller/PyInstaller/depend/analysis.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://pyinstaller.org/en/stable/hooks.html#the-pre-safe-import-module-psim-api-method
22

3-
# The documentation explicitely mentions that "Normally you do not need to know about the module-graph."
3+
# The documentation explicitly mentions that "Normally you do not need to know about the module-graph."
44
# However, some PyiModuleGraph typed class attributes are still documented as existing in imphookapi.
55
from _typeshed import Incomplete, StrPath, SupportsKeysAndGetItem
66
from collections.abc import Iterable

stubs/python-xlib/@tests/stubtest_allowlist.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Xlib.protocol.rq.DictWrapper.__lt__
1212
Xlib.protocol.rq.Event.__gt__
1313
Xlib.protocol.rq.Event.__lt__
1414

15-
# Can be None or str once instanciated
15+
# Can be None or str once instantiated
1616
Xlib.protocol.rq.*.structcode
17-
# Should only ever be str once instanciated
17+
# Should only ever be str once instantiated
1818
Xlib.protocol.rq.*.name
1919

2020
# Structs generate their attributes (@type_check_only)

stubs/tensorflow/@tests/stubtest_allowlist.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Some methods are dynamically patched onto to instances as they
22
# may depend on whether code is executed in graph/eager/v1/v2/etc.
33
# Tensorflow supports multiple modes of execution which changes some
4-
# of the attributes/methods/even class hierachies.
4+
# of the attributes/methods/even class hierarchies.
55
tensorflow.Tensor.__int__
66
tensorflow.Tensor.numpy
77
tensorflow.Tensor.__index__

tests/regr_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def run_testcases(
160160
if not testcasedir_already_setup:
161161
setup_testcase_dir(package, tempdir=tempdir, new_test_case_dir=new_test_case_dir, verbosity=verbosity)
162162

163-
# "--enable-error-code ignore-without-code" is purposefully ommited.
163+
# "--enable-error-code ignore-without-code" is purposefully omitted.
164164
# See https://github.com/python/typeshed/pull/8083
165165
flags = [
166166
"--python-version",

0 commit comments

Comments
 (0)