mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 02:57:14 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Mapping, Type
|
||||
from typing import Any, Mapping
|
||||
|
||||
from boto.connection import AWSQueryConnection
|
||||
|
||||
@@ -8,7 +8,7 @@ class KMSConnection(AWSQueryConnection):
|
||||
DefaultRegionEndpoint: str
|
||||
ServiceName: str
|
||||
TargetPrefix: str
|
||||
ResponseError: Type[Exception]
|
||||
ResponseError: type[Exception]
|
||||
region: Any
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
def create_alias(self, alias_name: str, target_key_id: str) -> dict[str, Any] | None: ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Text, Type
|
||||
from typing import Text
|
||||
|
||||
from boto.connection import AWSAuthConnection
|
||||
from boto.regioninfo import RegionInfo
|
||||
@@ -10,7 +10,7 @@ class S3RegionInfo(RegionInfo):
|
||||
self,
|
||||
name: Text | None = ...,
|
||||
endpoint: str | None = ...,
|
||||
connection_cls: Type[AWSAuthConnection] | None = ...,
|
||||
connection_cls: type[AWSAuthConnection] | None = ...,
|
||||
**kw_params,
|
||||
) -> S3Connection: ...
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Text, Type
|
||||
from typing import Any, Text
|
||||
|
||||
from .bucketlistresultset import BucketListResultSet
|
||||
from .connection import S3Connection
|
||||
@@ -19,8 +19,8 @@ class Bucket:
|
||||
MFADeleteRE: str
|
||||
name: Text
|
||||
connection: S3Connection
|
||||
key_class: Type[Key]
|
||||
def __init__(self, connection: S3Connection | None = ..., name: Text | None = ..., key_class: Type[Key] = ...) -> None: ...
|
||||
key_class: type[Key]
|
||||
def __init__(self, connection: S3Connection | None = ..., name: Text | None = ..., key_class: type[Key] = ...) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __contains__(self, key_name) -> bool: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Text, Type
|
||||
from typing import Any, Text
|
||||
|
||||
from boto.connection import AWSAuthConnection
|
||||
from boto.exception import BotoClientError
|
||||
@@ -48,7 +48,7 @@ class S3Connection(AWSAuthConnection):
|
||||
DefaultCallingFormat: Any
|
||||
QueryString: str
|
||||
calling_format: Any
|
||||
bucket_class: Type[Bucket]
|
||||
bucket_class: type[Bucket]
|
||||
anon: Any
|
||||
def __init__(
|
||||
self,
|
||||
@@ -66,7 +66,7 @@ class S3Connection(AWSAuthConnection):
|
||||
calling_format: Any = ...,
|
||||
path: str = ...,
|
||||
provider: str = ...,
|
||||
bucket_class: Type[Bucket] = ...,
|
||||
bucket_class: type[Bucket] = ...,
|
||||
security_token: Any | None = ...,
|
||||
suppress_consec_slashes: bool = ...,
|
||||
anon: bool = ...,
|
||||
@@ -75,7 +75,7 @@ class S3Connection(AWSAuthConnection):
|
||||
) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __contains__(self, bucket_name): ...
|
||||
def set_bucket_class(self, bucket_class: Type[Bucket]) -> None: ...
|
||||
def set_bucket_class(self, bucket_class: type[Bucket]) -> None: ...
|
||||
def build_post_policy(self, expiration_time, conditions): ...
|
||||
def build_post_form_args(
|
||||
self,
|
||||
|
||||
@@ -3,7 +3,7 @@ import logging.handlers
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from typing import IO, Any, Callable, ContextManager, Iterable, Mapping, Sequence, Type, TypeVar
|
||||
from typing import IO, Any, Callable, ContextManager, Iterable, Mapping, Sequence, TypeVar
|
||||
|
||||
import boto.connection
|
||||
|
||||
@@ -37,7 +37,7 @@ else:
|
||||
_Provider = Any # TODO replace this with boto.provider.Provider once stubs exist
|
||||
_LockType = Any # TODO replace this with _thread.LockType once stubs exist
|
||||
|
||||
JSONDecodeError: Type[ValueError]
|
||||
JSONDecodeError: type[ValueError]
|
||||
qsa_of_interest: list[str]
|
||||
|
||||
def unquote_v(nv: str) -> str | tuple[str, str]: ...
|
||||
@@ -71,7 +71,7 @@ LOCALE_LOCK: _LockType
|
||||
def setlocale(name: str | tuple[str, str]) -> ContextManager[str]: ...
|
||||
def get_ts(ts: time.struct_time | None = ...) -> str: ...
|
||||
def parse_ts(ts: str) -> datetime.datetime: ...
|
||||
def find_class(module_name: str, class_name: str | None = ...) -> Type[Any] | None: ...
|
||||
def find_class(module_name: str, class_name: str | None = ...) -> type[Any] | None: ...
|
||||
def update_dme(username: str, password: str, dme_id: str, ip_address: str) -> str: ...
|
||||
def fetch_file(
|
||||
uri: str, file: IO[str] | None = ..., username: str | None = ..., password: str | None = ...
|
||||
|
||||
Reference in New Issue
Block a user