mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +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__(
|
||||
self,
|
||||
name: str,
|
||||
typespec: typing.Type,
|
||||
typespec: 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: typing.Type,
|
||||
typespec: type,
|
||||
default: typing.Any,
|
||||
help: str,
|
||||
choices: typing.Optional[typing.Sequence[str]] = None
|
||||
|
Loading…
Reference in New Issue
Block a user