Skip to content

Commit

Permalink
Add _country_metadata default implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreenbury committed Jul 1, 2024
1 parent 9d3c758 commit 7921e90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions python/popgetter/assets/country.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ def country_metadata(context):

return country_metadata

@abstractmethod
def _country_metadata(self, context) -> CountryMetadata:
...
def _country_metadata(self, _context) -> CountryMetadata:
return self.country_metadata

def create_data_publisher(self):
"""Creates an asset providing the data publisher metadata."""
Expand Down
3 changes: 0 additions & 3 deletions python/popgetter/assets/gb_nir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,6 @@ class NorthernIreland(Country):
geo_levels: ClassVar[list[str]] = list(NI_GEO_LEVELS.keys())
tables_to_process: list[str] | None = TABLES_TO_PROCESS

def _country_metadata(self, _context) -> CountryMetadata:
return self.country_metadata

def _data_publisher(
self, _context, country_metadata: CountryMetadata
) -> DataPublisher:
Expand Down

0 comments on commit 7921e90

Please sign in to comment.