Skip to content

Commit 00bfa46

Browse files
Made custom_stubgen python3.6 compatible
1 parent e7347e2 commit 00bfa46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_stubgen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def add_union(alternative_type: str):
8-
def inner(match: re.Match, _alternative_type=alternative_type):
8+
def inner(match, _alternative_type=alternative_type):
99
return "typing.Union[{}, {}]".format(match.group(0), _alternative_type)
1010

1111
return inner

0 commit comments

Comments
 (0)