Skip to content

Commit 523a88b

Browse files
compatible type hints for older python
1 parent ef9f721 commit 523a88b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

clickhouse_connect/datatypes/temporal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import array
44
from datetime import date, datetime, tzinfo, timedelta
5-
from typing import Union, Sequence, MutableSequence, Any, NamedTuple
5+
from typing import Union, Sequence, MutableSequence, Any, NamedTuple, Optional
66
from abc import abstractmethod
77
import re
88

@@ -240,7 +240,7 @@ class _HMSParts(NamedTuple):
240240
hours: int
241241
minutes: int
242242
seconds: int
243-
frac: str | None
243+
frac: Optional[str]
244244
is_negative: bool
245245

246246

0 commit comments

Comments
 (0)