Skip to content

Commit

Permalink
Add additional stdlib deprecations (mostly 3.13) (#9853)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored Sep 18, 2024
1 parent 0adf671 commit 67acc96
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions pylint/checkers/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"uu",
"xdrlib",
},
(3, 13, 0): {"getopt"},
}


Expand Down
44 changes: 44 additions & 0 deletions pylint/checkers/stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
"bool": ((None, "x"),),
"float": ((None, "x"),),
},
(3, 5, 0): {
"importlib._bootstrap_external.cache_from_source": ((1, "debug_override"),),
},
(3, 8, 0): {
"asyncio.tasks.sleep": ((None, "loop"),),
"asyncio.tasks.gather": ((None, "loop"),),
Expand Down Expand Up @@ -90,6 +93,9 @@
"email.utils.localtime": ((1, "isdst"),),
"shutil.rmtree": ((2, "onerror"),),
},
(3, 13, 0): {
"dis.get_instructions": ((2, "show_caches"),),
},
}

DEPRECATED_DECORATORS: DeprecationDict = {
Expand All @@ -100,6 +106,7 @@
"abc.abstractproperty",
},
(3, 4, 0): {"importlib.util.module_for_loader"},
(3, 13, 0): {"typing.no_type_check_decorator"},
}


Expand Down Expand Up @@ -269,6 +276,10 @@
"unittest.TestProgram.usageExit",
},
(3, 12, 0): {
"asyncio.get_child_watcher",
"asyncio.set_child_watcher",
"asyncio.AbstractEventLoopPolicy.get_child_watcher",
"asyncio.AbstractEventLoopPolicy.set_child_watcher",
"builtins.bool.__invert__",
"datetime.datetime.utcfromtimestamp",
"datetime.datetime.utcnow",
Expand All @@ -278,6 +289,19 @@
"pty.slave_open",
"xml.etree.ElementTree.Element.__bool__",
},
(3, 13, 0): {
"ctypes.SetPointerType",
"pathlib.PurePath.is_reserved",
"platform.java_ver",
"pydoc.is_package",
"sys._enablelegacywindowsfsencoding",
"wave.Wave_read.getmark",
"wave.Wave_read.getmarkers",
"wave.Wave_read.setmark",
"wave.Wave_write.getmark",
"wave.Wave_write.getmarkers",
"wave.Wave_write.setmark",
},
},
}

Expand Down Expand Up @@ -334,6 +358,9 @@
"typing": {
"Text",
},
"urllib.parse": {
"Quoter",
},
"webbrowser": {
"MacOSX",
},
Expand Down Expand Up @@ -366,6 +393,15 @@
"Sized",
},
},
(3, 13, 0): {
"glob": {
"glob.glob0",
"glob.glob1",
},
"http.server": {
"CGIHTTPRequestHandler",
},
},
}


Expand All @@ -376,10 +412,18 @@
(3, 12, 0): {
"calendar.January",
"calendar.February",
"sqlite3.version",
"sqlite3.version_info",
"sys.last_traceback",
"sys.last_type",
"sys.last_value",
},
(3, 13, 0): {
"dis.HAVE_ARGUMENT",
"tarfile.TarFile.tarfile",
"traceback.TracebackException.exc_type",
"typing.AnyStr",
},
}


Expand Down

0 comments on commit 67acc96

Please sign in to comment.