Skip to content

Commit fbdc5ca

Browse files
committed
fix: remove unused code
1 parent cd16a8e commit fbdc5ca

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

-5
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
Server,
8888
Tag,
8989
)
90-
from aws_lambda_powertools.event_handler.openapi.oauth2 import OAuth2Config
9190
from aws_lambda_powertools.event_handler.openapi.params import Dependant
9291
from aws_lambda_powertools.event_handler.openapi.types import (
9392
TypeModelOrEnum,
@@ -1670,7 +1669,6 @@ def enable_swagger(
16701669
contact: Optional["Contact"] = None,
16711670
license_info: Optional["License"] = None,
16721671
swagger_base_url: Optional[str] = None,
1673-
oauth2: Optional["OAuth2Config"] = None,
16741672
middlewares: Optional[List[Callable[..., Response]]] = None,
16751673
compress: bool = False,
16761674
):
@@ -1703,8 +1701,6 @@ def enable_swagger(
17031701
The license information for the exposed API.
17041702
swagger_base_url: str, optional
17051703
The base url for the swagger UI. If not provided, we will serve a recent version of the Swagger UI.
1706-
oauth2: OAuth2Config, optional
1707-
The OAuth2 configuration for the Swagger UI.
17081704
middlewares: List[Callable[..., Response]], optional
17091705
List of middlewares to be used for the swagger route.
17101706
compress: bool, default = False
@@ -1769,7 +1765,6 @@ def swagger_handler():
17691765
swagger_js,
17701766
swagger_css,
17711767
swagger_base_url,
1772-
oauth2,
17731768
)
17741769

17751770
return Response(

0 commit comments

Comments
 (0)