Skip to content

Commit

Permalink
Issue #112 Improve return type hint of get_backend_config
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Feb 8, 2024
1 parent 0864205 commit d5da115
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/openeo_aggregator/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ class AggregatorBackendConfig(OpenEoBackendConfig):
streaming_chunk_size: int = STREAM_CHUNK_SIZE_DEFAULT



# Internal singleton
_config_getter = ConfigGetter(expected_class=AggregatorBackendConfig)

get_backend_config: Callable[..., AggregatorBackendConfig] = _config_getter.get

def get_backend_config() -> AggregatorBackendConfig:
"""Public config getter"""
return _config_getter.get()

0 comments on commit d5da115

Please sign in to comment.