typing.Type -> type

`typing.Type` should have been `typing.Type[Any]`,
which in turn is equivalent to `type`
This commit is contained in:
Maximilian Hils 2017-03-08 01:00:55 +01:00
parent 63179d9751
commit b345f5d432

View File

@ -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