Skip to content

Commit 967d3a6

Browse files
Dhairya-007claude
andauthored
Fix typos in stub comments (#16715)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent ffcf406 commit 967d3a6

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎stubs/Markdown/markdown/extensions/abbr.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AbbrTreeprocessor(Treeprocessor):
2222
def create_element(self, title: str, text: str, tail: str) -> Element: ...
2323
def iter_element(self, el: Element, parent: Element | None = None) -> None: ...
2424

25-
# Techinically it is the same type as `AbbrPreprocessor` just not deprecated.
25+
# Technically it is the same type as `AbbrPreprocessor` just not deprecated.
2626
class AbbrBlockprocessor(BlockProcessor):
2727
RE: ClassVar[Pattern[str]]
2828
abbrs: dict[str, str]

‎stubs/docutils/docutils/statemachine.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class ViewList(Generic[_T]):
171171
def xitems(self) -> Generator[tuple[str, int, str]]: ...
172172
def pprint(self) -> None: ...
173173

174-
# dummy atribute to indicate to mypy that ViewList is Iterable[str]
174+
# dummy attribute to indicate to mypy that ViewList is Iterable[str]
175175
def __iter__(self) -> Iterator[str]: ...
176176

177177
class StringList(ViewList[str]):

‎stubs/geopandas/geopandas/_decorator.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ _Func = TypeVar("_Func", bound=_AnyCallable)
77
# We (ab)use this decorator to also copy the signature of the source function (overload 1)
88
# The advantages are:
99
# - avoid copying all parameters and types manually while conserving type safety
10-
# - signature properly handeled in IDEs (at least with Pylance)
10+
# - signature properly handled in IDEs (at least with Pylance)
1111
# - docstring from the original function properly displayed (at least with Pylance)
1212
# Using the other overloads returns the signature of the decorated function instead
1313
@overload

‎stubs/geopandas/geopandas/io/sql.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ _SqlalchemyConnectableLike: TypeAlias = _SqlalchemyConnectionLike | _SqlalchemyE
7676
# ---------------------
7777
# End SQLAlchemy hack
7878

79-
_SQLConnection: TypeAlias = str | _SqlalchemyConnectableLike | sqlite3.Connection # coppied from pandas.io.sql
79+
_SQLConnection: TypeAlias = str | _SqlalchemyConnectableLike | sqlite3.Connection # copied from pandas.io.sql
8080

8181
@overload
8282
def _read_postgis(

‎stubs/gevent/gevent/_types.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from typing_extensions import TypeVarTuple, Unpack
77

88
_Ts = TypeVarTuple("_Ts")
99

10-
# gevent uses zope.interface interanlly which does not work well with type checkers
10+
# gevent uses zope.interface internally which does not work well with type checkers
1111
# partially due to the odd call signatures without self and partially due to them
1212
# behaving essentially like a Protocol, so a mypy plugin is necessary to type check
1313
# them correctly, and then you still have to give up on some valuable features due

‎stubs/gevent/gevent/libuv/loop.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class loop(AbstractLoop):
2828
def debug(self) -> list[_HandleState]: ...
2929
def install_sigchld(self) -> None: ...
3030
def reset_sigchld(self) -> None: ...
31-
# this returns a class private to gevent.libuv.watcher.io, which satisifies the protocol
31+
# this returns a class private to gevent.libuv.watcher.io, which satisfies the protocol
3232
def io(self, fd: FileDescriptor, events: int, ref: bool = True, priority: int | None = None) -> _IoWatcher: ...
3333
def closing_fd(self, fd: FileDescriptor) -> bool: ...
3434
def timer(self, after: float, repeat: float = 0.0, ref: bool = True, priority: int | None = None) -> watcher.timer: ...

‎stubs/ldap3/ldap3/core/connection.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ _ServerSequence: TypeAlias = (
1717
set[Server] | list[Server] | tuple[Server, ...] | Generator[Server, None, None] | dict_keys[Server, Incomplete]
1818
)
1919
# TODO: Construct full request and response types. This is non-trivial because there are many different request/response types and
20-
# the libary was written async (not thread-safe) design.
20+
# the library was written async (not thread-safe) design.
2121
_Request: TypeAlias = Incomplete
2222
_Response: TypeAlias = Incomplete
2323
_Result: TypeAlias = Incomplete

‎stubs/networkx/networkx/algorithms/planarity.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class PlanarEmbedding(DiGraph[_Node]):
106106
def traverse_face(
107107
self, v: _Node, w: _Node, mark_half_edges: MutableSet[tuple[_Node, _Node]] | None = None
108108
) -> list[_Node]: ...
109-
# Overriden in __init__ to always raise
109+
# Overridden in __init__ to always raise
110110
def add_edge(self, u_of_edge: _Node, v_of_edge: _Node, **attr: Unused) -> Never: ...
111111
def add_edges_from(self, ebunch_to_add: Iterable[_EdgePlus[_Node]], **attr: Unused) -> Never: ...
112112
def add_weighted_edges_from(

0 commit comments

Comments
 (0)