Skip to content

Commit 248f725

Browse files
committed
FIX: Fix pipeline errors in client library
1 parent c2a65e1 commit 248f725

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.15.1 - TBD
4+
5+
#### Bug Fixes
6+
- Fixed an `ImportError` observed in Python 3.8
7+
38
## 0.15.0 - 2023-07-03
49

510
#### Enhancements

databento/common/parsing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def optional_symbols_list_to_list(
8888
)
8989

9090

91-
@optional_symbols_list_to_list.register
91+
@optional_symbols_list_to_list.register(cls=type(None))
9292
def _(_: None, __: SType) -> list[str]:
9393
"""
9494
Dispatch method for optional_symbols_list_to_list. Handles None which
@@ -102,7 +102,7 @@ def _(_: None, __: SType) -> list[str]:
102102
return [ALL_SYMBOLS]
103103

104104

105-
@optional_symbols_list_to_list.register
105+
@optional_symbols_list_to_list.register(cls=Number)
106106
def _(symbols: Number, stype_in: SType) -> list[str]:
107107
"""
108108
Dispatch method for optional_symbols_list_to_list. Handles numerical types,
@@ -121,7 +121,7 @@ def _(symbols: Number, stype_in: SType) -> list[str]:
121121
)
122122

123123

124-
@optional_symbols_list_to_list.register
124+
@optional_symbols_list_to_list.register(cls=str)
125125
def _(symbols: str, stype_in: SType) -> list[str]:
126126
"""
127127
Dispatch method for optional_symbols_list_to_list. Handles str, splitting

databento/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.15.0"
1+
__version__ = "0.15.1"

tests/mock_live_server.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,10 @@ def get_message_of_type(
616616
end_time = self._loop.time() + timeout
617617
while start_time < end_time:
618618
remaining_time = abs(end_time - self._loop.time())
619-
message = self._message_queue.get(timeout=remaining_time)
619+
try:
620+
message = self._message_queue.get(timeout=remaining_time)
621+
except queue.Empty:
622+
continue
620623

621624
if isinstance(message, message_type):
622625
return message

0 commit comments

Comments
 (0)