From 38d61262c89ca97d1be01b0dc1f0cb4763f2962b Mon Sep 17 00:00:00 2001 From: Chris Haumesser <5400416-wryfi@users.noreply.gitlab.com> Date: Mon, 11 Apr 2022 19:08:57 -0700 Subject: [PATCH] fix issues w/ python 3.8 typing --- ChangeLog | 5 +++++ cfitall/providers/filesystem.py | 2 +- cfitall/registry.py | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e59a167..6caf1d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ CHANGES ======= +* rtd +* rtd +* rtd +* typo +* rtd updates * remove old python versions * try to fix docs theme * try to fix docs theme diff --git a/cfitall/providers/filesystem.py b/cfitall/providers/filesystem.py index 18e8096..a1695bd 100644 --- a/cfitall/providers/filesystem.py +++ b/cfitall/providers/filesystem.py @@ -21,7 +21,7 @@ class FilesystemProvider(ConfigProviderBase): prefix: str def __init__( - self, path: list[str], prefix: str, provider_name: str = "filesystem" + self, path: List[str], prefix: str, provider_name: str = "filesystem" ) -> None: """ FilesystemProvider attempts to read json or yaml configuration files diff --git a/cfitall/registry.py b/cfitall/registry.py index 2d154ed..e78bdfc 100644 --- a/cfitall/registry.py +++ b/cfitall/registry.py @@ -72,7 +72,7 @@ def all(self) -> Dict: return values @property - def config_keys(self) -> list[str]: + def config_keys(self) -> List[str]: """ Returns a list of currently used configuration keys as dotted paths, for use with the get() or set() methods. @@ -88,7 +88,7 @@ def dict(self) -> Dict: return self._merge_configs() @property - def env_vars(self) -> list[str]: + def env_vars(self) -> List[str]: """ Returns a list of environment variables known from config files and defaults """