Skip to content

Commit

Permalink
Added comment to data_source class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danidite committed Jan 16, 2024
1 parent 66370f4 commit b131124
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def setup(self, *args: typing.Any, **kwargs: typing.Any) -> None:
raise NotImplementedError

@abstractmethod
def get_value(self, *args: typing.Any, **kwargs: typing.Any) -> typing.Any: # Doesnt have to be float
def get_value(self, *args: typing.Any, **kwargs: typing.Any) -> typing.Any:
# Doesnt have to be float, data_sources do not enforce the type of
# data they contain to be any specific type, as doing so limit their flexibility.
"""
This function is responsible for retrieving a single value from a source.
"""
Expand Down

0 comments on commit b131124

Please sign in to comment.