Skip to content

Commit d2e1ce9

Browse files
committed
fix(mypy): add type ignore comment for File class FieldInfo inheritance
Add type: ignore[misc] comment to suppress mypy error about inheriting from final FieldInfo class in Pydantic. This matches the upstream pattern used for similar classes and allows the code to pass mypy type checking in Python 3.10+. - Fix mypy error: Cannot inherit from final class 'FieldInfo' - Matches upstream _File class pattern with type ignore - All tests passing (25/25) - All quality checks passing (format, lint, mypy)
1 parent c146abe commit d2e1ce9

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

aws_lambda_powertools/event_handler/openapi/params.py

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

949949

950-
class File(Form):
950+
class File(Form): # type: ignore[misc]
951951
"""
952952
A class used to represent a file parameter in a path operation.
953953
"""

0 commit comments

Comments
 (0)