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
4 changes: 2 additions & 2 deletions optype/_core/_can.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def __dir__() -> list[str]:

# this should (but can't) be contravariant
# https://github.com/astral-sh/ty/issues/1798
_Tss = ParamSpec("_Tss", default=...) # ty:ignore[invalid-paramspec]
_Tss = ParamSpec("_Tss", default=...)

_T = TypeVar("_T")
_T_co = TypeVar("_T_co", covariant=True)
Expand Down Expand Up @@ -358,7 +358,7 @@ def __aiter__(self, /) -> _CanANextT_co: ...


@runtime_checkable
class CanAIterSelf(CanAIter["CanAIterSelf[_V_co]"], CanANext[_V_co], Protocol[_V_co]): # ty:ignore[unsupported-base]
class CanAIterSelf(CanAIter["CanAIterSelf[_V_co]"], CanANext[_V_co], Protocol[_V_co]):
"""Like `AsyncIterator[T]`, but without the `abc` nonsense."""

@override
Expand Down
2 changes: 1 addition & 1 deletion optype/_core/_do.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def __dir__() -> list[str]:

# callables

do_call: Final[_d.DoesCall] = _o.call # ty:ignore[invalid-assignment] # pyrefly: ignore[bad-assignment]
do_call: Final[_d.DoesCall] = _o.call # pyrefly: ignore[bad-assignment]

# containers and sequences

Expand Down
6 changes: 3 additions & 3 deletions optype/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __copy__(self, /) -> _T_co: ...


@runtime_checkable # https://github.com/astral-sh/ty/issues/1800
class CanCopySelf(CanCopy["CanCopySelf"], Protocol): # ty:ignore[unsupported-base]
class CanCopySelf(CanCopy["CanCopySelf"], Protocol):
"""Runtime-checkable alias `CanCopySelf = CanCopy[Self]`."""

@override
Expand All @@ -51,7 +51,7 @@ def __deepcopy__(self, memo: dict[int, object], /) -> _T_co: ...


@runtime_checkable # https://github.com/astral-sh/ty/issues/1800
class CanDeepcopySelf(CanDeepcopy["CanDeepcopySelf"], Protocol): # ty:ignore[unsupported-base]
class CanDeepcopySelf(CanDeepcopy["CanDeepcopySelf"], Protocol):
"""Runtime-checkable alias `CanDeepcopySelf = CanDeepcopy[Self]`."""

@override
Expand All @@ -77,7 +77,7 @@ def __replace__(self, /, *_: Any, **changes: Any) -> _T_co: ...


@runtime_checkable # https://github.com/astral-sh/ty/issues/1800
class CanReplaceSelf(CanReplace["CanReplaceSelf"], Protocol): # ty:ignore[unsupported-base]
class CanReplaceSelf(CanReplace["CanReplaceSelf"], Protocol):
"""
Runtime-checkable alias `CanReplaceSelf = CanReplace[Self]`, i.e.
`copy.replace: def[S <: CanReplaceSelf](_: S) -> S`.
Expand Down
2 changes: 1 addition & 1 deletion optype/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __dir__() -> tuple[str, ...]:
###

# https://github.com/astral-sh/ty/issues/1798
_Tss = ParamSpec("_Tss", default=...) # ty:ignore[invalid-paramspec]
_Tss = ParamSpec("_Tss", default=...)
_ArgT = TypeVar("_ArgT", default=object)
_ArgT_co = TypeVar("_ArgT_co", covariant=True, default=object)
_StateT_co = TypeVar("_StateT_co", covariant=True)
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["uv_build>=0.9.16,<0.10.0"]
requires = ["uv_build>=0.9.18,<0.10.0"]
build-backend = "uv_build"

[tool.uv.build-backend]
Expand Down Expand Up @@ -68,22 +68,22 @@ extra = [
]
lint = [
"dprint-py>=0.50.2.0",
"ruff>=0.14.8",
"ruff>=0.14.10",
"sp-repo-review[cli]>=2025.11.21",
]
test = [
{ include-group = "extra" },
"beartype>=0.22.8",
"beartype>=0.22.9",
"pytest>=9.0.2",
"typing-extensions>=4.15.0",
]
type = [
{ include-group = "extra" },
{ include-group = "test" },
"basedpyright>=1.35.0",
"mypy[faster-cache]>=1.19.0",
"basedpyright>=1.36.1",
"mypy[faster-cache]>=1.19.1",
"pyrefly==0.46.0",
"ty==0.0.1a34",
"ty==0.0.4",
]
dev = [
{ include-group = "extra" },
Expand Down
Loading