You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Overloaded implementation is not consistent with signature of overload 2
Type "(x: Foo[T@f] | None) -> int" is not assignable to type "(x: Foo[T@f]) -> int"
Parameter 1: type "Foo[T@f]" is incompatible with type "Foo[T@f] | None"
Type "Foo[T@f]" is not assignable to type "Foo[T@f] | None"
"notes.journal.2024-09-22-overload-bug.Foo" is not assignable to "notes.journal.2024-09-22-overload-bug.Foo"
Type parameter "T@Foo" is contravariant, but "T@f" is not a supertype of "T@f"
"Foo[T@f]" is not assignable to "None" (reportInconsistentOverload)
The text was updated successfully, but these errors were encountered:
Pyright 1.1.381 sometimes raises spurious errors when overloading functions whose signature involves parametric types:
Here is the detailed error:
The text was updated successfully, but these errors were encountered: