Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion stubs/Authlib/authlib/oauth2/rfc9068/token.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 1 addition & 1 deletion stubs/WebOb/webob/multidict.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion stubs/WebTest/webtest/response.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions stubs/pywin32/_win32typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...

Expand Down
2 changes: 1 addition & 1 deletion stubs/pywin32/win32/win32api.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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, /): ...
Expand Down
4 changes: 2 additions & 2 deletions stubs/reportlab/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion stubs/reportlab/reportlab/lib/__init__.pyi
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions stubs/reportlab/reportlab/platypus/flowables.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a generated file and the docstring is copied over from upstream, so this change will be overwritten the next time we regenerate this file. Doesn't matter too much in the meantime, though

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.
Expand Down
2 changes: 1 addition & 1 deletion stubs/tqdm/tqdm/contrib/concurrent.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions stubs/uWSGI/uwsgi.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: ...
Expand Down