Skip to content

dbapi2.Cursor.description property type annotation should be Optional[...] #89

Description

@jsurany

The dbapi2.Cursor._description can be null, so the accessor should be an Optional type.

>>> from comdb2 import dbapi2
>>> conn = dbapi2.connect("....")
>>> cursor = conn.cursor()
>>> type(cursor.description)
<class 'NoneType'>

The type annotation for the property is tuple[tuple[str, object, None, None, None, None, None], ...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions