diff --git a/pygeoapi/api.py b/pygeoapi/api.py index cb42ee3..408f9c4 100644 --- a/pygeoapi/api.py +++ b/pygeoapi/api.py @@ -92,7 +92,7 @@ def pre_process(func): return inner -class API(object): +class API: """API object""" def __init__(self, config): diff --git a/pygeoapi/formatter/base.py b/pygeoapi/formatter/base.py index a0c761e..62e73e8 100644 --- a/pygeoapi/formatter/base.py +++ b/pygeoapi/formatter/base.py @@ -32,7 +32,7 @@ import logging LOGGER = logging.getLogger(__name__) -class BaseFormatter(object): +class BaseFormatter: """generic Formatter ABC""" def __init__(self, formatter_def): diff --git a/pygeoapi/process/base.py b/pygeoapi/process/base.py index 5ef613d..7501d0a 100644 --- a/pygeoapi/process/base.py +++ b/pygeoapi/process/base.py @@ -32,7 +32,7 @@ import logging LOGGER = logging.getLogger(__name__) -class BaseProcessor(object): +class BaseProcessor: """generic Processor ABC. Processes are inherited from this class""" def __init__(self, processor_def, process_metadata): diff --git a/pygeoapi/provider/base.py b/pygeoapi/provider/base.py index 24e8ef5..da61bae 100644 --- a/pygeoapi/provider/base.py +++ b/pygeoapi/provider/base.py @@ -32,7 +32,7 @@ import logging LOGGER = logging.getLogger(__name__) -class BaseProvider(object): +class BaseProvider: """generic Provider ABC""" def __init__(self, provider_def): diff --git a/pygeoapi/provider/postgresql.py b/pygeoapi/provider/postgresql.py index 54a9eeb..d0665d6 100644 --- a/pygeoapi/provider/postgresql.py +++ b/pygeoapi/provider/postgresql.py @@ -55,7 +55,7 @@ from psycopg2.extras import RealDictCursor LOGGER = logging.getLogger(__name__) -class DatabaseConnection(object): +class DatabaseConnection: """Database connection class to be used as 'with' statement. The class returns a connection object. """