Skip to content

Commit

Permalink
Applied a fix to the extract method of the RCore class to remove …
Browse files Browse the repository at this point in the history
…the list item subtyping declarations.
  • Loading branch information
AzorianMatt committed Jan 17, 2024
1 parent ec06b42 commit 0bf3a4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reflective/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0bf3a4a

Please sign in to comment.