Skip to content

Commit bef469e

Browse files
authored
Fix: add doc string to function
1 parent d034e28 commit bef469e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/schemas.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
###################
2121

2222
def hyphen_to_underscore(field_name):
23-
return f"{field_name}".replace("_", "-")
23+
''' Replaces hyphen with underscore '''
24+
return f"{field_name}".replace("-", "_")
2425

2526
class FeatureLabels(str, Enum):
2627
''' Delivers the feature names as needed in Python '''

0 commit comments

Comments
 (0)