list[list[T]]
and Sequence[Sequence[T]]
are incompatible as base classes
#9725
Closed
InSyncWithFoo
started this conversation in
General
Replies: 1 comment 4 replies
-
I think pyright is correct here. You should pick one or the other as a base class, not both. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Minimal reproducible example (playground):
It seems that Pyright tried to assign
Sequence[Sequence[T]]
toSequence[list[T]]
, the parametrized version of one oflist[list[T]]
's base class, and failed. Shouldn't it be the other way around instead?Beta Was this translation helpful? Give feedback.
All reactions