Skip to content

Commit f941edd

Browse files
authored
Fix flagging undeprecated importlib.resources functions (#10595)
1 parent 8072d02 commit f941edd

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
No longer flag undeprecated functions in ``importlib.resources`` as deprecated.
2+
3+
Closes #10593

pylint/checkers/stdlib.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,6 @@
243243
"binascii.a2b_hqx",
244244
"binascii.rlecode_hqx",
245245
"binascii.rledecode_hqx",
246-
"importlib.resources.contents",
247-
"importlib.resources.is_resource",
248-
"importlib.resources.open_binary",
249-
"importlib.resources.open_text",
250-
"importlib.resources.path",
251-
"importlib.resources.read_binary",
252-
"importlib.resources.read_text",
253246
},
254247
(3, 10, 0): {
255248
"_sqlite3.enable_shared_cache",
@@ -269,6 +262,7 @@
269262
"cgi.log",
270263
},
271264
(3, 11, 0): {
265+
"importlib.resources.contents",
272266
"locale.getdefaultlocale",
273267
"locale.resetlocale",
274268
"re.template",

0 commit comments

Comments
 (0)