Skip to content

Commit f12e82c

Browse files
jorenhamjuntyr
andcommitted
TYP: fix typos in stub comments
Co-authored-by: Juniper Tyree <[email protected]>
1 parent e5c49a0 commit f12e82c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quaddtype/numpy_quaddtype/_quaddtype_main.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class QuadPrecision(np.floating[_128Bit]):
7777
# NOTE: At runtime this constructor also accepts array-likes, for which it returns
7878
# `np.ndarray` instances with `dtype=QuadPrecDType()`.
7979
# But because of mypy limitations, it is currently impossible to annotate
80-
# constructors that do no return instances of their class (or a subclass thereof).
80+
# constructors that do not return instances of their class (or a subclass thereof).
8181
# See https://github.com/python/mypy/issues/18343#issuecomment-2571784915
8282
@override
8383
def __new__(cls, /, value: _IntoQuad, backend: _Backend = "sleef") -> Self: ...
@@ -155,8 +155,8 @@ class QuadPrecision(np.floating[_128Bit]):
155155
def __rdivmod__(self, other: _IntoQuad, /) -> tuple[Self, Self]: ...
156156

157157
# NOTE: is_integer() and as_integer_ratio() are defined on numpy.floating in the
158-
# stubs, but don't exist at runtime. And because QuadPrecision does not have
159-
# implement them, we use this hacky workaround to emulate their abscence.
158+
# stubs, but don't exist at runtime. And because QuadPrecision does not implement
159+
# them, we use this hacky workaround to emulate their absence.
160160
# TODO: Remove after https://github.com/numpy/numpy-user-dtypes/issues/216
161161
is_integer: Never # pyright: ignore[reportIncompatibleMethodOverride]
162162
as_integer_ratio: Never # pyright: ignore[reportIncompatibleMethodOverride]

0 commit comments

Comments
 (0)