Skip to content

Commit 3cede9a

Browse files
Add additional stdlib deprecations (mostly 3.14) (#10553)
1 parent edad7ba commit 3cede9a

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

pylint/checkers/stdlib.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,15 @@
9292
"coroutine.throw": ((1, "value"), (2, "traceback")),
9393
"email.utils.localtime": ((1, "isdst"),),
9494
"shutil.rmtree": ((2, "onerror"),),
95+
"sysconfig.is_python_build": ((0, "check_home"),),
9596
},
9697
(3, 13, 0): {
9798
"dis.get_instructions": ((2, "show_caches"),),
9899
},
100+
(3, 14, 0): {
101+
"argparse.ArgumentParser.add_argument_group": ((None, "prefix_chars"),),
102+
"threading.RLock": ((0, "x"),),
103+
},
99104
}
100105

101106
DEPRECATED_DECORATORS: DeprecationDict = {
@@ -302,6 +307,15 @@
302307
"wave.Wave_write.getmarkers",
303308
"wave.Wave_write.setmark",
304309
},
310+
(3, 14, 0): {
311+
"asyncio.iscoroutinefunction",
312+
"asyncio.get_event_loop_policy",
313+
"asyncio.set_event_loop_policy",
314+
"codecs.open",
315+
"symtable.Class.get_methods",
316+
"sys._clear_type_cache",
317+
"sysconfig.expand_makefile_vars",
318+
},
305319
},
306320
}
307321

@@ -402,6 +416,23 @@
402416
"CGIHTTPRequestHandler",
403417
},
404418
},
419+
(3, 14, 0): {
420+
"argparse": {
421+
"FileType",
422+
},
423+
"asyncio": {
424+
"AbstractEventLoopPolicy",
425+
"DefaultEventLoopPolicy",
426+
"WindowsSelectorEventLoopPolicy",
427+
"WindowsProactorEventLoopPolicy",
428+
},
429+
"shutil": {
430+
"ExecError",
431+
},
432+
"typing": {
433+
"._UnionGenericAlias",
434+
},
435+
},
405436
}
406437

407438

tests/functional/c/consider/consider_using_with.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=missing-function-docstring, missing-module-docstring, invalid-name, import-outside-toplevel
1+
# pylint: disable=missing-function-docstring, missing-module-docstring, invalid-name, import-outside-toplevel, deprecated-method
22
import codecs
33
import contextlib
44
import multiprocessing

0 commit comments

Comments
 (0)