Jason R. Coombs
acbb6b3e93
Convert subcommands to tuples instead of lists, as that's what mypy demands for heterogeneous sequences.
2020-11-29 15:48:26 -05:00
Jason R. Coombs
41c341a3cc
Prefer type(None) for better compatibility.
2020-11-29 15:24:20 -05:00
Jason R. Coombs
6b772e7fdc
Declare type for BaseOptions.description_unwrapped.
2020-11-29 15:22:58 -05:00
Jason R. Coombs
cb351607d8
Repeat type declaration from parent to avoid over-constraining this type for subclasses.
2020-11-29 15:21:25 -05:00
Jason R. Coombs
6ea9003436
Declare MultiFormatResource.formatDefault as optional string for subclass overrides.
2020-11-29 15:19:11 -05:00
Jason R. Coombs
8b991d3516
Update DirectoryNode.set_uri to match interface spec.
2020-11-29 15:16:45 -05:00
Jason R. Coombs
67f0be8431
Prefer type(None) for better compatibility.
2020-11-29 15:13:19 -05:00
Jason R. Coombs
646297ddc3
Add stub for LocalCiphertextReader.set_upload_status
2020-11-29 15:08:46 -05:00
Jason R. Coombs
32b77c4239
Ignore interface violation in MutableFileVersion.download_to_data
2020-11-29 15:06:12 -05:00
Jason R. Coombs
a75454a04f
Add stub for MutableFileVersion.get_servermap
2020-11-29 15:02:13 -05:00
Jason R. Coombs
103bec6a15
On MutableFileNode, accept optional 'progress' parameter as declared by the interface.
2020-11-29 14:58:28 -05:00
Jason R. Coombs
af172f6bff
Repeat type declaration from parent to avoid over-constraining this type for subclasses.
2020-11-29 14:55:13 -05:00
Jason R. Coombs
c3a22966e8
Add stubs for methods demanded by IPeerSelector
2020-11-29 14:52:45 -05:00
Jason R. Coombs
1b92da75fa
Some subclasses use ints, so just go for Any
2020-11-29 14:44:17 -05:00
Jason R. Coombs
e0eb63929a
Declare type for BaseOptions.description. Fixes many type errors.
2020-11-29 14:35:17 -05:00
Jason R. Coombs
1248d65778
Declare types for BasedirOptions. Fixes several errors.
2020-11-29 14:32:34 -05:00
Jason R. Coombs
e9ddcf5911
Implement set_size as required by the interface
2020-11-29 14:26:20 -05:00
Jason R. Coombs
7e757d2ec4
As _ImmutableFileNodeBase doesn't implement the interface, move the implementer declaration to LiteralFileNode
2020-11-29 14:23:59 -05:00
Jason R. Coombs
cc91b7c9ed
Declare DirectoryURIVerifier type to allow subclass to override.
2020-11-29 14:15:24 -05:00
Jason R. Coombs
dca0840c35
Add stubs for methods demanded by the interface
2020-11-29 14:08:33 -05:00
Jason R. Coombs
6ba7533168
Ignore failure on StorageServer.slot_testv_and_readv_and_writev, the implementation of which deviates from the interface spec substantially.
2020-11-29 14:04:59 -05:00
Jason R. Coombs
bc3508ce60
Ignore type checks on cmp usage (awaiting Python 3 porting)
2020-11-29 14:01:05 -05:00
Jason R. Coombs
50f81aa25d
Update two methods of introducer.client.IntroducerClient to match the interface definition.
2020-11-29 13:57:46 -05:00
Jason R. Coombs
4998c4693f
Ignore type checks on Referenceable objects. Ref warner/foolscap#78 .
2020-11-29 13:57:46 -05:00
Jason R. Coombs
adf0688918
Add a non-implementation of encode_proposal to satisfy interface.
2020-11-29 13:57:46 -05:00
Jason R. Coombs
5f40c562eb
Remove self arguments to IProgress, which mypy caught as improper.
2020-11-29 13:57:46 -05:00
Jason R. Coombs
dec6f6d647
Remove Interface subclass, as IURI is an interface. Fixes mypy error.
2020-11-29 13:57:46 -05:00
Jason R. Coombs
df31d7db5b
Suppress type error in Node.GENERATED_FILES, apparently unused.
2020-11-29 13:57:46 -05:00
Jason R. Coombs
25cce8b77e
Suppress typing errors in fileutil, crawler, fixups.
2020-11-29 13:57:46 -05:00
Jason R. Coombs
8da82e9ed5
Add workaround for Shoobx/mypy-zope#26 .
2020-11-29 13:57:46 -05:00
Jason R. Coombs
d1ea36781a
Add type declarations to check_load.
2020-11-29 13:57:46 -05:00
Jason R. Coombs
ce3b775944
Suppress typing error in test_python3
2020-11-29 13:57:46 -05:00
Jason R. Coombs
f2ffa78198
Define type of PollMixin._poll_should_ignore_these_errors
2020-11-29 13:57:46 -05:00
Jean-Paul Calderone
152c04e48c
Merge pull request #902 from tahoe-lafs/3512.localized-tempdir
...
Per-node web temp directory
Fixes: ticket:3512
2020-11-25 18:18:36 -05:00
Jean-Paul Calderone
520f4d15bf
Rename _get_request
to more accurate _create_request
2020-11-25 16:09:53 -05:00
Jean-Paul Calderone
8e6773c690
Merge pull request #907 from tahoe-lafs/3518.pypy-versions-None
...
Get rid of version_checks
Fixes: ticket:3518
2020-11-25 10:54:46 -05:00
Jean-Paul Calderone
bd9a91abf6
Merge pull request #901 from tahoe-lafs/3513.raiseException
...
Fix exception re-raising in no_network.py
Fixes: ticket:3513
2020-11-25 10:41:15 -05:00
Jean-Paul Calderone
3321058a33
flake
2020-11-23 15:14:59 -05:00
Jean-Paul Calderone
c694e8c7e2
Delete allmydata.version_checks and related functionality
...
It is not Tahoe-LAFS' job to manage package installation in this way.
Instead, we can declare our dependencies in setup.py and rely on installation
management tools and packagers to create a suitable execution environment.
Making this statement in the past required going much further out on a limb
than it does today. This code has served its purpose and can now be retired.
2020-11-23 15:10:18 -05:00
Jean-Paul Calderone
224085c139
Clean up version checks and fix the PyPy regression
2020-11-23 14:14:52 -05:00
Jean-Paul Calderone
55193f725a
Avoid passing None to ensure_str
2020-11-23 10:28:04 -05:00
Itamar Turner-Trauring
38275cbe6f
Merge remote-tracking branch 'origin/master' into 3502.mutable-python-3-part-2
2020-11-19 13:43:10 -05:00
Jean-Paul Calderone
1689804877
Try doing some other thing in Windows
2020-11-19 10:15:36 -05:00
Jean-Paul Calderone
4ce2572ce9
Does Windows behave if we restrict ourselves to *just* S_IREAD?
...
From CPython docs:
> Note Although Windows supports chmod(), you can only set the file’s
> read-only flag with it (via the stat.S_IWRITE and stat.S_IREAD constants or
> a corresponding integer value). All other bits are ignored.
2020-11-19 09:39:34 -05:00
Jean-Paul Calderone
d727ae4a86
Try to improve the failure mode
2020-11-19 08:50:44 -05:00
Jean-Paul Calderone
f240cb183f
flake cleanup
2020-11-18 18:13:01 -05:00
Jean-Paul Calderone
92691c1b32
Be sure the temporary directory exists
2020-11-18 16:53:38 -05:00
Jean-Paul Calderone
5b0d20c453
Everything should be new-style
2020-11-18 16:53:28 -05:00
Jean-Paul Calderone
799e5a2a60
tweak comment about our test case
2020-11-18 15:52:04 -05:00
Jean-Paul Calderone
6d137ac257
Get rid of the tempfile.tempdir hackery
2020-11-18 15:51:08 -05:00