11
11
from pandas .util ._exceptions import find_stack_level
12
12
13
13
if TYPE_CHECKING :
14
- import google .auth
14
+ from google .auth . credentials import Credentials
15
15
16
16
from pandas import DataFrame
17
17
@@ -37,7 +37,7 @@ def read_gbq(
37
37
dialect : str | None = None ,
38
38
location : str | None = None ,
39
39
configuration : dict [str , Any ] | None = None ,
40
- credentials : google . auth . credentials . Credentials | None = None ,
40
+ credentials : Credentials | None = None ,
41
41
use_bqstorage_api : bool | None = None ,
42
42
max_results : int | None = None ,
43
43
progress_bar_type : str | None = None ,
@@ -230,7 +230,7 @@ def to_gbq(
230
230
table_schema : list [dict [str , str ]] | None = None ,
231
231
location : str | None = None ,
232
232
progress_bar : bool = True ,
233
- credentials : google . auth . credentials . Credentials | None = None ,
233
+ credentials : Credentials | None = None ,
234
234
) -> None :
235
235
warnings .warn (
236
236
"to_gbq is deprecated and will be removed in a future version. "
0 commit comments