We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618bd88 commit a8f8d21Copy full SHA for a8f8d21
automated_api.py
@@ -158,9 +158,8 @@ def _get_typehint(annotation, api_globals):
158
)
159
for item in full_path_regex.finditer(str(typehint)):
160
groups = item.groupdict()
161
- if groups["full"] not in {"io.BytesIO"}:
162
- name = groups["name"].split(".")[-1]
163
- typehint = typehint.replace(groups["full"], name)
+ name = groups["name"].split(".")[-1]
+ typehint = typehint.replace(groups["full"], name)
164
165
forwardref_regex = re.compile(
166
r"(?P<full>ForwardRef\('(?P<name>[a-zA-Z0-9]+)'\))"
0 commit comments