Skip to content

Commit f237547

Browse files
authored
Merge pull request #16 from abcdenis/patch-1
remove typing.cast()
2 parents bf8beed + 955166c commit f237547

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

litequeue.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from typing import Iterable
1414
from typing import Optional
1515
from typing import Union
16-
from typing import cast
1716

1817
_DKW: Dict[str, Any] = {}
1918
if sys.version_info >= (3, 10):
@@ -280,7 +279,7 @@ def put(self, data: str) -> Message:
280279
Insert a new message
281280
"""
282281
# timeout: int = None
283-
message_id: str = cast(str, uuid7())
282+
message_id: str = uuid7()
284283
now = time_ns()
285284

286285
_cursor = self.conn.execute( # noqa

0 commit comments

Comments
 (0)