Skip to content

Commit b95b729

Browse files
authored
Fix typos (#6263)
Found via `codespell -q 3 -L alo,asend,ba,nams,spawnve`
1 parent 6e646f4 commit b95b729

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

stdlib/@python2/__builtin__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class type(object):
121121
def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ...
122122
def __call__(self, *args: Any, **kwds: Any) -> Any: ...
123123
def __subclasses__(self: _TT) -> List[_TT]: ...
124-
# Note: the documentation doesnt specify what the return type is, the standard
124+
# Note: the documentation doesn't specify what the return type is, the standard
125125
# implementation seems to be returning a list.
126126
def mro(self) -> List[type]: ...
127127
def __instancecheck__(self, instance: Any) -> bool: ...

stdlib/@python2/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class type(object):
121121
def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ...
122122
def __call__(self, *args: Any, **kwds: Any) -> Any: ...
123123
def __subclasses__(self: _TT) -> List[_TT]: ...
124-
# Note: the documentation doesnt specify what the return type is, the standard
124+
# Note: the documentation doesn't specify what the return type is, the standard
125125
# implementation seems to be returning a list.
126126
def mro(self) -> List[type]: ...
127127
def __instancecheck__(self, instance: Any) -> bool: ...

stdlib/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class type(object):
153153
def __new__(cls: Type[_TT], __name: str, __bases: Tuple[type, ...], __namespace: dict[str, Any], **kwds: Any) -> _TT: ...
154154
def __call__(self, *args: Any, **kwds: Any) -> Any: ...
155155
def __subclasses__(self: _TT) -> list[_TT]: ...
156-
# Note: the documentation doesnt specify what the return type is, the standard
156+
# Note: the documentation doesn't specify what the return type is, the standard
157157
# implementation seems to be returning a list.
158158
def mro(self) -> list[type]: ...
159159
def __instancecheck__(self, __instance: Any) -> bool: ...

stdlib/multiprocessing/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ _SemaphoreType = synchronize.Semaphore
5353
# multiprocessing.context.BaseContext's methods, so the two signatures should
5454
# be identical (modulo self).
5555

56-
# Sychronization primitives
56+
# Synchronization primitives
5757
_LockLike = Union[synchronize.Lock, synchronize.RLock]
5858
RawValue = context._default_context.RawValue
5959
RawArray = context._default_context.RawArray

stdlib/os/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class PathLike(Protocol[_AnyStr_co]):
315315
_FdOrAnyPath = Union[int, StrOrBytesPath]
316316

317317
class DirEntry(Generic[AnyStr]):
318-
# This is what the scandir interator yields
318+
# This is what the scandir iterator yields
319319
# The constructor is hidden
320320

321321
name: AnyStr

stdlib/tkinter/__init__.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ class Misc:
407407
pad: _ScreenUnits = ...,
408408
uniform: str = ...,
409409
weight: int = ...,
410-
) -> _GridIndexInfo | Any: ... # can be None but annoyying to check
410+
) -> _GridIndexInfo | Any: ... # can be None but annoying to check
411411
columnconfigure = grid_columnconfigure
412412
rowconfigure = grid_rowconfigure
413413
def grid_location(self, x: _ScreenUnits, y: _ScreenUnits) -> tuple[int, int]: ...
@@ -730,7 +730,7 @@ class Pack:
730730
forget = pack_forget
731731
propagate = Misc.pack_propagate
732732
# commented out to avoid mypy getting confused with multiple
733-
# inheritance and how things get overrided with different things
733+
# inheritance and how things get overridden with different things
734734
# info = pack_info
735735
# pack_propagate = Misc.pack_propagate
736736
# configure = pack_configure
@@ -774,7 +774,7 @@ class Place:
774774
place = place_configure
775775
info = place_info
776776
# commented out to avoid mypy getting confused with multiple
777-
# inheritance and how things get overrided with different things
777+
# inheritance and how things get overridden with different things
778778
# config = place_configure
779779
# configure = place_configure
780780
# forget = place_forget
@@ -816,7 +816,7 @@ class Grid:
816816
location = Misc.grid_location
817817
size = Misc.grid_size
818818
# commented out to avoid mypy getting confused with multiple
819-
# inheritance and how things get overrided with different things
819+
# inheritance and how things get overridden with different things
820820
# bbox = Misc.grid_bbox
821821
# grid_bbox = Misc.grid_bbox
822822
# forget = grid_forget
@@ -954,7 +954,7 @@ class Button(Widget):
954954
state: Literal["normal", "active", "disabled"] = ...,
955955
takefocus: _TakeFocusValue = ...,
956956
text: float | str = ...,
957-
# We allow the textvariable to be any Variable, not necessarly
957+
# We allow the textvariable to be any Variable, not necessarily
958958
# StringVar. This is useful for e.g. a button that displays the value
959959
# of an IntVar.
960960
textvariable: Variable = ...,
@@ -2960,7 +2960,7 @@ class OptionMenu(Menubutton):
29602960
command: Callable[[StringVar], Any] | None = ...,
29612961
) -> None: ...
29622962
# configure, config, cget are inherited from Menubutton
2963-
# destroy and __getitem__ are overrided, signature does not change
2963+
# destroy and __getitem__ are overridden, signature does not change
29642964

29652965
class _Image(Protocol):
29662966
tk: _tkinter.TkappType

stdlib/tkinter/ttk.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ class LabeledScale(Frame):
11221122
compound: Literal["top"] | Literal["bottom"] = ...,
11231123
**kw: Any,
11241124
) -> None: ...
1125-
# destroy is overrided, signature does not change
1125+
# destroy is overridden, signature does not change
11261126
value: Any
11271127

11281128
class OptionMenu(Menubutton):
@@ -1138,5 +1138,5 @@ class OptionMenu(Menubutton):
11381138
command: Callable[[tkinter.StringVar], Any] | None = ...,
11391139
) -> None: ...
11401140
# configure, config, cget, destroy are inherited from Menubutton
1141-
# destroy and __setitem__ are overrided, signature does not change
1141+
# destroy and __setitem__ are overridden, signature does not change
11421142
def set_menu(self, default: Any | None = ..., *values): ...

stubs/Flask/flask/testing.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from werkzeug.test import Client, EnvironBuilder as WerkzeugEnvironBuilder
66

77
# Response type for the client below.
88
# By default _R is Tuple[Iterable[Any], Text | int, werkzeug.datastructures.Headers], however
9-
# most commonly it is wrapped in a Reponse object.
9+
# most commonly it is wrapped in a Response object.
1010
_R = TypeVar("_R")
1111

1212
class FlaskClient(Client[_R]):

stubs/caldav/@tests/stubtest_allowlist.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ caldav.DAVClient.principal
44
caldav.davclient.DAVClient.calendar
55
caldav.davclient.DAVClient.principal
66

7-
# Initialized in class, but immediatly overwritten in __init__
7+
# Initialized in class, but immediately overwritten in __init__
88
caldav.DAVClient.url
99
caldav.davclient.DAVClient.url
1010
caldav.davclient.DAVResponse.headers

tests/stubtest_allowlists/py3_common.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ http.client.HTTPConnection.response_class # the actual type at runtime is abc.A
9292
imaplib.IMAP4_SSL.ssl # Dependent on SSL existence
9393
importlib.abc.FileLoader.get_filename # Wrapped with _check_name decorator which changes runtime signature
9494
importlib.abc.FileLoader.load_module # Wrapped with _check_name decorator which changes runtime signature
95-
importlib.abc.Loader.exec_module # See Lib/importlib/_abc.py. Might be defined for backwards compatability
95+
importlib.abc.Loader.exec_module # See Lib/importlib/_abc.py. Might be defined for backwards compatibility
9696
importlib.abc.MetaPathFinder.find_spec # Not defined on the actual class, but expected to exist.
9797
importlib.abc.PathEntryFinder.find_spec # Not defined on the actual class, but expected to exist.
9898
importlib.machinery.ExtensionFileLoader.get_filename # Wrapped with _check_name decorator which changes runtime signature
@@ -196,7 +196,7 @@ tkinter.Tk.eval # from __getattr__
196196
tkinter.Tk.report_callback_exception # A bit of a lie, since it's actually a method, but typing it as an attribute allows it to be assigned to
197197
tkinter.Wm.wm_iconphoto # Default value of argument can't be used without runtime error
198198
tkinter.font.Font.__getitem__ # Argument name differs (doesn't matter for __dunder__ methods)
199-
traceback.TracebackException.from_exception # explicitly expanding arguemnts going into TracebackException __init__
199+
traceback.TracebackException.from_exception # explicitly expanding arguments going into TracebackException __init__
200200
types.GetSetDescriptorType.__get__ # this function can accept no value for the type parameter.
201201
types.MemberDescriptorType.__get__ # this function can accept no value for the type parameter.
202202
types.SimpleNamespace.__init__ # class doesn't accept positional arguments but has default C signature

0 commit comments

Comments
 (0)