diff options
author | Sebastian Rittau <srittau@rittau.biz> | 2021-06-19 17:31:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-19 17:31:18 (GMT) |
commit | 09eb81711597725f853e4f3b659ce185488b0d8c (patch) | |
tree | 640828b6c59c0a5a94c359277edd1b7f6616bf51 /Lib/importlib | |
parent | 291848195f85e23c01adb76d5a0ff9c6eb7f2614 (diff) | |
download | cpython-09eb81711597725f853e4f3b659ce185488b0d8c.zip cpython-09eb81711597725f853e4f3b659ce185488b0d8c.tar.gz cpython-09eb81711597725f853e4f3b659ce185488b0d8c.tar.bz2 |
bpo-38291: DeprecationWarning when importing typing.{io,re} (#26719)
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/resources.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/importlib/resources.py b/Lib/importlib/resources.py index 8a98663..bb5c354 100644 --- a/Lib/importlib/resources.py +++ b/Lib/importlib/resources.py @@ -11,8 +11,7 @@ from io import BytesIO, TextIOWrapper from pathlib import Path from types import ModuleType from typing import ContextManager, Iterable, Union -from typing import cast -from typing.io import BinaryIO, TextIO +from typing import cast, BinaryIO, TextIO from collections.abc import Sequence from functools import singledispatch |