From 424c77fd2c1077c538c1d032b11fbd87b1c8332a Mon Sep 17 00:00:00 2001 From: Waffle Date: Sun, 27 May 2018 16:54:56 +0300 Subject: [PATCH] Remove type hint for 2.x and PyPy python compatibility --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 422ac36..ca7e92f 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -34,7 +34,7 @@ class Handler: """ Class for (next step|reply) handlers """ - def __init__(self, callback: 'function', *args, **kwargs): + def __init__(self, callback, *args, **kwargs): self.callback = callback self.args = args self.kwargs = kwargs