mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Resolve importlib.metadata 3.13 issues (#12299)
This commit is contained in:
@@ -68,12 +68,6 @@ doctest.TestResults.__new__
|
||||
email.utils.getaddresses
|
||||
email.utils.parseaddr
|
||||
filecmp.dircmp.__init__
|
||||
importlib.metadata.DeprecatedTuple
|
||||
importlib.metadata.Distribution.origin
|
||||
importlib.metadata._meta.SimplePath.exists
|
||||
importlib.metadata._meta.SimplePath.read_bytes
|
||||
importlib.metadata._meta.SimplePath.read_text
|
||||
importlib.metadata.diagnose
|
||||
importlib.resources.Anchor
|
||||
importlib.resources.Resource
|
||||
importlib.resources.__all__
|
||||
|
||||
@@ -4,7 +4,6 @@ import sys
|
||||
from _typeshed import StrPath
|
||||
from os import PathLike
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
from zipfile import Path as ZipPath
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
@@ -16,16 +15,12 @@ if sys.version_info >= (3, 10):
|
||||
def parent(self) -> PathLike[str]: ... # undocumented
|
||||
|
||||
def read_text(self, encoding: str | None = ..., errors: str | None = ...) -> str: ...
|
||||
def read_bytes(self) -> bytes: ...
|
||||
def joinpath(self, *other: StrPath) -> MyPath: ...
|
||||
def __truediv__(self, add: StrPath) -> MyPath: ...
|
||||
def exists(self) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
|
||||
def takes_simple_path(p: SimplePath[Any]) -> None: ...
|
||||
|
||||
else:
|
||||
|
||||
def takes_simple_path(p: SimplePath) -> None: ...
|
||||
def takes_simple_path(p: SimplePath) -> None: ...
|
||||
|
||||
takes_simple_path(Path())
|
||||
takes_simple_path(ZipPath(""))
|
||||
|
||||
Reference in New Issue
Block a user