Skip to content

Commit 38fc989

Browse files
[core] chore: allow Api response be of any type
1 parent 413b54f commit 38fc989

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libs/core/garf_core/api_clients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
class GarfApiResponse(pydantic.BaseModel):
4040
"""Base class for specifying response."""
4141

42-
results: list[ApiResponseRow]
42+
results: list[ApiResponseRow | Any]
4343

4444
def __bool__(self) -> bool:
4545
return bool(self.results)

libs/core/garf_core/parsers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ class BaseParser(abc.ABC):
4444
"""An interface for all parsers to implement."""
4545

4646
def __init__(
47-
self, query_specification: query_editor.BaseQueryElements
47+
self, query_specification: query_editor.BaseQueryElements, **kwargs: str
4848
) -> None:
4949
"""Initializes BaseParser."""
5050
self.query_spec = query_specification
51+
self.kwargs = kwargs
5152

5253
def parse_response(
5354
self,

0 commit comments

Comments
 (0)