Skip to content

Commit

Permalink
bpo-38291: DeprecationWarning when importing typing.{io,re}
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 29, 2021
1 parent e7c4bae commit 66ea2dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v5.2.1
======

* bpo-38291: Avoid DeprecationWarning on ``typing.io``.

v5.2.0
======

Expand Down
3 changes: 1 addition & 2 deletions importlib_resources/_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import pathlib
import types

from typing import Union, Iterable, ContextManager
from typing.io import BinaryIO, TextIO
from typing import Union, Iterable, ContextManager, BinaryIO, TextIO

from . import _common

Expand Down

0 comments on commit 66ea2dc

Please sign in to comment.