Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

Already parametrized DocList class should not be subscriptable #1799

Closed

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

Activity

  1. changed the title [-]DocList object should not be subscriptable[/-] [+]DocList class should not be subscriptable[/+] on Sep 19, 2023
  2. JoanFM commented on Sep 19, 2023

    @JoanFM
    MemberAuthor

    Linked to #1782

  3. linked a pull request that will close this issuefix: fix double subscriptable error #1800on Sep 19, 2023
  4. changed the title [-]DocList class should not be subscriptable[/-] [+]Already parametrized DocList class should not be subscriptable[/+] on Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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