Skip to content

Commit

Permalink
fix(general): Mypy issues (#6510)
Browse files Browse the repository at this point in the history
* Mypy issues

* Mypy issues
  • Loading branch information
ChanochShayner authored Jun 30, 2024
1 parent a253acb commit b491184
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
EXPORT_DEFAULT_PATTERN = r'export\s*default\s*({.*?});'


def load_json_with_comments(json_str: str) -> dict:
def load_json_with_comments(json_str: str) -> Any:
# Regular expression to remove comments (both single line and multi-line)
pattern = r'(?<!\\)(["\'])(?:(?=(\\?))\2.)*?\1|//.*?$|/\*[\s\S]*?\*/'
regex = re.compile(pattern, re.MULTILINE)
Expand Down

0 comments on commit b491184

Please sign in to comment.