diff --git a/stdlib/@python2/__builtin__.pyi b/stdlib/@python2/__builtin__.pyi index 453a95871463..95252ef2dd66 100644 --- a/stdlib/@python2/__builtin__.pyi +++ b/stdlib/@python2/__builtin__.pyi @@ -121,7 +121,7 @@ class type(object): def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ... def __call__(self, *args: Any, **kwds: Any) -> Any: ... def __subclasses__(self: _TT) -> List[_TT]: ... - # Note: the documentation doesnt specify what the return type is, the standard + # Note: the documentation doesn't specify what the return type is, the standard # implementation seems to be returning a list. def mro(self) -> List[type]: ... def __instancecheck__(self, instance: Any) -> bool: ... diff --git a/stdlib/@python2/builtins.pyi b/stdlib/@python2/builtins.pyi index 453a95871463..95252ef2dd66 100644 --- a/stdlib/@python2/builtins.pyi +++ b/stdlib/@python2/builtins.pyi @@ -121,7 +121,7 @@ class type(object): def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ... def __call__(self, *args: Any, **kwds: Any) -> Any: ... def __subclasses__(self: _TT) -> List[_TT]: ... - # Note: the documentation doesnt specify what the return type is, the standard + # Note: the documentation doesn't specify what the return type is, the standard # implementation seems to be returning a list. def mro(self) -> List[type]: ... def __instancecheck__(self, instance: Any) -> bool: ... diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 24f69108ec98..b8307c6e8cca 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -153,7 +153,7 @@ class type(object): def __new__(cls: Type[_TT], __name: str, __bases: Tuple[type, ...], __namespace: dict[str, Any], **kwds: Any) -> _TT: ... def __call__(self, *args: Any, **kwds: Any) -> Any: ... def __subclasses__(self: _TT) -> list[_TT]: ... - # Note: the documentation doesnt specify what the return type is, the standard + # Note: the documentation doesn't specify what the return type is, the standard # implementation seems to be returning a list. def mro(self) -> list[type]: ... def __instancecheck__(self, __instance: Any) -> bool: ... diff --git a/stdlib/multiprocessing/__init__.pyi b/stdlib/multiprocessing/__init__.pyi index 53b0c983fbcf..000fed79f3e4 100644 --- a/stdlib/multiprocessing/__init__.pyi +++ b/stdlib/multiprocessing/__init__.pyi @@ -53,7 +53,7 @@ _SemaphoreType = synchronize.Semaphore # multiprocessing.context.BaseContext's methods, so the two signatures should # be identical (modulo self). -# Sychronization primitives +# Synchronization primitives _LockLike = Union[synchronize.Lock, synchronize.RLock] RawValue = context._default_context.RawValue RawArray = context._default_context.RawArray diff --git a/stdlib/os/__init__.pyi b/stdlib/os/__init__.pyi index b2bfa0d64d14..07d6098041e5 100644 --- a/stdlib/os/__init__.pyi +++ b/stdlib/os/__init__.pyi @@ -315,7 +315,7 @@ class PathLike(Protocol[_AnyStr_co]): _FdOrAnyPath = Union[int, StrOrBytesPath] class DirEntry(Generic[AnyStr]): - # This is what the scandir interator yields + # This is what the scandir iterator yields # The constructor is hidden name: AnyStr diff --git a/stdlib/tkinter/__init__.pyi b/stdlib/tkinter/__init__.pyi index f994b843c5d4..829db6c012d6 100644 --- a/stdlib/tkinter/__init__.pyi +++ b/stdlib/tkinter/__init__.pyi @@ -407,7 +407,7 @@ class Misc: pad: _ScreenUnits = ..., uniform: str = ..., weight: int = ..., - ) -> _GridIndexInfo | Any: ... # can be None but annoyying to check + ) -> _GridIndexInfo | Any: ... # can be None but annoying to check columnconfigure = grid_columnconfigure rowconfigure = grid_rowconfigure def grid_location(self, x: _ScreenUnits, y: _ScreenUnits) -> tuple[int, int]: ... @@ -730,7 +730,7 @@ class Pack: forget = pack_forget propagate = Misc.pack_propagate # commented out to avoid mypy getting confused with multiple - # inheritance and how things get overrided with different things + # inheritance and how things get overridden with different things # info = pack_info # pack_propagate = Misc.pack_propagate # configure = pack_configure @@ -774,7 +774,7 @@ class Place: place = place_configure info = place_info # commented out to avoid mypy getting confused with multiple - # inheritance and how things get overrided with different things + # inheritance and how things get overridden with different things # config = place_configure # configure = place_configure # forget = place_forget @@ -816,7 +816,7 @@ class Grid: location = Misc.grid_location size = Misc.grid_size # commented out to avoid mypy getting confused with multiple - # inheritance and how things get overrided with different things + # inheritance and how things get overridden with different things # bbox = Misc.grid_bbox # grid_bbox = Misc.grid_bbox # forget = grid_forget @@ -954,7 +954,7 @@ class Button(Widget): state: Literal["normal", "active", "disabled"] = ..., takefocus: _TakeFocusValue = ..., text: float | str = ..., - # We allow the textvariable to be any Variable, not necessarly + # We allow the textvariable to be any Variable, not necessarily # StringVar. This is useful for e.g. a button that displays the value # of an IntVar. textvariable: Variable = ..., @@ -2960,7 +2960,7 @@ class OptionMenu(Menubutton): command: Callable[[StringVar], Any] | None = ..., ) -> None: ... # configure, config, cget are inherited from Menubutton - # destroy and __getitem__ are overrided, signature does not change + # destroy and __getitem__ are overridden, signature does not change class _Image(Protocol): tk: _tkinter.TkappType diff --git a/stdlib/tkinter/ttk.pyi b/stdlib/tkinter/ttk.pyi index 20f74d4a5ec2..be0713ec2e4b 100644 --- a/stdlib/tkinter/ttk.pyi +++ b/stdlib/tkinter/ttk.pyi @@ -1122,7 +1122,7 @@ class LabeledScale(Frame): compound: Literal["top"] | Literal["bottom"] = ..., **kw: Any, ) -> None: ... - # destroy is overrided, signature does not change + # destroy is overridden, signature does not change value: Any class OptionMenu(Menubutton): @@ -1138,5 +1138,5 @@ class OptionMenu(Menubutton): command: Callable[[tkinter.StringVar], Any] | None = ..., ) -> None: ... # configure, config, cget, destroy are inherited from Menubutton - # destroy and __setitem__ are overrided, signature does not change + # destroy and __setitem__ are overridden, signature does not change def set_menu(self, default: Any | None = ..., *values): ... diff --git a/stubs/Flask/flask/testing.pyi b/stubs/Flask/flask/testing.pyi index 08f5a0d080b3..053c4dd04dff 100644 --- a/stubs/Flask/flask/testing.pyi +++ b/stubs/Flask/flask/testing.pyi @@ -6,7 +6,7 @@ from werkzeug.test import Client, EnvironBuilder as WerkzeugEnvironBuilder # Response type for the client below. # By default _R is Tuple[Iterable[Any], Text | int, werkzeug.datastructures.Headers], however -# most commonly it is wrapped in a Reponse object. +# most commonly it is wrapped in a Response object. _R = TypeVar("_R") class FlaskClient(Client[_R]): diff --git a/stubs/caldav/@tests/stubtest_allowlist.txt b/stubs/caldav/@tests/stubtest_allowlist.txt index 4520447725a7..293f7da8b10a 100644 --- a/stubs/caldav/@tests/stubtest_allowlist.txt +++ b/stubs/caldav/@tests/stubtest_allowlist.txt @@ -4,7 +4,7 @@ caldav.DAVClient.principal caldav.davclient.DAVClient.calendar caldav.davclient.DAVClient.principal -# Initialized in class, but immediatly overwritten in __init__ +# Initialized in class, but immediately overwritten in __init__ caldav.DAVClient.url caldav.davclient.DAVClient.url caldav.davclient.DAVResponse.headers diff --git a/tests/stubtest_allowlists/py3_common.txt b/tests/stubtest_allowlists/py3_common.txt index 25f81d3ec6de..d22907d4bd14 100644 --- a/tests/stubtest_allowlists/py3_common.txt +++ b/tests/stubtest_allowlists/py3_common.txt @@ -92,7 +92,7 @@ http.client.HTTPConnection.response_class # the actual type at runtime is abc.A imaplib.IMAP4_SSL.ssl # Dependent on SSL existence importlib.abc.FileLoader.get_filename # Wrapped with _check_name decorator which changes runtime signature importlib.abc.FileLoader.load_module # Wrapped with _check_name decorator which changes runtime signature -importlib.abc.Loader.exec_module # See Lib/importlib/_abc.py. Might be defined for backwards compatability +importlib.abc.Loader.exec_module # See Lib/importlib/_abc.py. Might be defined for backwards compatibility importlib.abc.MetaPathFinder.find_spec # Not defined on the actual class, but expected to exist. importlib.abc.PathEntryFinder.find_spec # Not defined on the actual class, but expected to exist. importlib.machinery.ExtensionFileLoader.get_filename # Wrapped with _check_name decorator which changes runtime signature @@ -196,7 +196,7 @@ tkinter.Tk.eval # from __getattr__ 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 tkinter.Wm.wm_iconphoto # Default value of argument can't be used without runtime error tkinter.font.Font.__getitem__ # Argument name differs (doesn't matter for __dunder__ methods) -traceback.TracebackException.from_exception # explicitly expanding arguemnts going into TracebackException __init__ +traceback.TracebackException.from_exception # explicitly expanding arguments going into TracebackException __init__ types.GetSetDescriptorType.__get__ # this function can accept no value for the type parameter. types.MemberDescriptorType.__get__ # this function can accept no value for the type parameter. types.SimpleNamespace.__init__ # class doesn't accept positional arguments but has default C signature