Skip to content

Commit 1aae45f

Browse files
fix(event-handler): add missing from __future__ import annotations in oauth2.py
Add `from __future__ import annotations` to enable PEP 604 union syntax (X | None) for Python versions below 3.10. Fixes FA102 ruff lint errors: - aws_lambda_powertools/event_handler/openapi/swagger_ui/oauth2.py:50 Part of #8088 Signed-off-by: hirenkumar-n-dholariya <hirenkumarnd@gmail.com>
1 parent 67d5309 commit 1aae45f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • aws_lambda_powertools/event_handler/openapi/swagger_ui

aws_lambda_powertools/event_handler/openapi/swagger_ui/oauth2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# ruff: noqa: E501 FA100
2+
from __future__ import annotations
3+
24
import warnings
35
from typing import Sequence
46

0 commit comments

Comments
 (0)