You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The subscriber method of the KafkaRouter class is annotated with the return type AsyncAPIDefaultSubscriber, but the actual return type is function.
How to reproduce
Include source code:
fromfastapiimportFastAPIfromfaststream.kafka.fastapiimportKafkaRouterrouter=KafkaRouter()
subscriber=router.subscriber('test_in')
print(f'real type is {type(subscriber)}')
app=FastAPI(lifespan=router.lifespan_context)
app.include_router(router)
And/Or steps to reproduce the behavior:
Execute the above code
The text was updated successfully, but these errors were encountered:
Describe the bug
The subscriber method of the KafkaRouter class is annotated with the return type AsyncAPIDefaultSubscriber, but the actual return type is function.
How to reproduce
Include source code:
And/Or steps to reproduce the behavior:
Execute the above code
The text was updated successfully, but these errors were encountered: