Skip to content

Commit 3de3998

Browse files
committed
Use from __future__ import annotations in generate_stubs.py
regex.Match isn't actually accessible, so without this the file does not run.
1 parent df5f6f5 commit 3de3998

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generate_stubs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
1010
This will update the stub files in array_api_tests/function_stubs/
1111
"""
12+
from __future__ import annotations
13+
1214
import argparse
1315
import os
1416
import ast

0 commit comments

Comments
 (0)