setuptools: Remove problematic private module compat (#13280)

This commit is contained in:
Ali Hamdan
2024-12-22 21:05:11 +01:00
committed by GitHub
parent 9497f8aebf
commit db3c2cf69d
6 changed files with 1 additions and 23 deletions

View File

@@ -109,6 +109,7 @@ distutils\..+
# Private APIs, tests and other vendored code
setuptools.config._validate_pyproject.*
setuptools.compat.*
setuptools.command.build_py.build_py.existing_egg_info_dir
.+?\.tests.*
.+?\._vendor.*

View File

@@ -1,9 +0,0 @@
import sys
__all__ = ["tomllib"]
if sys.version_info >= (3, 11):
import tomllib
else:
# This is actually vendored
import tomli as tomllib # type: ignore[import-not-found] # pyright: ignore[reportMissingImports]

View File

@@ -1,4 +0,0 @@
from _typeshed import StrOrBytesPath
from shutil import _OnExcCallback
def shutil_rmtree(path: StrOrBytesPath, ignore_errors: bool = False, onexc: _OnExcCallback | None = None) -> None: ...

View File

@@ -1,3 +0,0 @@
from typing import Final
PTH_ENCODING: Final[str | None]

View File

@@ -1,7 +0,0 @@
import sys
from typing import Final
if sys.version_info >= (3, 10):
LOCALE_ENCODING: Final = "locale"
else:
LOCALE_ENCODING: Final = None