Avoid AttributeErrors for generics when a module is passed
This commit is contained in:
1 parent
28f256d2a6
commit
ebb2786748
2 files changed
+14
-8
No files matched your search
@@ -1,4 +1,5 @@
|
||||
# python >= 3.4
|
||||
import typing
|
||||
from typing import (
|
||||
Callable,
|
||||
Dict,
|
||||
@@ -51,6 +52,10 @@ x1 = list_t_to_list_t(foo)[0]
|
||||
#?
|
||||
x1
|
||||
|
||||
x1 = list_t_to_list_t(typing)[0]
|
||||
#?
|
||||
x1
|
||||
|
||||
x2 = list_t_to_list_t(tpl)[0]
|
||||
#?
|
||||
x2
|
||||
|
||||
Reference in new issue
Block a user