Fix Type Hint for filters Parameter of MessageHandler (#4039)

This commit is contained in:
Palaptin 2024-01-01 15:58:50 +01:00 committed by GitHub
parent 57c2f6e01e
commit c33c541cbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ class MessageHandler(BaseHandler[Update, CCT]):
def __init__(
self,
filters: filters_module.BaseFilter,
filters: Optional[filters_module.BaseFilter],
callback: HandlerCallback[Update, CCT, RT],
block: DVType[bool] = DEFAULT_TRUE,
):