[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3970: Type Annotations and updating of function for wormholetesting (was: Type Annotations and refactoring for wormholetesting)
Tahoe-LAFS
trac at tahoe-lafs.org
Tue Feb 21 18:50:45 UTC 2023
#3970: Type Annotations and updating of function 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:
> 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.
New description:
While using mypy with the `--strict` flag to type annotate the
wormholetesting.py file I encountered a function that should be updated in
this file and I thought it might be a good place to start.
Function in question:
`_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.
TODO:
1. Update _verify() function.
2. Type annotate functions.
--
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3970#comment:7>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list