Itamar Turner-Trauring
00b7e7e178
More type annotations.
2023-07-28 13:48:43 -04:00
Itamar Turner-Trauring
0d0e32646f
More type annotations.
2023-07-28 13:42:00 -04:00
Itamar Turner-Trauring
d669099a35
Add more type annotations.
2023-07-28 13:31:53 -04:00
Itamar Turner-Trauring
919e6b339d
Add type annotation to _authorized_route
2023-07-28 13:19:53 -04:00
Itamar Turner-Trauring
2b7f3d1707
Add type annotations to _authorization_decorator
.
2023-07-28 11:28:13 -04:00
Itamar Turner-Trauring
849f4ed2a5
More annotations.
2023-07-28 11:14:09 -04:00
Itamar Turner-Trauring
46d10a6281
Ensure and test (and necessary refactor) that lack of content-type is same as
...
CBOR content-type, as per spec.
2023-07-25 15:31:30 -04:00
Itamar Turner-Trauring
bf2451bbcd
Correct type.
2023-07-25 15:31:18 -04:00
Itamar Turner-Trauring
9abc3730a0
Revert "suppress the new click mypy errors", Click 8.1.6 fixed the issue.
...
This reverts commit dfd34cfc0b8a4fccb5e39f2b825442b662a0a2fb.
2023-07-21 11:03:48 -04:00
Jean-Paul Calderone
8b8903c44f
Merge pull request #1283 from exarkun/clean-up-tor-and-i2p-providers
...
Abstract over some configuration manipulation done by `write_node_config` in `create_node.py`
Fixes: ticket:4004
2023-07-21 09:31:05 -04:00
Itamar Turner-Trauring
a297d6be16
Merge pull request #1316 from exarkun/4049.skip-some-when-superuser
...
Skip some tests when run as superuser
Fixes ticket:4049
2023-07-21 09:30:01 -04:00
Jean-Paul Calderone
feb9643dfe
skip permission-related tests if the environment is not suitable
...
posix superuser can do anything on the filesystem
2023-07-21 08:40:58 -04:00
Jean-Paul Calderone
2d688df299
get the node config types right
2023-07-21 08:19:27 -04:00
Jean-Paul Calderone
02a696d73b
Make merge_config
fail on overlapping configs
...
This isn't expected to happen. If it does it would be nice to see it instead
of silently continue working with some config dropped on the floor.
2023-07-21 08:13:33 -04:00
Jean-Paul Calderone
da43acf52e
more accurate docstring for dictutil.filter
2023-07-20 14:27:50 -04:00
Jean-Paul Calderone
4713573621
test for dictutil.filter
2023-07-20 14:27:30 -04:00
Jean-Paul Calderone
024b5e428a
narrow the type annotation for another Listener method param
2023-07-20 14:23:31 -04:00
Jean-Paul Calderone
57facc6335
narrow the type of cli_config a bit
...
This has unfortunate interactions with the "stdout" attribute but I'm punting
on that.
2023-07-20 14:19:12 -04:00
Itamar Turner-Trauring
f7f30c78b7
Merge pull request #1315 from tahoe-lafs/4046.nurls-are-set
...
Make NURLs a set
Fixes ticket:4046
2023-07-20 11:45:55 -04:00
Itamar Turner-Trauring
aa144fc623
Make NURLs a set.
2023-07-19 12:40:07 -04:00
Jean-Paul Calderone
40665d824d
remove unused import
2023-07-19 12:04:16 -04:00
Jean-Paul Calderone
ee8155729d
clean up some type annotations
2023-07-19 12:03:18 -04:00
Jean-Paul Calderone
911b54267b
StaticProviders don't need to change
2023-07-19 11:54:22 -04:00
Jean-Paul Calderone
72c18579e2
another docstring
2023-07-19 11:54:18 -04:00
Jean-Paul Calderone
c1c0b60862
remove hard-coded tor/i2p in hide-ip support
2023-07-19 11:42:38 -04:00
Jean-Paul Calderone
e6b3b65810
add some missing docstrings
2023-07-19 11:35:51 -04:00
Jean-Paul Calderone
9d7fb6cb08
Merge remote-tracking branch 'origin/master' into clean-up-tor-and-i2p-providers
2023-07-19 09:32:58 -04:00
Itamar Turner-Trauring
7bcd90cd91
Merge pull request #1310 from tahoe-lafs/4038-correct-ticket
...
Point to correct tickets
Fixes ticket:4038
2023-07-18 11:57:34 -04:00
Jean-Paul Calderone
c6daeaf4a3
Merge pull request #1313 from exarkun/4045.typechecks-vs-click
...
suppress the new click type checking errors
Also address an importlib_resources / towncrier incompatibility.
Fixes: ticket:4045
2023-07-11 20:05:19 -04:00
Jean-Paul Calderone
eef52fa59f
remove unused imports
2023-07-11 16:32:33 -04:00
Jean-Paul Calderone
79512a93e7
Adjust the temp factory return type
...
BinaryIO is a subclass of IO[bytes] so it doesn't check out as
the return type of a callable we pass around.
Switch to the superclass instead.
2023-07-11 16:30:54 -04:00
Jean-Paul Calderone
c838967a54
Improve the name and type annotation of the tempfile factory
2023-07-11 16:15:56 -04:00
Itamar Turner-Trauring
71134db007
Merge branch 'master' into clean-up-tor-and-i2p-providers
2023-07-11 15:45:39 -04:00
Jean-Paul Calderone
dfd34cfc0b
suppress the new click mypy errors
2023-07-07 16:26:31 -04:00
Jean-Paul Calderone
4b23b779e4
Reduce the amount of test suite gymnastics with new WebishServer API
...
Instead of forcing the test suite to try to discover the location of an
unnamed temporary file, let it just assert that the file is created in the
directory specified in the temporary file factory.
2023-07-07 16:04:37 -04:00
Itamar Turner-Trauring
bc78dbc25c
Point to correct ticket
2023-07-05 10:21:40 -04:00
Itamar Turner-Trauring
a7f45ab355
If this ever does get called, make the error less obscure.
2023-06-26 11:09:32 -04:00
Itamar Turner-Trauring
5f9e784964
Better explanation
2023-06-26 09:06:28 -04:00
Itamar Turner-Trauring
d697e8dab5
Merge remote-tracking branch 'origin/master' into 4035-new-mypy
2023-06-26 09:03:53 -04:00
Itamar Turner-Trauring
0fb6c5ac18
Merge pull request #1305 from tahoe-lafs/3910-http-storage-server-tor-support
...
HTTP storage server supports .onion addresses, and corresponding client support
Fixes ticket:3910
2023-06-26 09:01:59 -04:00
Itamar Turner-Trauring
ea953f3ba1
Merge remote-tracking branch 'origin/3910-http-storage-server-tor-support' into 4035-new-mypy
2023-06-26 08:50:35 -04:00
meejah
75b9c59846
refactor
2023-06-22 01:59:02 -06:00
meejah
122e0a73a9
more-generic testing hook
2023-06-22 01:29:55 -06:00
Jean-Paul Calderone
592e77beca
allow list
as a generic container annotation
2023-06-20 08:12:14 -04:00
Jean-Paul Calderone
7257851565
python 2/3 porting boilerplate cleanup
2023-06-20 07:46:43 -04:00
Jean-Paul Calderone
02fba3b2b6
factor some duplication out of the tests
2023-06-20 07:45:51 -04:00
meejah
357c9b003f
flake8
2023-06-19 17:55:36 -06:00
meejah
2fcb190c2f
add tests for both close-stdin cases
2023-06-19 17:53:57 -06:00
meejah
db9597ee19
add --allow-stdin-close option
2023-06-19 16:07:31 -06:00
Itamar Turner-Trauring
8d99ddc542
Pacify mypy
2023-06-15 17:14:08 -04:00