Skip to content

Commit 6933aa5

Browse files
committed
Removed conditional import for typing.IO
This is no longer necessary.
1 parent e8cbd68 commit 6933aa5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/test_sphinx_autodoc_typehints.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import textwrap
55
import typing
66
from typing import (
7-
Any, AnyStr, Callable, Dict, Generic, Mapping, Match, NewType, Optional, Pattern, Tuple, Type,
8-
TypeVar, Union)
7+
IO, Any, AnyStr, Callable, Dict, Generic, Mapping, Match, NewType, Optional, Pattern, Tuple,
8+
Type, TypeVar, Union)
99

1010
import pytest
1111
import typing_extensions
@@ -14,11 +14,6 @@
1414
format_annotation, get_annotation_args, get_annotation_class_name, get_annotation_module,
1515
process_docstring)
1616

17-
try:
18-
from typing import IO
19-
except ImportError:
20-
from typing.io import IO
21-
2217
T = TypeVar('T')
2318
U = TypeVar('U', covariant=True)
2419
V = TypeVar('V', contravariant=True)

0 commit comments

Comments
 (0)