Skip to content

Commit a8f8d21

Browse files
committed
remove bytes io condition
1 parent 618bd88 commit a8f8d21

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

automated_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ def _get_typehint(annotation, api_globals):
158158
)
159159
for item in full_path_regex.finditer(str(typehint)):
160160
groups = item.groupdict()
161-
if groups["full"] not in {"io.BytesIO"}:
162-
name = groups["name"].split(".")[-1]
163-
typehint = typehint.replace(groups["full"], name)
161+
name = groups["name"].split(".")[-1]
162+
typehint = typehint.replace(groups["full"], name)
164163

165164
forwardref_regex = re.compile(
166165
r"(?P<full>ForwardRef\('(?P<name>[a-zA-Z0-9]+)'\))"

0 commit comments

Comments
 (0)