Skip to content

Commit

Permalink
Pull static
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Dec 18, 2024
1 parent 4d04bf8 commit 1469643
Show file tree
Hide file tree
Showing 21 changed files with 107 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ _R = TypeVar("_R")
def register_table_methods(base_classes: list[Any], **kwargs: Any) -> None: ...

class CustomTableResource(TableResource):
# FIXME: Signature of "batch_writer" incompatible with supertype "TableResource"
def batch_writer( # type: ignore [override]
def batch_writer( # type: ignore[override]
self,
overwrite_by_pkeys: list[str] | None = ...,
flush_amount: int = ...,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ class AIOServiceAction(ServiceAction):
factory: ResourceFactory | None = ...,
service_context: ServiceContext | None = ...,
) -> None: ...
async def __call__( # type: ignore [override]
async def __call__( # type: ignore[override]
self, parent: ServiceResource, *args: Any, **kwargs: Any
) -> ServiceResource | list[ServiceResource] | dict[str, Any]: ...

class AioBatchAction(ServiceAction):
async def __call__( # type: ignore [override]
async def __call__( # type: ignore[override]
self, parent: ServiceResource, *args: Any, **kwargs: Any
) -> list[dict[str, Any]]: ...

class AIOWaiterAction(WaiterAction):
async def __call__( # type: ignore [override]
async def __call__( # type: ignore[override]
self, parent: ServiceResource, *args: Any, **kwargs: Any
) -> None: ...
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AIOResourceCollection(ResourceCollection):
def __anext__(self) -> AsyncIterator[Any]: ...
def __aiter__(self) -> AsyncIterator[Any]: ...
def __iter__(self) -> NoReturn: ...
def pages(self) -> AsyncIterator[list[Any]]: ... # type: ignore [override]
def pages(self) -> AsyncIterator[list[Any]]: ... # type: ignore[override]

class AIOCollectionManager(CollectionManager):
def __init__(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ logger: logging.Logger

class AIOBoto3ResourceFactory(ResourceFactory):
def __init__(self, emitter: BaseEventHooks) -> None: ...
async def load_from_definition( # type: ignore [override]
async def load_from_definition( # type: ignore[override]
self,
resource_name: str,
single_resource_json_definition: Any,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ from boto3.resources.base import ServiceResource
from boto3.resources.response import RawHandler, ResourceHandler

class AIOResourceHandler(ResourceHandler):
async def __call__( # type: ignore [override]
async def __call__( # type: ignore[override]
self, parent: ServiceResource, params: dict[str, Any], response: dict[str, Any]
) -> ServiceResource | list[ServiceResource]: ...

class AIORawHandler(RawHandler):
async def __call__( # type: ignore [override]
async def __call__( # type: ignore[override]
self, parent: ServiceResource, params: dict[str, Any], response: dict[str, Any]
) -> dict[str, Any]: ...
6 changes: 3 additions & 3 deletions mypy_boto3_builder/stubs_static/types-aioboto3/session.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class Session(Boto3Session):
profile_name: str | None = ...,
) -> None:
self._session: BotocoreSession
self.resource_factory: AIOBoto3ResourceFactory # type: ignore [override]
self.resource_factory: AIOBoto3ResourceFactory # type: ignore[override]
self._loader: Loader

def get_credentials(self) -> AioCredentials | None: ...
def client( # type: ignore [override]
def client( # type: ignore[override]
self,
service_name: str,
region_name: str | None = ...,
Expand All @@ -45,7 +45,7 @@ class Session(Boto3Session):
aws_session_token: str | None = ...,
config: AioConfig | None = ...,
) -> ClientCreatorContext[AioBaseClient]: ...
def resource( # type: ignore [override]
def resource( # type: ignore[override]
self,
service_name: str,
region_name: str | None = ...,
Expand Down
2 changes: 1 addition & 1 deletion mypy_boto3_builder/stubs_static/types-aiobotocore/args.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class _GetClientArgsTypeDef(TypedDict):
exceptions_factory: Any

class AioClientArgsCreator(ClientArgsCreator):
def get_client_args( # type: ignore [override]
def get_client_args( # type: ignore[override]
self,
service_model: ServiceModel,
region_name: str,
Expand Down
6 changes: 3 additions & 3 deletions mypy_boto3_builder/stubs_static/types-aiobotocore/client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _R = TypeVar("_R")
history_recorder: HistoryRecorder

class AioClientCreator(ClientCreator):
async def create_client( # type: ignore [override]
async def create_client( # type: ignore[override]
self,
service_name: str,
region_name: str,
Expand All @@ -41,5 +41,5 @@ class AioBaseClient(BaseClient):
exc_type: type[BaseException] | None,
exc_val: BaseException | None,
tb: TracebackType | None,
) -> Any: ...
async def close(self) -> None: ... # type: ignore [override]
) -> None: ...
async def close(self) -> None: ... # type: ignore[override]
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Copyright 2024 Vlad Emelianov
from botocore.configprovider import ConfigValueStore, SmartDefaultsConfigStoreFactory

class AioSmartDefaultsConfigStoreFactory(SmartDefaultsConfigStoreFactory):
async def merge_smart_defaults( # type: ignore [override]
async def merge_smart_defaults( # type: ignore[override]
self,
config_store: ConfigValueStore,
mode: str,
region_name: str,
) -> None: ...
async def resolve_auto_mode(self, region_name: str) -> str: ... # type: ignore [override]
async def resolve_auto_mode(self, region_name: str) -> str: ... # type: ignore[override]
44 changes: 22 additions & 22 deletions mypy_boto3_builder/stubs_static/types-aiobotocore/credentials.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,31 @@ def create_mfa_serial_refresher(actual_refresh: Any) -> Any: ...
def create_aio_mfa_serial_refresher(actual_refresh: Any) -> Any: ...

class AioCredentials(Credentials):
async def get_frozen_credentials(self) -> ReadOnlyCredentials: ... # type: ignore [override]
async def get_frozen_credentials(self) -> ReadOnlyCredentials: ... # type: ignore[override]

class AioRefreshableCredentials(RefreshableCredentials):
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
@property # type: ignore [override]
def access_key(self) -> str: ... # type: ignore [override]
@property # type: ignore[override]
def access_key(self) -> str: ...
@access_key.setter
def access_key(self, value: str) -> None: ...
@property # type: ignore [override]
def secret_key(self) -> str: ... # type: ignore [override]
@property # type: ignore[override]
def secret_key(self) -> str: ...
@secret_key.setter
def secret_key(self, value: str) -> None: ...
@property # type: ignore [override]
def token(self) -> str: ... # type: ignore [override]
@property # type: ignore[override]
def token(self) -> str: ...
@token.setter
def token(self, value: str) -> None: ...
async def get_frozen_credentials(self) -> ReadOnlyCredentials: ... # type: ignore [override]
async def get_frozen_credentials(self) -> ReadOnlyCredentials: ... # type: ignore[override]

class AioDeferredRefreshableCredentials(AioRefreshableCredentials):
method: Any
def __init__(self, refresh_using: Any, method: Any, time_fetcher: Any = ...) -> None: ...
def refresh_needed(self, refresh_in: Any | None = ...) -> bool: ...

class AioCachedCredentialFetcher(CachedCredentialFetcher):
async def fetch_credentials(self) -> Any: ... # type: ignore [override]
async def fetch_credentials(self) -> Any: ... # type: ignore[override]

class AioBaseAssumeRoleCredentialFetcher(
BaseAssumeRoleCredentialFetcher, AioCachedCredentialFetcher
Expand All @@ -99,41 +99,41 @@ class AioAssumeRoleWithWebIdentityCredentialFetcher(AioBaseAssumeRoleCredentialF

class AioProcessProvider(ProcessProvider):
def __init__(self, *args: Any, popen: Any = ..., **kwargs: Any) -> None: ...
async def load(self) -> AioCredentials: ... # type: ignore [override]
async def load(self) -> AioCredentials: ... # type: ignore[override]

class AioInstanceMetadataProvider(InstanceMetadataProvider):
async def load(self) -> AioRefreshableCredentials: ... # type: ignore [override]
async def load(self) -> AioRefreshableCredentials: ... # type: ignore[override]

class AioEnvProvider(EnvProvider):
async def load(self) -> Any: ... # type: ignore [override]
async def load(self) -> Any: ... # type: ignore[override]

class AioOriginalEC2Provider(OriginalEC2Provider):
async def load(self) -> AioCredentials: ... # type: ignore [override]
async def load(self) -> AioCredentials: ... # type: ignore[override]

class AioSharedCredentialProvider(SharedCredentialProvider):
async def load(self) -> AioCredentials: ... # type: ignore [override]
async def load(self) -> AioCredentials: ... # type: ignore[override]

class AioConfigProvider(ConfigProvider):
async def load(self) -> AioCredentials: ... # type: ignore [override]
async def load(self) -> AioCredentials: ... # type: ignore[override]

class AioBotoProvider(BotoProvider):
async def load(self) -> AioCredentials: ... # type: ignore [override]
async def load(self) -> AioCredentials: ... # type: ignore[override]

class AioAssumeRoleProvider(AssumeRoleProvider):
async def load(self) -> AioDeferredRefreshableCredentials: ... # type: ignore [override]
async def load(self) -> AioDeferredRefreshableCredentials: ... # type: ignore[override]

class AioAssumeRoleWithWebIdentityProvider(AssumeRoleWithWebIdentityProvider):
async def load(self) -> AioDeferredRefreshableCredentials: ... # type: ignore [override]
async def load(self) -> AioDeferredRefreshableCredentials: ... # type: ignore[override]

class AioCanonicalNameCredentialSourcer(CanonicalNameCredentialSourcer):
async def source_credentials(self, source_name: str) -> Any: ... # type: ignore [override]
async def source_credentials(self, source_name: str) -> Any: ... # type: ignore[override]

class AioContainerProvider(ContainerProvider):
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
async def load(self) -> AioRefreshableCredentials: ... # type: ignore [override]
async def load(self) -> AioRefreshableCredentials: ... # type: ignore[override]

class AioCredentialResolver(CredentialResolver):
async def load_credentials(self) -> Any: ... # type: ignore [override]
async def load_credentials(self) -> Any: ... # type: ignore[override]

class AioSSOCredentialFetcher(AioCachedCredentialFetcher):
def __init__(
Expand All @@ -151,4 +151,4 @@ class AioSSOCredentialFetcher(AioCachedCredentialFetcher):
) -> None: ...

class AioSSOProvider(SSOProvider):
async def load(self) -> AioDeferredRefreshableCredentials: ... # type: ignore [override]
async def load(self) -> AioDeferredRefreshableCredentials: ... # type: ignore[override]
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ class AioEndpointDiscoveryManager(EndpointDiscoveryManager):
async def describe_endpoint(self, **kwargs: Any) -> Any: ...

class AioEndpointDiscoveryHandler(EndpointDiscoveryHandler):
async def discover_endpoint( # type: ignore [override]
async def discover_endpoint( # type: ignore[override]
self, request: Request, operation_name: str, **kwargs: Any
) -> None: ...
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ async def convert_to_response_dict(
) -> dict[str, Any]: ...

class AioEndpoint(Endpoint):
async def close(self) -> None: ... # type: ignore [override]
async def close(self) -> None: ... # type: ignore[override]
async def create_request(self, params: Any, operation_model: Any | None = ...) -> Request: ...

class AioEndpointCreator(EndpointCreator):
def create_endpoint( # type: ignore [override]
def create_endpoint( # type: ignore[override]
self,
service_model: ServiceModel,
region_name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ class AioEventStream(EventStream[_T], Generic[_T]):
def __iter__(self) -> Iterator[_T]: ...
def __aiter__(self) -> AsyncIterator[_T]: ...
async def __anext__(self) -> _T: ...
async def get_initial_response(self) -> _T: ... # type: ignore [override]
async def get_initial_response(self) -> _T: ... # type: ignore[override]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AioPageIterator(PageIterator):
async def __anext__(self) -> Any: ...
def result_key_iters(self) -> Any: ...
async def build_full_result(self) -> Any: ...
async def search(self, expression: str) -> Iterator[Any]: ... # type: ignore [override]
async def search(self, expression: str) -> Iterator[Any]: ... # type: ignore[override]

class AioPaginator(Paginator):
PAGE_ITERATOR_CLS: type[AioPageIterator]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ from botocore.regions import EndpointRulesetResolver
LOG: Logger

class AioEndpointRulesetResolver(EndpointRulesetResolver):
async def construct_endpoint( # type: ignore [override]
async def construct_endpoint( # type: ignore[override]
self,
operation_model: OperationModel,
call_args: Mapping[str, Any] | None,
Expand Down
8 changes: 4 additions & 4 deletions mypy_boto3_builder/stubs_static/types-aiobotocore/session.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AioSession(Session):
unique_id: Any | None = ...,
unique_id_uses_count: bool = ...,
) -> None: ...
def create_client( # type: ignore [override]
def create_client( # type: ignore[override]
self,
service_name: str,
region_name: str | None = ...,
Expand All @@ -58,15 +58,15 @@ class AioSession(Session):
aws_session_token: str | None = ...,
config: Config | None = ...,
) -> ClientCreatorContext[AioBaseClient]: ...
async def get_credentials(self) -> AioCredentials | None: ... # type: ignore [override]
async def get_credentials(self) -> AioCredentials | None: ... # type: ignore[override]
def set_credentials(
self, access_key: str, secret_key: str, token: Any | None = ...
) -> None: ...
async def get_service_model( # type: ignore [override]
async def get_service_model( # type: ignore[override]
self, service_name: str, api_version: Any | None = ...
) -> ServiceModel: ...
async def get_service_data(self, service_name: str, api_version: Any | None = ...) -> Any: ...
async def get_available_regions( # type: ignore [override]
async def get_available_regions( # type: ignore[override]
self, service_name: str, partition_name: str = ..., allow_non_regional: bool = ...
) -> list[str]: ...

Expand Down
4 changes: 2 additions & 2 deletions mypy_boto3_builder/stubs_static/types-aiobotocore/signers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AioRequestSigner(RequestSigner):
async def handler(
self, operation_name: Any | None = ..., request: Any | None = ..., **kwargs: Any
) -> None: ...
async def sign( # type: ignore [override]
async def sign( # type: ignore[override]
self,
operation_name: str,
request: Request,
Expand All @@ -24,7 +24,7 @@ class AioRequestSigner(RequestSigner):
expires_in: Any | None = ...,
signing_name: Any | None = ...,
) -> None: ...
async def get_auth_instance( # type: ignore [override]
async def get_auth_instance( # type: ignore[override]
self,
signing_name: str,
region_name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AioDeferredRefreshableToken(DeferredRefreshableToken):
refresh_using: Callable[[], FrozenAuthToken],
time_fetcher: Callable[[], datetime.datetime] = ...,
) -> None: ...
async def get_frozen_token(self) -> FrozenAuthToken: ... # type: ignore [override]
async def get_frozen_token(self) -> FrozenAuthToken: ... # type: ignore[override]

class AioSSOTokenProvider(SSOTokenProvider):
def load_token(self) -> AioDeferredRefreshableToken: ...
6 changes: 3 additions & 3 deletions mypy_boto3_builder/stubs_static/types-aiobotocore/utils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ class AioIMDSRegionProvider(IMDSRegionProvider):
async def provide(self) -> str: ...

class AioInstanceMetadataRegionFetcher(AioIMDSFetcher, InstanceMetadataRegionFetcher):
async def retrieve_region(self) -> str | None: ... # type: ignore [override]
async def retrieve_region(self) -> str | None: ... # type: ignore[override]

class AioIdentityCache(IdentityCache):
async def get_credentials(self, **kwargs: Any) -> AioCredentials: ... # type: ignore [override]
async def get_credentials(self, **kwargs: Any) -> AioCredentials: ... # type: ignore[override]

class AioS3ExpressIdentityCache(AioIdentityCache, S3ExpressIdentityCache):
async def get_credentials(self, bucket: str) -> AioCredentials: ... # type: ignore [override]
async def get_credentials(self, bucket: str) -> AioCredentials: ... # type: ignore[override]

class AioS3ExpressIdentityResolver(S3ExpressIdentityResolver): ...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class NormalizedOperationMethod(_NormalizedOperationMethod):
async def __call__(self, **kwargs: Any) -> Any: ...

class AIOWaiter(Waiter):
async def wait(self, **kwargs: Any) -> None: ... # type: ignore [override]
async def wait(self, **kwargs: Any) -> None: ... # type: ignore[override]

def create_waiter_with_client(
waiter_name: str, waiter_model: WaiterModel, client: BaseClient
Expand Down
Loading

0 comments on commit 1469643

Please sign in to comment.