Add tests for classes that have generics not defined

This commit is contained in:
Dave Halter
2018-08-30 01:46:48 +02:00
parent 5979b93a7a
commit 7fc311bb3e

View File

@@ -331,6 +331,20 @@ with_type_checking
#? #?
without_type_checking without_type_checking
def foo() -> typing.Type[int]: pass def foo(a: typing.List, b: typing.Dict, c: typing.MutableMapping) -> typing.Type[int]:
#? ['append']
a.appen
#? list()
a
#?
a[0]
#? ['setdefault']
b.setd
#? ['setdefault']
c.setd
#? typing.MutableMapping()
c
#?
c['asdf']
#? int #? int
foo() foo()