Skip to content

Commit

Permalink
fix uts
Browse files Browse the repository at this point in the history
  • Loading branch information
cs_lucky committed Oct 23, 2023
1 parent d404087 commit f166f7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/promptflow/promptflow/_utils/connection_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ def extract_comments_mapping(keys, doc):
param_pattern = rf":param {key}: (.*)"
key_description = " ".join(re.findall(param_pattern, doc))
type_pattern = rf":type {key}: (.*)"
key_type = " ".join(re.findall(type_pattern, doc)).rstrip(".") + " type."
key_type = " ".join(re.findall(type_pattern, doc)).rstrip(".")
if key_type and key_description:
comments_map[key] = " ".join([key_type, key_description])
comments_map[key] = " ".join([key_type + " type.", key_description])
elif key_type:
comments_map[key] = key_type
comments_map[key] = key_type + " type."
elif key_description:
comments_map[key] = key_description
except re.error:
Expand Down

0 comments on commit f166f7a

Please sign in to comment.