Skip to content

Commit 96e270b

Browse files
[core] fix: provide correct types and docstring for report fetcher
1 parent 9067342 commit 96e270b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

libs/core/garf_core/report_fetcher.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,18 @@ class ApiReportFetcher:
5454
"""Class responsible for getting data from report API.
5555
5656
Attributes:
57-
api_client: a client used for connecting to API.
58-
parser: Type of parser to convert API response.
57+
api_client: Client used for connecting to API.
58+
parser: Class of parser to convert API response.
5959
query_specification_builder: Class to perform query parsing.
60+
builtin_queries:
61+
Mapping between query name and function for generating GarfReport.
6062
"""
6163

6264
def __init__(
6365
self,
64-
api_client: api_clients.BaseApiClient,
65-
parser: parsers.BaseParser = parsers.DictParser,
66-
query_specification_builder: query_editor.QuerySpecification = (
66+
api_client: api_clients.BaseClient,
67+
parser: type[parsers.BaseParser] = parsers.DictParser,
68+
query_specification_builder: type[query_editor.QuerySpecification] = (
6769
query_editor.QuerySpecification
6870
),
6971
builtin_queries: dict[str, Callable[[ApiReportFetcher], report.GarfReport]]

0 commit comments

Comments
 (0)