Skip to content

Commit

Permalink
community: clear mypy syntax warning in openapi (#27370)
Browse files Browse the repository at this point in the history
not completely clear the regex is functional
  • Loading branch information
efriis authored Oct 15, 2024
1 parent 443b374 commit 3fa5ce3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def _create_and_run_api_controller_agent(plan_str: str) -> str:
for endpoint_name in endpoint_names:
found_match = False
for name, _, docs in api_spec.endpoints:
regex_name = re.compile(re.sub("\{.*?\}", ".*", name))
regex_name = re.compile(re.sub("\\{.*?\\}", ".*", name))
if regex_name.match(endpoint_name):
found_match = True
docs_str += f"== Docs for {endpoint_name} == \n{yaml.dump(docs)}\n"
Expand Down

0 comments on commit 3fa5ce3

Please sign in to comment.