Skip to content

Commit ec88162

Browse files
committed
FIX: Fix return type for get_dataset_condition
1 parent e396111 commit ec88162

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
#### Enhancements
66
- Upgraded `databento-dbn` to 0.22.0
77

8+
#### Bug fixes
9+
- Fixed return type hint for `metadata.get_dataset_condition`
10+
811
#### Breaking changes
912
- Removed support for Python 3.8 due to end of life
1013

databento/historical/api/metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def get_dataset_condition(
188188
dataset: Dataset | str,
189189
start_date: date | str | None = None,
190190
end_date: date | str | None = None,
191-
) -> dict[str, Any]:
191+
) -> list[dict[str, str]]:
192192
"""
193193
Get the per date dataset conditions from Databento.
194194
@@ -209,7 +209,7 @@ def get_dataset_condition(
209209
210210
Returns
211211
-------
212-
dict[str, Any]
212+
list[dict[str, str]]
213213
214214
"""
215215
params: list[tuple[str, str | None]] = [

0 commit comments

Comments
 (0)