Skip to content

Commit c25136d

Browse files
committed
Expand regex used to identify unwanted type hint prefixes
1 parent 6d9d752 commit c25136d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_spec_conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
}
196196

197197
# -- Prettify type hints -----------------------------------------------------
198-
r_type_prefix = re.compile(r"array_api_stubs\._[a-z0-9_]+\._types\.")
198+
r_type_prefix = re.compile(r"array_api(?:_stubs\._[a-z0-9_]+)?\._types\.")
199199

200200
def process_signature(app, what, name, obj, options, signature, return_annotation):
201201
if signature:

0 commit comments

Comments
 (0)