Skip to content

Commit ee70de3

Browse files
committed
Fix: Adjust stdlib deprecations
1 parent 6ea0e27 commit ee70de3

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
Removed falsely deprecated functions from `importlib.resources` in the stdlib checker
2-
(read_text, read_binary, open_binary, open_text, path, is_resource).
3-
4-
Closes #10595
1+
No longer flag undeprecated functions in ``importlib.resources`` as deprecated.

doc/whatsnew/fragments/10595.bugfix.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

pylint/checkers/stdlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@
243243
"binascii.a2b_hqx",
244244
"binascii.rlecode_hqx",
245245
"binascii.rledecode_hqx",
246-
"importlib.resources.contents",
247246
},
248247
(3, 10, 0): {
249248
"_sqlite3.enable_shared_cache",
@@ -273,6 +272,7 @@
273272
"unittest.TestLoader.loadTestsFromTestCase",
274273
"unittest.TestLoader.getTestCaseNames",
275274
"unittest.TestProgram.usageExit",
275+
"importlib.resources.contents",
276276
},
277277
(3, 12, 0): {
278278
"asyncio.get_child_watcher",

0 commit comments

Comments
 (0)