mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-12 21:21:43 +08:00
setuptools: Remove problematic private module compat (#13280)
This commit is contained in:
@@ -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