Sitelet https://web.archive.org/web/20201210054311/https://github.com/pyrogram/pyrogram/issues/522
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve filters.create type annotations #522

Open
JosXa opened this issue Oct 25, 2020 · 0 comments
Open

Improve filters.create type annotations #522

JosXa opened this issue Oct 25, 2020 · 0 comments

Comments

@JosXa
Copy link
Contributor

@JosXa JosXa commented Oct 25, 2020

def create(func: Callable, name: str = None, **kwargs) -> Filter:

A function that accepts two positional arguments *(filter, update)* and returns a boolean: True if the

How about Callable[[Filter, Update], bool]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.