Skip to content

Commit

Permalink
Add additional stdlib deprecations (mostly 3.13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Aug 5, 2024
1 parent de6e6fa commit e608e9c
Show file tree
Hide file tree
Showing 2 changed files with 46 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
45 changes: 45 additions & 0 deletions pylint/checkers/stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,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 @@ -89,6 +92,9 @@
"email.utils.localtime": ((1, "isdst"),),
"shutil.rmtree": ((2, "onerror"),),
},
(3, 13, 0): {
"dis.get_instructions": ((2, "show_caches"),),
},
}

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


Expand Down Expand Up @@ -268,6 +275,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 @@ -277,6 +288,20 @@
"pty.slave_open",
"xml.etree.ElementTree.Element.__bool__",
},
(3, 13, 0): {
"ctypes.SetPointerType",
"pathlib.PurePath.is_reserved",
"platform.java_ver",
"pydoc.is_package",
"symtable.Class.get_methods",
"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 @@ -333,6 +358,9 @@
"typing": {
"Text",
},
"urllib.parse": {
"Quoter",
},
"webbrowser": {
"MacOSX",
},
Expand Down Expand Up @@ -365,6 +393,15 @@
"Sized",
},
},
(3, 13, 0): {
"glob": {
"glob.glob0",
"glob.glob1",
},
"http.server": {
"CGIHTTPRequestHandler",
},
},
}


Expand All @@ -375,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 e608e9c

Please sign in to comment.