Skip to content

Commit 0fee794

Browse files
committed
Add 3.14 to stdlibds
1 parent 332a1ad commit 0fee794

File tree

5 files changed

+215
-3
lines changed

5 files changed

+215
-3
lines changed

isort/stdlibs/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from . import all as _all
2-
from . import py2, py3, py27, py36, py37, py38, py39, py310, py311, py312, py313
2+
from . import py2, py3, py27, py36, py37, py38, py39, py310, py311, py312, py313, py314
33

44
__all__ = (
55
"_all",
@@ -14,4 +14,5 @@
1414
"py311",
1515
"py312",
1616
"py313",
17+
"py314",
1718
)

isort/stdlibs/py3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from . import py36, py37, py38, py39, py310, py311, py312, py313
1+
from . import py36, py37, py38, py39, py310, py311, py312, py313, py314
22

33
stdlib = (
44
py36.stdlib
@@ -9,4 +9,5 @@
99
| py311.stdlib
1010
| py312.stdlib
1111
| py313.stdlib
12+
| py314.stdlib
1213
)

isort/stdlibs/py314.py

Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
"""
2+
File contains the standard library of Python 3.14.
3+
4+
DO NOT EDIT. If the standard library changes, a new list should be created
5+
using the mkstdlibs.py script.
6+
"""
7+
8+
stdlib = {
9+
"_ast",
10+
"abc",
11+
"annotationlib",
12+
"antigravity",
13+
"argparse",
14+
"array",
15+
"ast",
16+
"asyncio",
17+
"atexit",
18+
"base64",
19+
"bdb",
20+
"binascii",
21+
"bisect",
22+
"builtins",
23+
"bz2",
24+
"cProfile",
25+
"calendar",
26+
"cmath",
27+
"cmd",
28+
"code",
29+
"codecs",
30+
"codeop",
31+
"collections",
32+
"colorsys",
33+
"compileall",
34+
"concurrent",
35+
"configparser",
36+
"contextlib",
37+
"contextvars",
38+
"copy",
39+
"copyreg",
40+
"csv",
41+
"ctypes",
42+
"curses",
43+
"dataclasses",
44+
"datetime",
45+
"dbm",
46+
"decimal",
47+
"difflib",
48+
"dis",
49+
"doctest",
50+
"email",
51+
"encodings",
52+
"ensurepip",
53+
"enum",
54+
"errno",
55+
"faulthandler",
56+
"fcntl",
57+
"filecmp",
58+
"fileinput",
59+
"fnmatch",
60+
"fractions",
61+
"ftplib",
62+
"functools",
63+
"gc",
64+
"genericpath",
65+
"getopt",
66+
"getpass",
67+
"gettext",
68+
"glob",
69+
"graphlib",
70+
"grp",
71+
"gzip",
72+
"hashlib",
73+
"heapq",
74+
"hmac",
75+
"html",
76+
"http",
77+
"idlelib",
78+
"imaplib",
79+
"importlib",
80+
"inspect",
81+
"io",
82+
"ipaddress",
83+
"itertools",
84+
"json",
85+
"keyword",
86+
"linecache",
87+
"locale",
88+
"logging",
89+
"lzma",
90+
"mailbox",
91+
"marshal",
92+
"math",
93+
"mimetypes",
94+
"mmap",
95+
"modulefinder",
96+
"msvcrt",
97+
"multiprocessing",
98+
"netrc",
99+
"nt",
100+
"ntpath",
101+
"nturl2path",
102+
"numbers",
103+
"opcode",
104+
"operator",
105+
"optparse",
106+
"os",
107+
"pathlib",
108+
"pdb",
109+
"pickle",
110+
"pickletools",
111+
"pkgutil",
112+
"platform",
113+
"plistlib",
114+
"poplib",
115+
"posix",
116+
"posixpath",
117+
"pprint",
118+
"profile",
119+
"pstats",
120+
"pty",
121+
"pwd",
122+
"py_compile",
123+
"pyclbr",
124+
"pydoc",
125+
"pydoc_data",
126+
"pyexpat",
127+
"queue",
128+
"quopri",
129+
"random",
130+
"re",
131+
"readline",
132+
"reprlib",
133+
"resource",
134+
"rlcompleter",
135+
"runpy",
136+
"sched",
137+
"secrets",
138+
"select",
139+
"selectors",
140+
"shelve",
141+
"shlex",
142+
"shutil",
143+
"signal",
144+
"site",
145+
"smtplib",
146+
"socket",
147+
"socketserver",
148+
"sqlite3",
149+
"sre",
150+
"sre_compile",
151+
"sre_constants",
152+
"sre_parse",
153+
"ssl",
154+
"stat",
155+
"statistics",
156+
"string",
157+
"stringprep",
158+
"struct",
159+
"subprocess",
160+
"symtable",
161+
"sys",
162+
"sysconfig",
163+
"syslog",
164+
"tabnanny",
165+
"tarfile",
166+
"tempfile",
167+
"termios",
168+
"textwrap",
169+
"this",
170+
"threading",
171+
"time",
172+
"timeit",
173+
"tkinter",
174+
"token",
175+
"tokenize",
176+
"tomllib",
177+
"trace",
178+
"traceback",
179+
"tracemalloc",
180+
"tty",
181+
"turtle",
182+
"turtledemo",
183+
"types",
184+
"typing",
185+
"unicodedata",
186+
"unittest",
187+
"urllib",
188+
"uuid",
189+
"venv",
190+
"warnings",
191+
"wave",
192+
"weakref",
193+
"webbrowser",
194+
"winreg",
195+
"winsound",
196+
"wsgiref",
197+
"xml",
198+
"xmlrpc",
199+
"xx",
200+
"xxlimited",
201+
"xxlimited_35",
202+
"xxsubtype",
203+
"zipapp",
204+
"zipfile",
205+
"zipimport",
206+
"zlib",
207+
"zoneinfo",
208+
}

scripts/mkstdlibs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
import re
33

4-
from stdlibs import py38, py39, py310, py311, py312, py313
4+
from stdlibs import py38, py39, py310, py311, py312, py313, py314
55

66
URL = "https://docs.python.org/{}/objects.inv"
77
PATH = "isort/stdlibs/py{}.py"
@@ -12,6 +12,7 @@
1212
py311,
1313
py312,
1414
py313,
15+
py314,
1516
]
1617

1718
DOCSTRING = """

tests/unit/test_importable.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def test_importable():
3939
import isort.stdlibs.py311
4040
import isort.stdlibs.py312
4141
import isort.stdlibs.py313
42+
import isort.stdlibs.py314
4243
import isort.utils
4344
import isort.wrap
4445
import isort.wrap_modes

0 commit comments

Comments
 (0)