Skip to content

Commit 46309b8

Browse files
jorenhamsobolevn
andcommitted
Apply review suggestions for unsubscripted special type forms
Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent df6c7ee commit 46309b8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎returns/primitives/hkt.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class Kinded(Protocol[_FunctionDefType_co]): # type: ignore
214214
def __get__(
215215
self,
216216
instance: _UpdatedType,
217-
type_: type | None,
217+
type_: type[Any] | None,
218218
) -> Callable[..., _UpdatedType]:
219219
"""Used to decorate and properly analyze method calls."""
220220

‎returns/primitives/laws.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from collections.abc import Callable, Sequence
2-
from typing import ClassVar, Final, Generic, TypeVar, final
2+
from typing import Any, ClassVar, Final, Generic, TypeVar, final
33

44
from returns.primitives.types import Immutable
55

@@ -25,10 +25,10 @@ class Law(Immutable):
2525

2626
__slots__ = ('definition',)
2727

28-
definition: Callable
28+
definition: Callable[..., Any]
2929
"""Function used to define this law."""
3030

31-
def __init__(self, function: Callable) -> None:
31+
def __init__(self, function: Callable[..., Any]) -> None:
3232
"""Saves function to the inner state."""
3333
object.__setattr__(self, 'definition', function)
3434

0 commit comments

Comments
 (0)