WIP: Make NestedList admit sequences.#82
Conversation
e0405a5 to
5482aa5
Compare
|
This does not work fully in its current form, because of signatures overlap: These two signatures:
are reported to overlap with number 8: The second one makes sense to me, because an But I'm confused about the first one, because this seems to suggest that a The reason I ended up doing this was that I elsewhere had a type defined as I will try removing the covariant specification, and just add a cast to the code I'm type-checking. |
|
Removing the |
numpy will actually accept not just lists, but also tuples as array-like.
5482aa5 to
378db00
Compare
|
@thomkeh This is an attempt to move towards using But as you can see, it doesn't work in its current form, and I'm not sure why. If someone could review this, I'd appreciate any help. |
numpy will actually accept not just lists, but also tuples as array-like.
Discovered this by getting a type error on code that worked correctly.