[Twisted-Python] Running tests with monkeytype

Craig Rodrigues rodrigc at crodrigues.org
Sun Jun 21 23:18:54 MDT 2020


On Sat, Jun 20, 2020 at 4:02 PM Tom Most <twm at freecog.net> wrote:

>
> Let's definitely move to type annotations, since they are much more likely
> to be correct due to validation by MyPy.
>
> To start, we'll need to revise the Twisted coding standard [1] to permit
> type annotations instead of @type lines in the docstring. I think that we
> should suggest, but not require, annotation syntax to start. I filed a
> ticket [2] for this.
>
>
Revising the Twisted coding standard to permit (and even encourage) type
annotations is a great idea.
Using epydoc's @type tags in docstring was OK, but epydoc is not
a tool that is universally used in the Python world.  At the time, using
epydoc tags was the best that could be done.
Type annotations are a first-level language feature, that is part of the
core Python toolchain.  There seems to be growing support for type
annotations from various tools, IDE's,
Python libraries, and the core Python toolchain itself.

--
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20200621/4a5a5a6b/attachment.htm>


More information about the Twisted-Python mailing list