Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4512848

Browse filesBrowse files
authored
Fix a deprecation warning in typing tests (#27312)
The test was accessing typing.{io,re}.__all__, which triggered the warning. This check isn't necessary anymore, since the objects from typing.{io,re}.__all__ are in typing.__all__ as well, since Python 3.10.
1 parent 83d1430 commit 4512848
Copy full SHA for 4512848

File tree

Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed

‎Lib/test/test_typing.py

Copy file name to clipboardExpand all lines: Lib/test/test_typing.py
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4653,9 +4653,6 @@ def test_all_exported_names(self):
46534653
if k in actual_all or (
46544654
# avoid private names
46554655
not k.startswith('_') and
4656-
# avoid things in the io / re typing submodules
4657-
k not in typing.io.__all__ and
4658-
k not in typing.re.__all__ and
46594656
k not in {'io', 're'} and
46604657
# there's a few types and metaclasses that aren't exported
46614658
not k.endswith(('Meta', '_contra', '_co')) and

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.