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
False there is surprising. I understand why it happens: because internally isinstance is converted to issubclass and Sequence[Any] is not a subclass of Sequence[int].
The text was updated successfully, but these errors were encountered:
We use a special type type_util.Empty[T] to model empty sets, dicts, lists to avoid lacking covariance of mutable Any-parameters. So [] should become type_util.Empty[List] which should be subtype of Sequence[int]. Cannot tell right now why this fails, but have to investigate. (Currently busy with upcoming Python 3.7 support.)
False
there is surprising. I understand why it happens: because internallyisinstance
is converted toissubclass
andSequence[Any]
is not a subclass ofSequence[int]
.The text was updated successfully, but these errors were encountered: