mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Remove stubs for appdirs and backports.ssl-match-hostname (#9884)
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
version = "1.4.*"
|
||||
no_longer_updated = true
|
||||
extra_description = """\
|
||||
The `appdirs` package has been deprecated in favour of the `platformdirs` \
|
||||
package, which ships with a `py.typed` file. Users should migrate their \
|
||||
`appdirs` code to use `platformdirs` instead, which will remove the need for \
|
||||
the `types-appdirs` package.\
|
||||
"""
|
||||
@@ -1,57 +0,0 @@
|
||||
from typing_extensions import Literal
|
||||
|
||||
__version_info__: tuple[int, int, int]
|
||||
PY3: Literal[True]
|
||||
unicode = str
|
||||
system: str
|
||||
|
||||
def user_data_dir(
|
||||
appname: str | None = ..., appauthor: str | Literal[False] | None = ..., version: str | None = ..., roaming: bool = ...
|
||||
) -> str: ...
|
||||
def site_data_dir(
|
||||
appname: str | None = ..., appauthor: str | Literal[False] | None = ..., version: str | None = ..., multipath: bool = ...
|
||||
) -> str: ...
|
||||
def user_config_dir(
|
||||
appname: str | None = ..., appauthor: str | Literal[False] | None = ..., version: str | None = ..., roaming: bool = ...
|
||||
) -> str: ...
|
||||
def site_config_dir(
|
||||
appname: str | None = ..., appauthor: str | Literal[False] | None = ..., version: str | None = ..., multipath: bool = ...
|
||||
) -> str: ...
|
||||
def user_cache_dir(
|
||||
appname: str | None = ..., appauthor: str | Literal[False] | None = ..., version: str | None = ..., opinion: bool = ...
|
||||
) -> str: ...
|
||||
def user_state_dir(
|
||||
appname: str | None = ..., appauthor: str | Literal[False] | None = ..., version: str | None = ..., roaming: bool = ...
|
||||
) -> str: ...
|
||||
def user_log_dir(
|
||||
appname: str | None = ..., appauthor: str | Literal[False] | None = ..., version: str | None = ..., opinion: bool = ...
|
||||
) -> str: ...
|
||||
|
||||
class AppDirs:
|
||||
appname: str
|
||||
appauthor: str
|
||||
version: str
|
||||
roaming: bool
|
||||
multipath: bool
|
||||
def __init__(
|
||||
self,
|
||||
appname: str | None = ...,
|
||||
appauthor: str | Literal[False] | None = ...,
|
||||
version: str | None = ...,
|
||||
roaming: bool = ...,
|
||||
multipath: bool = ...,
|
||||
) -> None: ...
|
||||
@property
|
||||
def user_data_dir(self) -> str: ...
|
||||
@property
|
||||
def site_data_dir(self) -> str: ...
|
||||
@property
|
||||
def user_config_dir(self) -> str: ...
|
||||
@property
|
||||
def site_config_dir(self) -> str: ...
|
||||
@property
|
||||
def user_cache_dir(self) -> str: ...
|
||||
@property
|
||||
def user_state_dir(self) -> str: ...
|
||||
@property
|
||||
def user_log_dir(self) -> str: ...
|
||||
@@ -1,2 +0,0 @@
|
||||
version = "3.7.*"
|
||||
no_longer_updated = true
|
||||
@@ -1,4 +0,0 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
# Explicitly mark this package as incomplete.
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
@@ -1,5 +0,0 @@
|
||||
from ssl import _PeerCertRetDictType
|
||||
|
||||
class CertificateError(ValueError): ...
|
||||
|
||||
def match_hostname(cert: _PeerCertRetDictType, hostname: str) -> None: ...
|
||||
Reference in New Issue
Block a user