Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


- case: maybe_like_inheritance_wrong
disable_cache: false
disable_cache: true
main: |
from typing import TypeVar, Callable, Optional
from returns.interfaces.specific.maybe import MaybeLike2
Expand All @@ -59,6 +59,7 @@
main:9: error: Return type "MyClass[Optional[N]]" of "bind_optional" incompatible with return type "KindN[MyClass[V], _UpdatedType, None, Never]" in supertype "MaybeLikeN" [override]
main:15: error: Signature of "from_optional" incompatible with supertype "MaybeLikeN" [override]
main:15: note: Superclass:
main:15: note: @classmethod
main:15: note: def [_ValueType] from_optional(cls, inner_value: Optional[_ValueType]) -> KindN[MyClass[V], _ValueType, None, Never]
main:15: note: Subclass:
main:15: note: def [N] from_optional(self, inner_value: Optional[N]) -> MyClass[N]
Loading