Skip to content

Commit bfdcda8

Browse files
correct description type
1 parent 1a792fc commit bfdcda8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

comdb2/dbapi2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
from . import cdb2
299299
from .cdb2 import ColumnType, Row, Value, ParameterValue
300300
from collections.abc import Callable, Iterator, Mapping, Sequence
301-
from typing import Any, List
301+
from typing import Any, List, Optional
302302

303303
__all__ = [
304304
"apilevel",
@@ -936,7 +936,7 @@ def arraysize(self, value: int) -> None:
936936
@property
937937
def description(
938938
self,
939-
) -> tuple[tuple[str, object, None, None, None, None, None], ...]:
939+
) -> Optional[tuple[tuple[str, object, None, None, None, None, None], ...]]:
940940
"""Provides the name and type of each column in the latest result set.
941941
942942
This read-only attribute will contain one element per column in the

0 commit comments

Comments
 (0)