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__( 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