dlee
61c835c8a0
Added missing space between return type
2023-03-13 11:17:01 -05:00
dlee
74ff8cd080
Per-file configuration for wormholetesting.py moved from inline mypy configuration moved to mypy.ini file
2023-03-13 11:04:52 -05:00
dlee
4f47a18c6a
Comments added for inline mypy config. Individual flags used as --strict flag can only be used on a per-module basis.
2023-03-08 15:29:50 -06:00
dlee
10b3eabed4
Apply per file flags corresponding to --strict to wormholetesting.py
2023-03-08 15:19:08 -06:00
dlee
8ccbd37d29
Fix implicit re-export error by importing IWormhole from wormhole library directly
2023-03-08 15:16:03 -06:00
dlee
582876197a
Added default check to verify to ensure strictness
2023-02-27 15:14:58 -06:00
dlee
af51b02228
Revert wait_for_wormhole function return type back to Awaitable for forward compatibility when we move to async def
2023-02-27 15:05:52 -06:00
dlee
86dbcb21ce
Refactored verify function to update deprecated getargspec function with getfullargspec and maintained strictness
2023-02-17 16:24:32 -06:00
dlee
badba97ff2
Type annotations added for wormholetesting.py
2023-02-17 16:20:29 -06:00
dlee
a7ddcbf868
Changes requested
2023-02-14 12:50:37 -06:00
dlee
b7cadfc53a
Fixes bad practice of naming variable a built-in type
2023-02-14 11:38:35 -06:00
dlee
19e58f19ca
Fixes truthy conditional
2023-02-14 11:21:57 -06:00
dlee
eb26c97ef7
implicit_optional flag added and errors related to flag fixed
2023-02-06 15:29:53 -06:00
dlee
31c5b78e6a
Add back rsa.py accidentally removed file on website
2023-02-03 21:35:55 -06:00
Daniel
80db4a9de4
Delete rsa.py
2023-02-03 21:25:24 -06:00
dlee
e2e33933a8
Forgot to push newsfragment
2023-02-03 16:48:06 -06:00
Jean-Paul Calderone
e2eac5855c
Remove handling for older versions of pycddl
...
>=0.4 is now a hard-requirement
2023-01-23 08:52:00 -05:00
Jean-Paul Calderone
1a807a0232
mollify the type checker
2023-01-12 16:32:32 -05:00
Jean-Paul Calderone
d5628f9c84
Merge remote-tracking branch 'origin/master' into 3962.pre-determined-rsa-keys
2023-01-12 16:17:09 -05:00
Jean-Paul Calderone
c856f1aa29
Censor private key values in the HTTP log, too.
2023-01-12 16:16:55 -05:00
Jean-Paul Calderone
47ec418f7a
Test that we can also download the mutable data via the web interface
2023-01-12 16:09:29 -05:00
Jean-Paul Calderone
e6ef45d337
test that we can also download the mutable
2023-01-12 15:37:12 -05:00
Jean-Paul Calderone
2d23e2e640
some doc improvements
2023-01-12 15:37:07 -05:00
Jean-Paul Calderone
2490f0f58a
some minor rationalization of the return type
2023-01-12 15:33:37 -05:00
Itamar Turner-Trauring
828fc588c5
Add minimal docstrings.
2023-01-10 11:10:31 -05:00
Itamar Turner-Trauring
ccb5956645
0 is also valid FD.
2023-01-10 11:04:22 -05:00
Itamar Turner-Trauring
7c506057b5
Merge remote-tracking branch 'origin/master' into 3956-mutable-uploads
2023-01-09 17:05:31 -05:00
Itamar Turner-Trauring
f6d9c5a1b2
Fix PyInstaller.
2023-01-09 10:46:09 -05:00
Itamar Turner-Trauring
22227c7094
Support old pycddl too so nix can keep working.
2023-01-09 10:31:48 -05:00
Jean-Paul Calderone
3ce5ee6f03
get Literal from somewhere it is more likely to be
2023-01-07 07:17:40 -05:00
Jean-Paul Calderone
e893d06cb3
RSAPrivateKey certainly does have this method
...
I don't know why mypy fails to see it.
2023-01-06 21:00:21 -05:00
Jean-Paul Calderone
8c56ccad72
fall back to *with* validation, not without
2023-01-06 21:00:10 -05:00
Jean-Paul Calderone
85234b07a0
load the right kind of key!
2023-01-06 21:00:04 -05:00
Jean-Paul Calderone
c9e23dea13
we should always be able to get these
...
and we always need overload now
2023-01-06 20:59:48 -05:00
Jean-Paul Calderone
a806b2faba
Fix some more mypy errors
2023-01-06 18:11:47 -05:00
Jean-Paul Calderone
01b14fe05c
Merge remote-tracking branch 'origin/master' into 3962.pre-determined-rsa-keys
2023-01-06 17:30:01 -05:00
Jean-Paul Calderone
2dc6466ef5
fix some errors reported by mypy
2023-01-06 17:12:59 -05:00
Jean-Paul Calderone
e829b891b3
important data file ...
2023-01-06 15:51:59 -05:00
Jean-Paul Calderone
3ff9c45e95
expose the private-key feature in the tahoe put
cli
2023-01-06 15:40:48 -05:00
Jean-Paul Calderone
e236cc95a5
Move get_keypair to a shared location
2023-01-06 15:36:08 -05:00
Jean-Paul Calderone
3423bfb351
Expose the pre-constructed keypair functionality to the HTTP API
2023-01-03 11:31:29 -05:00
Jean-Paul Calderone
c7bb190290
Factor some SSK "signature" key handling code into a more reusable shape
...
This gives the test suite access to the derivation function so it can
re-derive certain values to use as expected results to compare against actual
results.
2023-01-03 10:38:18 -05:00
Jean-Paul Calderone
5bad92cfc5
Another Python 2 remnant cleanup
2023-01-03 10:34:39 -05:00
Jean-Paul Calderone
a58d8a567a
Clean up some more Python 2 remnants
2023-01-03 10:33:37 -05:00
Jean-Paul Calderone
6b58b66677
Clean up some Python 2 remnants
2023-01-03 10:32:03 -05:00
Jean-Paul Calderone
f6d9c33526
Give slightly better error messages from rsa key validation failure
2023-01-03 10:28:59 -05:00
Jean-Paul Calderone
23f2d8b019
add some type annotations to allmydata.crypto.rsa
2023-01-03 10:28:32 -05:00
Jean-Paul Calderone
15e22dcc52
Add keypair
to NodeMaker.create_mutable_file
...
Previously `NodeMaker` always took responsibility for generating a keypair to
use. Now the caller may supply one.
2023-01-02 19:29:13 -05:00
Jean-Paul Calderone
3f8bec0ecc
Merge remote-tracking branch 'origin/master' into 3914.faster-rsa-tests
2023-01-02 11:46:10 -05:00
Jean-Paul Calderone
1c643ebbaf
Merge pull request #1237 from tahoe-lafs/3954.faster-http
...
Faster HTTP for immutable downloads
Fixes: ticket:3954
2023-01-02 10:09:55 -05:00