mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] gh-111681: minor fixes to typing doctests; remove unused imports in test_typing
(#111682) (#112035)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
7313bde84c
commit
9aa5ff82d4
2 changed files with 3 additions and 3 deletions
|
@ -1941,7 +1941,7 @@ without the dedicated syntax, as documented below.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
|
|
||||||
>>> from typing import ParamSpec
|
>>> from typing import ParamSpec, get_origin
|
||||||
>>> P = ParamSpec("P")
|
>>> P = ParamSpec("P")
|
||||||
>>> get_origin(P.args) is P
|
>>> get_origin(P.args) is P
|
||||||
True
|
True
|
||||||
|
|
|
@ -10,7 +10,7 @@ import pickle
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
from unittest import TestCase, main, skipUnless, skip
|
from unittest import TestCase, main, skip
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
from copy import copy, deepcopy
|
from copy import copy, deepcopy
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ import typing
|
||||||
import weakref
|
import weakref
|
||||||
import types
|
import types
|
||||||
|
|
||||||
from test.support import import_helper, captured_stderr, cpython_only
|
from test.support import captured_stderr, cpython_only
|
||||||
from test.typinganndata import mod_generics_cache, _typed_dict_helper
|
from test.typinganndata import mod_generics_cache, _typed_dict_helper
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue