Skip to content
#

typing

Here are 302 public repositories matching this topic...

ksamuel
ksamuel commented Apr 4, 2020

I'm currently trying to type an API using the signal module. At some point, we pass a callback that has the type signal._Handler (see: https://github.com/python/typeshed/blob/master/stdlib/3/signal.pyi#L73), which is not in the signal module, but in typeshed.

If I try to import it, I get an error, and I could not find the proper way to do so in the documentation.

Dreamsorcerer
Dreamsorcerer commented Apr 26, 2020

When I run flake8, I just get a bunch of these errors and nothing else from mypy:

/home/ubuntu/.local/lib/python3.6/site-packages is in the MYPYPATH. Please remove it.
See https://mypy.readthedocs.io/en/latest/running_mypy.html#how-mypy-handles-imports for more info

Improve this page

Add a description, image, and links to the typing topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the typing topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.