Skip to content

Commit 9661e14

Browse files
authored
venv: changes for py313 (#11937)
1 parent bb267c8 commit 9661e14

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

stdlib/venv/__init__.pyi

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
import sys
33
from _typeshed import StrOrBytesPath
4-
from collections.abc import Sequence
4+
from collections.abc import Iterable, Sequence
55
from types import SimpleNamespace
66

77
logger: logging.Logger
@@ -17,7 +17,20 @@ class EnvBuilder:
1717
with_pip: bool
1818
prompt: str | None
1919

20-
if sys.version_info >= (3, 9):
20+
if sys.version_info >= (3, 13):
21+
def __init__(
22+
self,
23+
system_site_packages: bool = False,
24+
clear: bool = False,
25+
symlinks: bool = False,
26+
upgrade: bool = False,
27+
with_pip: bool = False,
28+
prompt: str | None = None,
29+
upgrade_deps: bool = False,
30+
*,
31+
scm_ignore_files: Iterable[str] = ...,
32+
) -> None: ...
33+
elif sys.version_info >= (3, 9):
2134
def __init__(
2235
self,
2336
system_site_packages: bool = False,
@@ -54,8 +67,23 @@ class EnvBuilder:
5467
def install_scripts(self, context: SimpleNamespace, path: str) -> None: ...
5568
if sys.version_info >= (3, 9):
5669
def upgrade_dependencies(self, context: SimpleNamespace) -> None: ...
70+
if sys.version_info >= (3, 13):
71+
def create_git_ignore_file(self, context: SimpleNamespace) -> None: ...
5772

58-
if sys.version_info >= (3, 9):
73+
if sys.version_info >= (3, 13):
74+
def create(
75+
env_dir: StrOrBytesPath,
76+
system_site_packages: bool = False,
77+
clear: bool = False,
78+
symlinks: bool = False,
79+
with_pip: bool = False,
80+
prompt: str | None = None,
81+
upgrade_deps: bool = False,
82+
*,
83+
scm_ignore_files: Iterable[str] = ...,
84+
) -> None: ...
85+
86+
elif sys.version_info >= (3, 9):
5987
def create(
6088
env_dir: StrOrBytesPath,
6189
system_site_packages: bool = False,

0 commit comments

Comments
 (0)