Skip to content

Commit 9aa5ff8

Browse files
[3.12] gh-111681: minor fixes to typing doctests; remove unused imports in test_typing (#111682) (#112035)
Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 7313bde commit 9aa5ff8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/library/typing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1941,7 +1941,7 @@ without the dedicated syntax, as documented below.
19411941

19421942
.. doctest::
19431943

1944-
>>> from typing import ParamSpec
1944+
>>> from typing import ParamSpec, get_origin
19451945
>>> P = ParamSpec("P")
19461946
>>> get_origin(P.args) is P
19471947
True

Lib/test/test_typing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import re
1111
import sys
1212
import warnings
13-
from unittest import TestCase, main, skipUnless, skip
13+
from unittest import TestCase, main, skip
1414
from unittest.mock import patch
1515
from copy import copy, deepcopy
1616

@@ -45,7 +45,7 @@
4545
import weakref
4646
import types
4747

48-
from test.support import import_helper, captured_stderr, cpython_only
48+
from test.support import captured_stderr, cpython_only
4949
from test.typinganndata import mod_generics_cache, _typed_dict_helper
5050

5151

0 commit comments

Comments
 (0)