Some subclasses use ints, so just go for Any

This commit is contained in:
Jason R. Coombs 2020-11-29 14:44:17 -05:00
parent e0eb63929a
commit 1b92da75fa

View File

@ -5,7 +5,7 @@ import codecs
from os.path import join from os.path import join
try: try:
from typing import Optional, Sequence, List from typing import Optional, Sequence, List, Any
except ImportError: except ImportError:
pass pass
@ -69,7 +69,7 @@ class BasedirOptions(BaseOptions):
optParameters = [ optParameters = [
["basedir", "C", None, "Specify which Tahoe base directory should be used. [default: %s]" ["basedir", "C", None, "Specify which Tahoe base directory should be used. [default: %s]"
% quote_local_unicode_path(_default_nodedir)], % quote_local_unicode_path(_default_nodedir)],
] # type: List[Sequence[Optional[str]]] ] # type: List[Sequence[Any]]
def parseArgs(self, basedir=None): def parseArgs(self, basedir=None):
# This finds the node-directory option correctly even if we are in a subcommand. # This finds the node-directory option correctly even if we are in a subcommand.