mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
To support "from six.moves.cPickle import loads", we must add a stub for six.moves.cPickle as if it were a real submodule, even though it isn't implemented as such. This fixes python/mypy#1550. We don't apply this approach to six.moves.builtins on Python 2, because it seems to confuse mypy. We also add stubs for aliases in six.moves whose underlying modules have been added to typeshed. For Python 2: - six.moves.SimpleHTTPServer (alias for SimpleHTTPServer) For Python 3: - six.moves.tkinter_dialog (alias for tkinter.dialog) - six.moves.tkinter_filedialog (alias for tkinter.filedialog) - six.moves.tkinter_commondialog (alias for tkinter.commondialog) - six.moves.tkinter_tkfiledialog (alias for tkinter.filedialog)