-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
Steps to reproduce
-
import python-telegram-bot modules into your
test.pyfile (e.g.from telegram import InlineKeyboardMarkup) -
run
mypy test.py -
receive the following output
error: Skipping analyzing 'telegram': found module but no type hints or library stubs
Expected behaviour
mypy should pickup the typehints as they've been added in the latest release (version 13 )
Actual behaviour
mypy doesn't pickup the typehints.
I'm confident this can be solved by either
- adding
python-telegram-bottotypeshed - adding a
py.typedfile
More information can be found here.
Configuration
Operating System:
Ubuntu 18.04
Version of Python, python-telegram-bot & dependencies:
$ python -m telegram
python-telegram-bot 13.0
certifi 2020.06.20
Python 3.8.0 (default, Oct 30 2020, 19:06:04) [GCC 7.5.0]
Logs
error: Skipping analyzing 'telegram.ext': found module but no type hints or library stubs
note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
error: Skipping analyzing 'telegram': found module but no type hints or library stubs
error: Skipping analyzing 'telegram.ext': found module but no type hints or library stubs
error: Skipping analyzing 'telegram': found module but no type hints or library stubs
Metadata
Metadata
Assignees
Labels
No labels