From c69d603fc4001a6707d492ca7a67ee5fea50c2ec Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Sat, 10 Feb 2024 18:31:33 +0100 Subject: [PATCH] Fix `OnFileCallback` type (#106) --- multipart/multipart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multipart/multipart.py b/multipart/multipart.py index 3adf9ac..21d9ac1 100644 --- a/multipart/multipart.py +++ b/multipart/multipart.py @@ -77,7 +77,7 @@ def __init__(self, file_name: bytes | None, field_name: bytes | None, config: Fi ... OnFieldCallback = Callable[[FieldProtocol], None] - OnFileCallback = Callable[[FieldProtocol], None] + OnFileCallback = Callable[[FileProtocol], None] # Unique missing object.