Skip to content

Commit

Permalink
Update type annotations for Python 3.7/3.8 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Dec 31, 2024
1 parent 0008315 commit 5e79074
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyklatchat_utils/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from abc import ABC, abstractmethod

from os.path import join, dirname
from typing import Tuple, Optional

# from neon_utils.log_aggregators import init_log_aggregators
from ovos_config.config import Configuration
Expand All @@ -43,7 +44,7 @@ class KlatConfigurationBase(ABC):
"""Generic configuration module"""

def __init__(self):
self._config_data: dict = None
self._config_data: Optional[dict] = None
self._init_ovos_config()
if not self._config_data:
LOG.warning(
Expand Down Expand Up @@ -81,7 +82,7 @@ def validate_provided_configuration(self):

@property
@abstractmethod
def required_sub_keys(self) -> tuple[str]:
def required_sub_keys(self) -> Tuple[str]:
pass

@property
Expand Down

0 comments on commit 5e79074

Please sign in to comment.