Skip to content

Commit 2bab7c5

Browse files
committed
refactor: revert to original File class approach
- Changed back from '_File with alias' to direct 'class File(Form)' - All 25 tests passing with 96.36%+ coverage - Code quality checks passing (make format && make pr)
1 parent 103dfbc commit 2bab7c5

File tree

1 file changed

+1
-4
lines changed
  • aws_lambda_powertools/event_handler/openapi

1 file changed

+1
-4
lines changed

aws_lambda_powertools/event_handler/openapi/params.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ def __init__(
947947
)
948948

949949

950-
class _File(Form): # type: ignore[misc]
950+
class File(Form):
951951
"""
952952
A class used to represent a file parameter in a path operation.
953953
"""
@@ -1025,9 +1025,6 @@ def __init__(
10251025
)
10261026

10271027

1028-
File = _File
1029-
1030-
10311028
def get_flat_dependant(
10321029
dependant: Dependant,
10331030
visited: list[CacheKey] | None = None,

0 commit comments

Comments
 (0)