From fbdb745761635f6666002d8a796db40d5a7e974a Mon Sep 17 00:00:00 2001 From: Artur Mostowski Date: Thu, 20 Aug 2026 14:10:52 +0200 Subject: [PATCH] fixed some typos --- CONTRIBUTING.md | 2 +- stubs/Authlib/authlib/oauth2/rfc9068/token.pyi | 2 +- stubs/WebOb/webob/multidict.pyi | 2 +- stubs/WebTest/webtest/response.pyi | 2 +- stubs/pywin32/_win32typing.pyi | 4 ++-- stubs/pywin32/win32/win32api.pyi | 2 +- stubs/reportlab/@tests/stubtest_allowlist.txt | 4 ++-- stubs/reportlab/reportlab/lib/__init__.pyi | 2 +- stubs/reportlab/reportlab/platypus/flowables.pyi | 4 ++-- .../tensorflow/core/framework/graph_debug_info_pb2.pyi | 2 +- stubs/tqdm/tqdm/contrib/concurrent.pyi | 2 +- stubs/uWSGI/uwsgi.pyi | 8 ++++---- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e469487e54f4..a37d50cb5ca5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -370,7 +370,7 @@ Use `@deprecated` if and only if - a feature is deprecated at runtime (either using `@deprecated` or with a runtime warning); or -- a feature is documented to be deprecated (e.g. in API documention, +- a feature is documented to be deprecated (e.g. in API documentation, docstrings, or comments). For standard library features that are not deprecated in all Python versions diff --git a/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi b/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi index 6ef3b9c2d46d..6b559345262d 100644 --- a/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi +++ b/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi @@ -13,5 +13,5 @@ class JWTBearerTokenGenerator(BearerTokenGenerator): def get_auth_time(self, user) -> int | None: ... def get_amr(self, user) -> list[str] | None: ... def get_jti(self, client, grant_type, user, scope) -> str: ... - # Override seems safe, but mypy doesn't like that it's a callabe protocol in the base + # Override seems safe, but mypy doesn't like that it's a callable protocol in the base def access_token_generator(self, client, grant_type, user, scope) -> str: ... # type: ignore[override] diff --git a/stubs/WebOb/webob/multidict.pyi b/stubs/WebOb/webob/multidict.pyi index 4272d2197564..c4a64bf11b14 100644 --- a/stubs/WebOb/webob/multidict.pyi +++ b/stubs/WebOb/webob/multidict.pyi @@ -154,7 +154,7 @@ class NestedMultiDict(MultiDict[_KT, _VT]): # NOTE: These methods all return exceptions, so this will give us # somewhat sane type checker errors, we would prefer to use # something like @type_error here, if it existed. - # This is only really necessary, because the inheritance hierachy + # This is only really necessary, because the inheritance hierarchy # is a mess. __setitem__: None # type: ignore[assignment] add: None # type: ignore[assignment] diff --git a/stubs/WebTest/webtest/response.pyi b/stubs/WebTest/webtest/response.pyi index 2821f616e16c..b6d67b2344c0 100644 --- a/stubs/WebTest/webtest/response.pyi +++ b/stubs/WebTest/webtest/response.pyi @@ -32,7 +32,7 @@ class _PostParams(_GetParams, total=False): content_type: str class TestResponse(Response): - # NOTE: The way WebTest creates reponses the request is always set + # NOTE: The way WebTest creates responses the request is always set # we could've used `MaybeNone`, but it seems more pragmatic # to just assume that this is always set. request: TestRequest # type: ignore[assignment] diff --git a/stubs/pywin32/_win32typing.pyi b/stubs/pywin32/_win32typing.pyi index 4e61a1565645..c8920c920837 100644 --- a/stubs/pywin32/_win32typing.pyi +++ b/stubs/pywin32/_win32typing.pyi @@ -6269,8 +6269,8 @@ class HTTP_FILTER_CONTEXT: def FilterContext(self): ... def GetData(self): ... def GetServerVariable(self, variable: str, default, /) -> str: ... - def WriteClient(self, data: str, reserverd: int = ..., /) -> None: ... - def AddResponseHeaders(self, data: str, reserverd: int = ..., /) -> None: ... + def WriteClient(self, data: str, reserved: int = ..., /) -> None: ... + def AddResponseHeaders(self, data: str, reserved: int = ..., /) -> None: ... def SendResponseHeader(self, status: str, header: str, /) -> None: ... def DisableNotifications(self, flags, /) -> None: ... diff --git a/stubs/pywin32/win32/win32api.pyi b/stubs/pywin32/win32/win32api.pyi index 2023030f3215..9f6d9bee2e52 100644 --- a/stubs/pywin32/win32/win32api.pyi +++ b/stubs/pywin32/win32/win32api.pyi @@ -279,7 +279,7 @@ def SetFileAttributes(pathName: str, attrs, /): ... def SetLastError(errVal: int, /): ... def SetSysColors(Elements, RgbValues, /) -> None: ... def SetLocalTime(SystemTime: TimeType, /) -> None: ... -def SetSystemTime(year, month, dayOfWeek, day, hour, minute, second, millseconds, /): ... +def SetSystemTime(year, month, dayOfWeek, day, hour, minute, second, milliseconds, /): ... def SetClassLong(hwnd: int, offset, val, /): ... @deprecated("This function is obsolete, use `win32api.SetClassLong` instead.") def SetClassWord(hwnd: int, offset, val, /): ... diff --git a/stubs/reportlab/@tests/stubtest_allowlist.txt b/stubs/reportlab/@tests/stubtest_allowlist.txt index 037ecc58aece..2b0026f6730c 100644 --- a/stubs/reportlab/@tests/stubtest_allowlist.txt +++ b/stubs/reportlab/@tests/stubtest_allowlist.txt @@ -19,7 +19,7 @@ reportlab.pdfbase.ttfonts.shapeFragWord # to get less noise from derived classes that don't have these parameters reportlab\.platypus\.(doctemplate\.|flowables\.)?[A-Za-z_]+\.drawOn -# similary the wrap/split methods use inconsistent names for their +# similarly the wrap/split methods use inconsistent names for their # parameters, so we decided to make them positional-only reportlab.graphics.shapes.Drawing.wrap reportlab\.platypus\.(doctemplate\.|flowables\.|tableofcontents\.)?[A-Za-z_]+\.split @@ -43,7 +43,7 @@ reportlab.platypus.flowables._ContainerSpace.getSpaceBefore # we've decided to just get rid of the argument in the stub entirely reportlab.platypus.frames.Frame.drawBoundary -# this is just a case-insenstive version of dict and changes in parameter +# this is just a case-insensitive version of dict and changes in parameter # names and them changing from positional-only to keyword or positional # is entirely untintentional, for simplicity we assume these methods # work the same as in the base class, there is only one exception diff --git a/stubs/reportlab/reportlab/lib/__init__.pyi b/stubs/reportlab/reportlab/lib/__init__.pyi index 88939e7e7871..f2c66be57c66 100644 --- a/stubs/reportlab/reportlab/lib/__init__.pyi +++ b/stubs/reportlab/reportlab/lib/__init__.pyi @@ -1,4 +1,4 @@ from typing import Final __version__: Final[str] -RL_DEBUG: Final[bool] # initalized based on env +RL_DEBUG: Final[bool] # initialised based on env diff --git a/stubs/reportlab/reportlab/platypus/flowables.pyi b/stubs/reportlab/reportlab/platypus/flowables.pyi index 893d705c3b0d..d3d0da2ed876 100644 --- a/stubs/reportlab/reportlab/platypus/flowables.pyi +++ b/stubs/reportlab/reportlab/platypus/flowables.pyi @@ -66,7 +66,7 @@ _NestedFlowable: TypeAlias = Flowable | Sequence[_NestedFlowable] @type_check_only class _StyledFlowableFactory(Protocol): - # NOTE: We leave style at Any so people can specify a specifc property set + # NOTE: We leave style at Any so people can specify a specific property set def __call__(self, value: str, /, *, style: Any) -> Flowable: ... class TraceInfo: @@ -147,7 +147,7 @@ class Image(Flowable): def __init__( self, # TODO: I think this might also accept a PIL.Image and other - # kinds of path represenations, should be kept in sync + # kinds of path representations, should be kept in sync # with reportlab.lib.utils.ImageReader, except for the # potential PIL.Image shortcut filename: str | SupportsRead[bytes] | Incomplete, diff --git a/stubs/tensorflow/tensorflow/core/framework/graph_debug_info_pb2.pyi b/stubs/tensorflow/tensorflow/core/framework/graph_debug_info_pb2.pyi index 2c3f6761f1ef..cbf9b620bc19 100644 --- a/stubs/tensorflow/tensorflow/core/framework/graph_debug_info_pb2.pyi +++ b/stubs/tensorflow/tensorflow/core/framework/graph_debug_info_pb2.pyi @@ -174,7 +174,7 @@ class GraphDebugInfo(google.protobuf.message.Message): syntax: op.name '@' func_name For ops in the top-level graph, the func_name is the empty string and hence - the `@` may be ommitted. + the `@` may be omitted. Note that op names are restricted to a small number of characters which exclude '@', making it impossible to collide keys of this form. Function names accept a much wider set of characters. diff --git a/stubs/tqdm/tqdm/contrib/concurrent.pyi b/stubs/tqdm/tqdm/contrib/concurrent.pyi index 44622ae76d36..a90f6b85f9ff 100644 --- a/stubs/tqdm/tqdm/contrib/concurrent.pyi +++ b/stubs/tqdm/tqdm/contrib/concurrent.pyi @@ -66,7 +66,7 @@ class _TqdmProcessKwargs(_TqdmKwargs, total=False): @type_check_only class _TqdmThreadKwargs(_TqdmKwargs, total=False): thread_name_prefix: str | None - # Not techically for threading, but just a signature difference: + # Not technically for threading, but just a signature difference: lock_name: str @contextmanager diff --git a/stubs/uWSGI/uwsgi.pyi b/stubs/uWSGI/uwsgi.pyi index 987a8b6a98eb..1830e762d770 100644 --- a/stubs/uWSGI/uwsgi.pyi +++ b/stubs/uWSGI/uwsgi.pyi @@ -110,7 +110,7 @@ def snmp_decr_counter64(oid_num: int, decrement: int, /) -> _TrueOrNone: ... def snmp_decr_gauge(oid_num: int, decrement: int, /) -> _TrueOrNone: ... @overload -def send_to_spooler(mesage_dict: dict[bytes, bytes], /) -> bytes | None: ... +def send_to_spooler(message_dict: dict[bytes, bytes], /) -> bytes | None: ... @overload def send_to_spooler( *, spooler: bytes = ..., priority: bytes = ..., at: bytes = ..., body: bytes = ..., **kwargs: bytes @@ -163,11 +163,11 @@ def mule_get_msg(signals: bool = True, farms: bool = True, buffer_size: int = 65 def mule_id() -> int: ... @overload -def mule_msg(mesage: str | bytes | ReadOnlyBuffer, /) -> bool: ... +def mule_msg(message: str | bytes | ReadOnlyBuffer, /) -> bool: ... @overload -def mule_msg(mesage: str | bytes | ReadOnlyBuffer, mule_id: int, /) -> bool: ... +def mule_msg(message: str | bytes | ReadOnlyBuffer, mule_id: int, /) -> bool: ... @overload -def mule_msg(mesage: str | bytes | ReadOnlyBuffer, farm_name: str, /) -> bool: ... +def mule_msg(message: str | bytes | ReadOnlyBuffer, farm_name: str, /) -> bool: ... def offload(filename: str, len: int = 0, /) -> Literal[b""]: ... def parsefile(filename: str, /) -> dict[bytes, bytes] | None: ...