9292 from google .cloud .bigtable_v2 .services .bigtable .transports import (
9393 BigtableGrpcAsyncIOTransport as TransportType ,
9494 )
95+ from google .cloud .bigtable_v2 .services .bigtable import (
96+ BigtableAsyncClient as GapicClient ,
97+ )
9598 from google .cloud .bigtable .data ._async .mutations_batcher import _MB_SIZE
9699 from google .cloud .bigtable .data ._async ._replaceable_channel import (
97100 _AsyncReplaceableChannel ,
100103 from typing import Iterable # noqa: F401
101104 from grpc import insecure_channel
102105 from google .cloud .bigtable_v2 .services .bigtable .transports import BigtableGrpcTransport as TransportType # type: ignore
106+ from google .cloud .bigtable_v2 .services .bigtable import BigtableClient as GapicClient # type: ignore
103107 from google .cloud .bigtable .data ._sync_autogen .mutations_batcher import _MB_SIZE
104108 from google .cloud .bigtable .data ._sync_autogen ._replaceable_channel import ( # noqa: F401
105109 _ReplaceableChannel ,
@@ -207,7 +211,7 @@ def __init__(
207211 project = project ,
208212 client_options = client_options ,
209213 )
210- self ._gapic_client = CrossSync . GapicClient (
214+ self ._gapic_client = GapicClient (
211215 credentials = credentials ,
212216 client_options = client_options ,
213217 client_info = self .client_info ,
@@ -224,7 +228,7 @@ def __init__(
224228 self ._instance_owners : dict [_WarmedInstanceKey , Set [int ]] = {}
225229 self ._channel_init_time = time .monotonic ()
226230 self ._channel_refresh_task : CrossSync .Task [None ] | None = None
227- self ._executor = (
231+ self ._executor : concurrent . futures . ThreadPoolExecutor | None = (
228232 concurrent .futures .ThreadPoolExecutor () if not CrossSync .is_async else None
229233 )
230234 if self ._emulator_host is None :
@@ -876,24 +880,32 @@ def __init__(
876880 self .table_name = self .client ._gapic_client .table_path (
877881 self .client .project , instance_id , table_id
878882 )
879- self .app_profile_id = app_profile_id
883+ self .app_profile_id : str | None = app_profile_id
880884
881- self .default_operation_timeout = default_operation_timeout
882- self .default_attempt_timeout = default_attempt_timeout
883- self .default_read_rows_operation_timeout = default_read_rows_operation_timeout
884- self .default_read_rows_attempt_timeout = default_read_rows_attempt_timeout
885- self .default_mutate_rows_operation_timeout = (
885+ self .default_operation_timeout : float = default_operation_timeout
886+ self .default_attempt_timeout : float | None = default_attempt_timeout
887+ self .default_read_rows_operation_timeout : float = (
888+ default_read_rows_operation_timeout
889+ )
890+ self .default_read_rows_attempt_timeout : float | None = (
891+ default_read_rows_attempt_timeout
892+ )
893+ self .default_mutate_rows_operation_timeout : float = (
886894 default_mutate_rows_operation_timeout
887895 )
888- self .default_mutate_rows_attempt_timeout = default_mutate_rows_attempt_timeout
896+ self .default_mutate_rows_attempt_timeout : float | None = (
897+ default_mutate_rows_attempt_timeout
898+ )
889899
890- self .default_read_rows_retryable_errors = (
900+ self .default_read_rows_retryable_errors : Sequence [ type [ Exception ]] = (
891901 default_read_rows_retryable_errors or ()
892902 )
893- self .default_mutate_rows_retryable_errors = (
903+ self .default_mutate_rows_retryable_errors : Sequence [ type [ Exception ]] = (
894904 default_mutate_rows_retryable_errors or ()
895905 )
896- self .default_retryable_errors = default_retryable_errors or ()
906+ self .default_retryable_errors : Sequence [type [Exception ]] = (
907+ default_retryable_errors or ()
908+ )
897909
898910 try :
899911 self ._register_instance_future = CrossSync .create_task (
0 commit comments