Skip to content

Types does not recognize IndexAssetInfo type #70

@centerpeas

Description

@centerpeas

When loading all weighted indexes, after making the multicall to get all data it then tries to transform each type in this function:

https://github.com/empyrealapp/eth-packages/blob/main/packages/eth_rpc/src/eth_rpc/utils/types.py#L26

While iterating over, it tries to process:

list[eth_typeshed.peapods.weighted_index.IndexAssetInfo]

which it catches as a list and tries to then process the IndexAssetInfo class

https://github.com/empyrealapp/eth-packages/blob/main/packages/eth_typeshed/src/eth_typeshed/peapods/weighted_index.py#L10

but the transform function gets stuck in an infinite loop as it does not appear to have a catch for IndexAssetInfo's type

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions