Skip to content

Commit

Permalink
fix type annotations of bql-related functions (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreMizrahi authored Jul 14, 2024
1 parent 2369b8e commit b14d8a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blp/blp.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ def bql(
expression: str,
overrides: Optional[Sequence] = None,
options: Optional[Dict] = None,
) -> pandas.DataFrame:
) -> List[pandas.DataFrame]:
"""Bloomberg query language request.
Args:
Expand Down Expand Up @@ -874,9 +874,9 @@ def bql(

list_of_dfs = self.query(query, bql_parser, self.collect_to_bql)

return list_of_dfs
return list_of_dfs # type:ignore

def collect_to_bql(self, responses: Iterable) -> pandas.DataFrame:
def collect_to_bql(self, responses: Iterable) -> List[pandas.DataFrame]:
"""Collector for bql()."""
return [pandas.DataFrame(field) for field in responses]

Expand Down

0 comments on commit b14d8a7

Please sign in to comment.