mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
setuptools: Remove problematic private module compat (#13280)
This commit is contained in:
@@ -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.*
|
||||
|
||||
@@ -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]
|
||||
@@ -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: ...
|
||||
@@ -1,3 +0,0 @@
|
||||
from typing import Final
|
||||
|
||||
PTH_ENCODING: Final[str | None]
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user