[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:
Alex Waygood 2023-11-13 14:08:57 +00:00 committed by GitHub
parent 7313bde84c
commit 9aa5ff82d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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