mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
typing.Type -> type
`typing.Type` should have been `typing.Type[Any]`, which in turn is equivalent to `type`
This commit is contained in:
parent
63179d9751
commit
b345f5d432
@ -26,7 +26,7 @@ class _Option:
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
name: str,
|
name: str,
|
||||||
typespec: typing.Type,
|
typespec: type,
|
||||||
default: typing.Any,
|
default: typing.Any,
|
||||||
help: str,
|
help: str,
|
||||||
choices: typing.Optional[typing.Sequence[str]]
|
choices: typing.Optional[typing.Sequence[str]]
|
||||||
@ -101,7 +101,7 @@ class OptManager:
|
|||||||
def add_option(
|
def add_option(
|
||||||
self,
|
self,
|
||||||
name: str,
|
name: str,
|
||||||
typespec: typing.Type,
|
typespec: type,
|
||||||
default: typing.Any,
|
default: typing.Any,
|
||||||
help: str,
|
help: str,
|
||||||
choices: typing.Optional[typing.Sequence[str]] = None
|
choices: typing.Optional[typing.Sequence[str]] = None
|
||||||
|
Loading…
Reference in New Issue
Block a user