Skip to content

Commit b669473

Browse files
committed
fix: lint and format
1 parent 39f4c2a commit b669473

File tree

3 files changed

+13
-25
lines changed

3 files changed

+13
-25
lines changed

packages/bigframes/bigframes/core/global_session.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
import bigframes.exceptions as bfe
2727

2828
if TYPE_CHECKING:
29-
import pandas
30-
3129
import bigframes.session
3230

3331
_global_session: Optional[bigframes.session.Session] = None

packages/bigframes/bigframes/core/sql/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
from __future__ import annotations
1514

1615
"""
1716
Utility functions for SQL construction.
1817
"""
1918

19+
from __future__ import annotations
20+
2021
import json
2122
from typing import (
2223
TYPE_CHECKING,

packages/bigframes/bigframes/session/__init__.py

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,7 @@ def read_gbq( # type: ignore[overload-overlap]
480480
col_order: Iterable[str] = ...,
481481
dry_run: Literal[False] = ...,
482482
allow_large_results: Optional[bool] = ...,
483-
) -> dataframe.DataFrame:
484-
...
483+
) -> dataframe.DataFrame: ...
485484

486485
@overload
487486
def read_gbq(
@@ -497,8 +496,7 @@ def read_gbq(
497496
col_order: Iterable[str] = ...,
498497
dry_run: Literal[True] = ...,
499498
allow_large_results: Optional[bool] = ...,
500-
) -> pandas.Series:
501-
...
499+
) -> pandas.Series: ...
502500

503501
def read_gbq(
504502
self,
@@ -570,8 +568,7 @@ def _read_gbq_colab(
570568
*,
571569
pyformat_args: Optional[Dict[str, Any]] = None,
572570
dry_run: Literal[False] = ...,
573-
) -> dataframe.DataFrame:
574-
...
571+
) -> dataframe.DataFrame: ...
575572

576573
@overload
577574
def _read_gbq_colab(
@@ -580,8 +577,7 @@ def _read_gbq_colab(
580577
*,
581578
pyformat_args: Optional[Dict[str, Any]] = None,
582579
dry_run: Literal[True] = ...,
583-
) -> pandas.Series:
584-
...
580+
) -> pandas.Series: ...
585581

586582
@log_adapter.log_name_override("read_gbq_colab")
587583
def _read_gbq_colab(
@@ -642,8 +638,7 @@ def read_gbq_query( # type: ignore[overload-overlap]
642638
filters: third_party_pandas_gbq.FiltersType = ...,
643639
dry_run: Literal[False] = ...,
644640
allow_large_results: Optional[bool] = ...,
645-
) -> dataframe.DataFrame:
646-
...
641+
) -> dataframe.DataFrame: ...
647642

648643
@overload
649644
def read_gbq_query(
@@ -659,8 +654,7 @@ def read_gbq_query(
659654
filters: third_party_pandas_gbq.FiltersType = ...,
660655
dry_run: Literal[True] = ...,
661656
allow_large_results: Optional[bool] = ...,
662-
) -> pandas.Series:
663-
...
657+
) -> pandas.Series: ...
664658

665659
def read_gbq_query(
666660
self,
@@ -807,8 +801,7 @@ def read_gbq_table( # type: ignore[overload-overlap]
807801
use_cache: bool = ...,
808802
col_order: Iterable[str] = ...,
809803
dry_run: Literal[False] = ...,
810-
) -> dataframe.DataFrame:
811-
...
804+
) -> dataframe.DataFrame: ...
812805

813806
@overload
814807
def read_gbq_table(
@@ -822,8 +815,7 @@ def read_gbq_table(
822815
use_cache: bool = ...,
823816
col_order: Iterable[str] = ...,
824817
dry_run: Literal[True] = ...,
825-
) -> pandas.Series:
826-
...
818+
) -> pandas.Series: ...
827819

828820
def read_gbq_table(
829821
self,
@@ -974,26 +966,23 @@ def read_pandas(
974966
pandas_dataframe: pandas.Index,
975967
*,
976968
write_engine: constants.WriteEngineType = "default",
977-
) -> bigframes.core.indexes.Index:
978-
...
969+
) -> bigframes.core.indexes.Index: ...
979970

980971
@typing.overload
981972
def read_pandas(
982973
self,
983974
pandas_dataframe: pandas.Series,
984975
*,
985976
write_engine: constants.WriteEngineType = "default",
986-
) -> bigframes.series.Series:
987-
...
977+
) -> bigframes.series.Series: ...
988978

989979
@typing.overload
990980
def read_pandas(
991981
self,
992982
pandas_dataframe: pandas.DataFrame,
993983
*,
994984
write_engine: constants.WriteEngineType = "default",
995-
) -> dataframe.DataFrame:
996-
...
985+
) -> dataframe.DataFrame: ...
997986

998987
def read_pandas(
999988
self,

0 commit comments

Comments
 (0)