What is the type annotation status for Twisted's dependencies?
Support is built into mypy.
No type annotation support yet.
The source code includes partial type information in docstrings and via attrs
.
Used internally, not part of Twisted's public interface.
No type annotation support yet.
Could this be handled just by annotations for the library itself or is a plugin required?
No type annotation support yet, but there is a PR that adds type comments to the code itself.
This is used as an implementation dependency and is not currently part of Twisted's interface except for the backwards compatibility name twisted.python.url.URL
.
No type annotation support yet.
Preferred solution is to add .pyi
files in the package itself.
The source code does include type information in docstrings, which could be harvested to auto-generate stubs.
Type annotations are included in the source code. They will be included in the 2.0 release, not in the current 1.9.0 release.
Only used in test modules, so not relevant to Twisted's stubs.
A plugin for mypy exists.
pyOpenSSL has stubs for Python 2 in typeshed, but not for Python 3.
Some (mainly parameters) type information exists in the docstrings.
Exposed via twisted.protocols.tls
, but mostly used internally.
No type annotation support yet, no signs of any plans either.
Used internally, not part of Twisted's public interface.
Used and exposed in various Conch modules.
Partial stubs exist in typeshed. Discussion on some blocking issues here.
Used internally in twisted.conch.ssh.keys
.
Used internally in twisted.conch.ssh.keys
.
Used internally in twisted.conch.manhole_tap
.
No type annotation support yet. The developers seem interested in adding support in the future.
Some type information exists in the docstrings.
Exposed as part of twisted.web.http.H2Connection
.
No releases since 2014, README suggests using a different library.
Main library doesn't support Python 3, but there is a fork that does. See also #9624.
Used by twisted.web.soap
.
No type annotation support yet, no signs of any plans either.
Used by twisted.internet.serialport
. Some constants are exposed but all uses of the serial.Serial
class seem to be wrapped.
No type annotation support yet.
Exposed as part of Twisted's Win32 reactor, see twisted.internet.interfaces.IReactorWin32Events
.
Used internally in a handful of modules.
No type annotation support yet, but it is being considered.
Exposed as part of twisted.internet.cfreactor.CFReactor
.
Is Cocoa actually used by Twisted?