mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
make mypy happy
This commit is contained in:
parent
cd44256521
commit
83dac0e999
@ -26,7 +26,7 @@ class _Option:
|
||||
def __init__(
|
||||
self,
|
||||
name: str,
|
||||
typespec: type,
|
||||
typespec: typing.Union[type, object], # object for Optional[x], which is not a type.
|
||||
default: typing.Any,
|
||||
help: str,
|
||||
choices: typing.Optional[typing.Sequence[str]]
|
||||
@ -101,7 +101,7 @@ class OptManager:
|
||||
def add_option(
|
||||
self,
|
||||
name: str,
|
||||
typespec: type,
|
||||
typespec: typing.Union[type, object],
|
||||
default: typing.Any,
|
||||
help: str,
|
||||
choices: typing.Optional[typing.Sequence[str]] = None
|
||||
|
Loading…
Reference in New Issue
Block a user