From 89d7ee5b2efd9de4c2338b886c54b40393bc06fd Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Wed, 17 Jan 2024 09:04:10 -0500 Subject: [PATCH] Applied a fix to the `extract` method of the `RCore` class to remove the list item subtyping declarations. (#7) --- src/reflective/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reflective/core.py b/src/reflective/core.py index 19fb3b4..dff3018 100644 --- a/src/reflective/core.py +++ b/src/reflective/core.py @@ -264,10 +264,10 @@ def query(self, query: any, default: any = None) -> 'Reflective': return self.cache[cache_key] - def extract(self, value: str) -> list[str]: + def extract(self, value: str) -> list: """ Extracts the Reflective reference strings from the given string and returns them as a list of strings.""" - references: list[str] = [] + references: list = [] # Process $(r|e){...} references matches = self._ref_pattern.findall(value)