Skip to content

Commit 98ad247

Browse files
committed
Fix mypy linter errors
1 parent b6cbc8a commit 98ad247

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/https_flask/functions/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def httpsflaskexample(request):
2525
return entrypoint(app, request)
2626

2727
@https_fn.on_call()
28-
def callableexample(request: https_fn.Request):
28+
def callableexample(request: https_fn.CallableRequest):
2929
return request.data
3030

3131
@https_fn.on_call()
32-
def streamingcallable(request: https_fn.Request):
32+
def streamingcallable(request: https_fn.CallableRequest):
3333
yield "Hello,"
3434
yield "world!"
3535
return request.data

src/firebase_functions/firestore_fn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _firestore_endpoint_handler(
219219
func(database_event_with_auth_context)
220220
else:
221221
# mypy cannot infer that the event type is correct, hence the cast
222-
_typing.cast(_C1 | _C2, func)(database_event)
222+
_typing.cast(_C1 | _C2, func)(database_event) # type: ignore
223223

224224

225225
@_util.copy_func_kwargs(FirestoreOptions)

0 commit comments

Comments
 (0)