Skip to content

Commit 67acc96

Browse files
Add additional stdlib deprecations (mostly 3.13) (#9853)
1 parent 0adf671 commit 67acc96

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

pylint/checkers/imports.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"uu",
8080
"xdrlib",
8181
},
82+
(3, 13, 0): {"getopt"},
8283
}
8384

8485

pylint/checkers/stdlib.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
"bool": ((None, "x"),),
5555
"float": ((None, "x"),),
5656
},
57+
(3, 5, 0): {
58+
"importlib._bootstrap_external.cache_from_source": ((1, "debug_override"),),
59+
},
5760
(3, 8, 0): {
5861
"asyncio.tasks.sleep": ((None, "loop"),),
5962
"asyncio.tasks.gather": ((None, "loop"),),
@@ -90,6 +93,9 @@
9093
"email.utils.localtime": ((1, "isdst"),),
9194
"shutil.rmtree": ((2, "onerror"),),
9295
},
96+
(3, 13, 0): {
97+
"dis.get_instructions": ((2, "show_caches"),),
98+
},
9399
}
94100

95101
DEPRECATED_DECORATORS: DeprecationDict = {
@@ -100,6 +106,7 @@
100106
"abc.abstractproperty",
101107
},
102108
(3, 4, 0): {"importlib.util.module_for_loader"},
109+
(3, 13, 0): {"typing.no_type_check_decorator"},
103110
}
104111

105112

@@ -269,6 +276,10 @@
269276
"unittest.TestProgram.usageExit",
270277
},
271278
(3, 12, 0): {
279+
"asyncio.get_child_watcher",
280+
"asyncio.set_child_watcher",
281+
"asyncio.AbstractEventLoopPolicy.get_child_watcher",
282+
"asyncio.AbstractEventLoopPolicy.set_child_watcher",
272283
"builtins.bool.__invert__",
273284
"datetime.datetime.utcfromtimestamp",
274285
"datetime.datetime.utcnow",
@@ -278,6 +289,19 @@
278289
"pty.slave_open",
279290
"xml.etree.ElementTree.Element.__bool__",
280291
},
292+
(3, 13, 0): {
293+
"ctypes.SetPointerType",
294+
"pathlib.PurePath.is_reserved",
295+
"platform.java_ver",
296+
"pydoc.is_package",
297+
"sys._enablelegacywindowsfsencoding",
298+
"wave.Wave_read.getmark",
299+
"wave.Wave_read.getmarkers",
300+
"wave.Wave_read.setmark",
301+
"wave.Wave_write.getmark",
302+
"wave.Wave_write.getmarkers",
303+
"wave.Wave_write.setmark",
304+
},
281305
},
282306
}
283307

@@ -334,6 +358,9 @@
334358
"typing": {
335359
"Text",
336360
},
361+
"urllib.parse": {
362+
"Quoter",
363+
},
337364
"webbrowser": {
338365
"MacOSX",
339366
},
@@ -366,6 +393,15 @@
366393
"Sized",
367394
},
368395
},
396+
(3, 13, 0): {
397+
"glob": {
398+
"glob.glob0",
399+
"glob.glob1",
400+
},
401+
"http.server": {
402+
"CGIHTTPRequestHandler",
403+
},
404+
},
369405
}
370406

371407

@@ -376,10 +412,18 @@
376412
(3, 12, 0): {
377413
"calendar.January",
378414
"calendar.February",
415+
"sqlite3.version",
416+
"sqlite3.version_info",
379417
"sys.last_traceback",
380418
"sys.last_type",
381419
"sys.last_value",
382420
},
421+
(3, 13, 0): {
422+
"dis.HAVE_ARGUMENT",
423+
"tarfile.TarFile.tarfile",
424+
"traceback.TracebackException.exc_type",
425+
"typing.AnyStr",
426+
},
383427
}
384428

385429

0 commit comments

Comments
 (0)