mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-02 15:50:54 +00:00
Repeat type declaration from parent to avoid over-constraining this type for subclasses.
This commit is contained in:
parent
6ea9003436
commit
cb351607d8
@ -1,6 +1,12 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import os.path, re, fnmatch
|
import os.path, re, fnmatch
|
||||||
|
|
||||||
|
try:
|
||||||
|
from typing import List, Sequence, Any
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
from twisted.python import usage
|
from twisted.python import usage
|
||||||
from allmydata.scripts.common import get_aliases, get_default_nodedir, \
|
from allmydata.scripts.common import get_aliases, get_default_nodedir, \
|
||||||
DEFAULT_ALIAS, BaseOptions
|
DEFAULT_ALIAS, BaseOptions
|
||||||
@ -19,7 +25,7 @@ class FileStoreOptions(BaseOptions):
|
|||||||
"This overrides the URL found in the --node-directory ."],
|
"This overrides the URL found in the --node-directory ."],
|
||||||
["dir-cap", None, None,
|
["dir-cap", None, None,
|
||||||
"Specify which dirnode URI should be used as the 'tahoe' alias."]
|
"Specify which dirnode URI should be used as the 'tahoe' alias."]
|
||||||
]
|
] # type: List[Sequence[Any]]
|
||||||
|
|
||||||
def postOptions(self):
|
def postOptions(self):
|
||||||
self["quiet"] = self.parent["quiet"]
|
self["quiet"] = self.parent["quiet"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user