Skip to content

Commit f5602e7

Browse files
authored
fixed some typos (#16273)
1 parent 5ce11e3 commit f5602e7

12 files changed

Lines changed: 18 additions & 18 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ Use `@deprecated` if and only if
376376

377377
- a feature is deprecated at runtime (either using `@deprecated` or with a
378378
runtime warning); or
379-
- a feature is documented to be deprecated (e.g. in API documention,
379+
- a feature is documented to be deprecated (e.g. in API documentation,
380380
docstrings, or comments).
381381

382382
For standard library features that are not deprecated in all Python versions

stubs/Authlib/authlib/oauth2/rfc9068/token.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ class JWTBearerTokenGenerator(BearerTokenGenerator):
1313
def get_auth_time(self, user) -> int | None: ...
1414
def get_amr(self, user) -> list[str] | None: ...
1515
def get_jti(self, client, grant_type, user, scope) -> str: ...
16-
# Override seems safe, but mypy doesn't like that it's a callabe protocol in the base
16+
# Override seems safe, but mypy doesn't like that it's a callable protocol in the base
1717
def access_token_generator(self, client, grant_type, user, scope) -> str: ... # type: ignore[override]

stubs/WebOb/webob/multidict.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class NestedMultiDict(MultiDict[_KT, _VT]):
154154
# NOTE: These methods all return exceptions, so this will give us
155155
# somewhat sane type checker errors, we would prefer to use
156156
# something like @type_error here, if it existed.
157-
# This is only really necessary, because the inheritance hierachy
157+
# This is only really necessary, because the inheritance hierarchy
158158
# is a mess.
159159
__setitem__: None # type: ignore[assignment]
160160
add: None # type: ignore[assignment]

stubs/WebTest/webtest/response.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class _PostParams(_GetParams, total=False):
3232
content_type: str
3333

3434
class TestResponse(Response):
35-
# NOTE: The way WebTest creates reponses the request is always set
35+
# NOTE: The way WebTest creates responses the request is always set
3636
# we could've used `MaybeNone`, but it seems more pragmatic
3737
# to just assume that this is always set.
3838
request: TestRequest # type: ignore[assignment]

stubs/pywin32/_win32typing.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6404,8 +6404,8 @@ class HTTP_FILTER_CONTEXT:
64046404
def FilterContext(self): ...
64056405
def GetData(self): ...
64066406
def GetServerVariable(self, variable: str, default, /) -> str: ...
6407-
def WriteClient(self, data: str, reserverd: int = ..., /) -> None: ...
6408-
def AddResponseHeaders(self, data: str, reserverd: int = ..., /) -> None: ...
6407+
def WriteClient(self, data: str, reserved: int = ..., /) -> None: ...
6408+
def AddResponseHeaders(self, data: str, reserved: int = ..., /) -> None: ...
64096409
def SendResponseHeader(self, status: str, header: str, /) -> None: ...
64106410
def DisableNotifications(self, flags, /) -> None: ...
64116411

stubs/pywin32/win32/win32api.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def SetFileAttributes(pathName: str, attrs, /): ...
279279
def SetLastError(errVal: int, /): ...
280280
def SetSysColors(Elements, RgbValues, /) -> None: ...
281281
def SetLocalTime(SystemTime: TimeType, /) -> None: ...
282-
def SetSystemTime(year, month, dayOfWeek, day, hour, minute, second, millseconds, /): ...
282+
def SetSystemTime(year, month, dayOfWeek, day, hour, minute, second, milliseconds, /): ...
283283
def SetClassLong(hwnd: int, offset, val, /): ...
284284
@deprecated("This function is obsolete, use `win32api.SetClassLong` instead.")
285285
def SetClassWord(hwnd: int, offset, val, /): ...

stubs/reportlab/@tests/stubtest_allowlist.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ reportlab.pdfbase.ttfonts.shapeFragWord
1919
# to get less noise from derived classes that don't have these parameters
2020
reportlab\.platypus\.(doctemplate\.|flowables\.)?[A-Za-z_]+\.drawOn
2121

22-
# similary the wrap/split methods use inconsistent names for their
22+
# similarly the wrap/split methods use inconsistent names for their
2323
# parameters, so we decided to make them positional-only
2424
reportlab.graphics.shapes.Drawing.wrap
2525
reportlab\.platypus\.(doctemplate\.|flowables\.|tableofcontents\.)?[A-Za-z_]+\.split
@@ -43,7 +43,7 @@ reportlab.platypus.flowables._ContainerSpace.getSpaceBefore
4343
# we've decided to just get rid of the argument in the stub entirely
4444
reportlab.platypus.frames.Frame.drawBoundary
4545

46-
# this is just a case-insenstive version of dict and changes in parameter
46+
# this is just a case-insensitive version of dict and changes in parameter
4747
# names and them changing from positional-only to keyword or positional
4848
# is entirely untintentional, for simplicity we assume these methods
4949
# work the same as in the base class, there is only one exception
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from typing import Final
22

33
__version__: Final[str]
4-
RL_DEBUG: Final[bool] # initalized based on env
4+
RL_DEBUG: Final[bool] # initialised based on env

stubs/reportlab/reportlab/platypus/flowables.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ _NestedFlowable: TypeAlias = Flowable | Sequence[_NestedFlowable]
6666

6767
@type_check_only
6868
class _StyledFlowableFactory(Protocol):
69-
# NOTE: We leave style at Any so people can specify a specifc property set
69+
# NOTE: We leave style at Any so people can specify a specific property set
7070
def __call__(self, value: str, /, *, style: Any) -> Flowable: ...
7171

7272
class TraceInfo:
@@ -147,7 +147,7 @@ class Image(Flowable):
147147
def __init__(
148148
self,
149149
# TODO: I think this might also accept a PIL.Image and other
150-
# kinds of path represenations, should be kept in sync
150+
# kinds of path representations, should be kept in sync
151151
# with reportlab.lib.utils.ImageReader, except for the
152152
# potential PIL.Image shortcut
153153
filename: str | SupportsRead[bytes] | Incomplete,

stubs/tensorflow/tensorflow/core/framework/graph_debug_info_pb2.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class GraphDebugInfo(google.protobuf.message.Message):
174174
syntax:
175175
op.name '@' func_name
176176
For ops in the top-level graph, the func_name is the empty string and hence
177-
the `@` may be ommitted.
177+
the `@` may be omitted.
178178
Note that op names are restricted to a small number of characters which
179179
exclude '@', making it impossible to collide keys of this form. Function
180180
names accept a much wider set of characters.

0 commit comments

Comments
 (0)