[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3970: Type Annotations for wormholetesting

Tahoe-LAFS trac at tahoe-lafs.org
Fri Feb 17 22:34:39 UTC 2023


#3970: Type Annotations for wormholetesting
-----------------------------+--------------------------------------
     Reporter:  daniellee    |      Owner:  daniellee
         Type:  enhancement  |     Status:  assigned
     Priority:  minor        |  Milestone:  User Documentation Goals
    Component:  unknown      |    Version:  n/a
   Resolution:               |   Keywords:  Type Annotations
Launchpad Bug:               |
-----------------------------+--------------------------------------
Description changed by daniellee:

Old description:

> wormholetesting.py seems to throw a lot of errors when using mypy
> --strict. I think this is a good place to start type annotations as it
> not related to that many other files.

New description:

 Using mypy with the `--strict` flag to type annotate file I encountered a
 candidate for refactoring in this file and I thought it might be a good
 place to start. There is not much to type annotate.

 `_verify()` function uses a deprecated function `getargspec()`. We aim to
 update this function to use the new `getfullargspec()` and yet maintain
 the strictness of the check.

--

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3970#comment:5>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list