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

Help wanted: stubs needed for six.moves #22

Closed
o11c opened this issue Oct 28, 2015 · 10 comments
Closed

Help wanted: stubs needed for six.moves #22

o11c opened this issue Oct 28, 2015 · 10 comments
Labels
stubs: incomplete Annotations or sub-modules missing from an existing package or module

Comments

@o11c
Copy link
Contributor

o11c commented Oct 28, 2015

Some of these might be implemented for the opposite python version, or located in the wrong module for the given version.

Python2:

  • attribute urllib.proxy_bypass
  • module BaseHTTPServer
  • module CGIHTTPServer
  • module ConfigParser
  • module Cookie
  • module Dialog
  • module FileDialog
  • module HTMLParser
  • module ScrolledText
  • module SimpleDialog
  • module SimpleHTTPServer
  • module SimpleXMLRPCServer
  • module SocketServer
  • module Tix
  • module Tkconstants
  • module Tkdnd
  • module Tkinter
  • module UserList
  • module UserString
  • module cookielib
  • module copy_reg
  • module dummy_thread
  • module email.MIMEBase
  • module email.MIMEMultipart
  • module email.MIMENonMultipart
  • module gdbm
  • module repr
  • module robotparser
  • module tkColorChooser
  • module tkCommonDialog
  • module tkFileDialog
  • module tkFont
  • module tkMessageBox
  • module tkSimpleDialog
  • module ttk
  • module urllib2
  • module xmlrpclib

Python3:

  • attribute urllib.request.AbstractBasicAuthHandler
  • attribute urllib.request.AbstractDigestAuthHandler
  • attribute urllib.request.CacheFTPHandler
  • attribute urllib.error.ContentTooShortError
  • attribute urllib.request.FTPHandler
  • attribute urllib.request.FancyURLopener
  • attribute urllib.request.FileHandler
  • attribute urllib.request.HTTPBasicAuthHandler
  • attribute urllib.request.HTTPCookieProcessor
  • attribute urllib.request.HTTPDefaultErrorHandler
  • attribute urllib.request.HTTPDigestAuthHandler
  • attribute urllib.request.HTTPErrorProcessor
  • attribute urllib.request.HTTPHandler
  • attribute urllib.request.HTTPPasswordMgr
  • attribute urllib.request.HTTPPasswordMgrWithDefaultRealm
  • attribute urllib.request.HTTPSHandler
  • attribute urllib.request.ProxyBasicAuthHandler
  • attribute urllib.request.ProxyDigestAuthHandler
  • attribute urllib.request.ProxyHandler
  • attribute urllib.request.Request
  • attribute urllib.request.URLopener
  • attribute urllib.request.UnknownHandler
  • attribute urllib.request.getproxies
  • attribute urllib.request.pathname2url
  • attribute urllib.request.proxy_bypass
  • attribute urllib.request.url2pathname
  • attribute urllib.request.urlcleanup
  • attribute urllib.request.urlopen
  • attribute urllib.request.urlretrieve
  • module configparser
  • module copyreg
  • module dbm.gnu
  • module html.entities
  • module html.parser
  • module http.cookies
  • module http.server
  • module reprlib
  • module tkinter
  • module tkinter.colorchooser
  • module tkinter.commondialog
  • module tkinter.constants
  • module tkinter.dialog
  • module tkinter.dnd
  • module tkinter.filedialog
  • module tkinter.font
  • module tkinter.messagebox
  • module tkinter.scrolledtext
  • module tkinter.simpledialog
  • module tkinter.tix
  • module tkinter.ttk
  • module urllib.response
  • module urllib.robotparser
  • module xmlrpc.client
  • module xmlrpc.server
@o11c
Copy link
Contributor Author

o11c commented Oct 28, 2015

To test:

@gvanrossum
Copy link
Member

See #61 for a start!

@mgeisler
Copy link
Contributor

I wrote stubs for configparser in #116. I'm unsure how it relates to this issue, if at all?

@gvanrossum
Copy link
Member

It's probably a requirement because six.moves mentions it.

momandine pushed a commit to momandine/typeshed that referenced this issue Jul 5, 2016
@asottile
Copy link
Contributor

Probably a dupe or dupe target of #66

@gvanrossum
Copy link
Member

It's a sub-task of #66 (it's mentioned in the bullet list there).

@srittau srittau added the stubs: incomplete Annotations or sub-modules missing from an existing package or module label Oct 27, 2018
@cclauss
Copy link

cclauss commented May 7, 2019

+1 for a fix to error: Module 'tkinter' has no attribute 'dnd'

tkinter.dnd is marked as experimental but it still ships in Python and it still works.

@JelleZijlstra
Copy link
Member

PRs are welcome!

srittau pushed a commit that referenced this issue Aug 19, 2019
This commit adds:
* Stubs for CGIHTTPServer in the Python 2 standard library, as requested in #1147.
* Stubs for six.moves.CGIHTTPServer in Python 2, as requested in #22.
@srittau
Copy link
Collaborator

srittau commented Sep 17, 2020

six.moves exists in typeshed for both Python 2 and 3.

@srittau srittau closed this as completed Sep 17, 2020
@dthkao
Copy link
Contributor

dthkao commented Sep 17, 2020

It exists but AIUI many of the names in six.moves are not fully stubbed out, hence the reason for the bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stubs: incomplete Annotations or sub-modules missing from an existing package or module
Projects
None yet
Development

No branches or pull requests

8 participants