Skip to content

Commit

Permalink
Update docstring of connexion.ConnexionMiddleware.add_api (#2030)
Browse files Browse the repository at this point in the history
Changes proposed in this pull request:
- Update docstring of `connexion.ConnexionMiddleware.add_api` to match
return value to actual return.

---------

Co-authored-by: Ruwann <[email protected]>
  • Loading branch information
bastantoine and Ruwann authored Feb 1, 2025
1 parent 550ba1a commit 1d4bb81
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions connexion/middleware/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,6 @@ def add_api(
:param kwargs: Additional keyword arguments to pass to the `add_api` method of the managed
middlewares. This can be used to pass arguments to middlewares added beyond the default
ones.
:return: The Api registered on the wrapped application.
"""
if self.middleware_stack is not None:
raise RuntimeError("Cannot add api after an application has started")
Expand Down

0 comments on commit 1d4bb81

Please sign in to comment.