Skip to content

Already parametrized DocList class should not be subscriptable #1799

@JoanFM

Description

@JoanFM

Initial Checks

  • I have read and followed the docs and still think this is a bug

Description

Context

from docarray import DocList, BaseDoc

class MyDoc(BaseDoc):
    text: str

DocList[MyDoc][MyDoc] # 2

This should fail with the error:

TypeError: 'DocList' object is not subscriptable

Example Code

from docarray import DocList, BaseDoc

class MyDoc(BaseDoc):
    text: str

DocList[MyDoc][MyDoc]

Python, DocArray & OS Version

0.38

Affected Components

Metadata

Metadata

Assignees

No one assigned

    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