Skip to content

Commit

Permalink
Update test_maybe_like.yml (#2000)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jan 4, 2025
1 parent f869e82 commit 6e26ad8
Showing 1 changed file with 2 additions and 1 deletion.
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]

0 comments on commit 6e26ad8

Please sign in to comment.