Skip to content

Commit 09e57b8

Browse files
committed
Copy over previous docstring
1 parent 82f7340 commit 09e57b8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

flask_restx/swagger.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ def extract_path(path):
8989

9090
def parse_rule(rule):
9191
"""
92-
This originally lived in werkzeug.routing.parse_rule until it was removed in werkzeug 2.2.0. Copying it here to
93-
avoid depending on the older version of werkzeug.
92+
Parse a rule and return it as generator. Each iteration yields tuples in the form
93+
``(converter, arguments, variable)``. If the converter is `None` it's a static url part, otherwise it's a dynamic
94+
one.
95+
96+
Note: This originally lived in werkzeug.routing.parse_rule until it was removed in werkzeug 2.2.0.
9497
"""
9598
pos = 0
9699
end = len(rule)

0 commit comments

Comments
 (0)