Skip to content

Commit 01224e0

Browse files
author
SzabolcsGergely
committed
Escape \S
1 parent e1111a6 commit 01224e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/python/generate_stubs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
''') + contents
6262

6363
# Create 'create' overloads
64-
nodes = re.findall('def \S*\(self\) -> node.(\S*):', stubs_import)
64+
nodes = re.findall('def \\S*\\(self\\) -> node.\\(\\S*\\):', stubs_import)
6565
overloads = ''
6666
for node in nodes:
6767
overloads = overloads + f'\\1@overload\\1def create(self, arg0: typing.Type[node.{node}]) -> node.{node}: ...'

0 commit comments

Comments
 (0)