Skip to content

Commit f95c375

Browse files
authored
Merge branch 'main' into owl-bot-update-lock-52210e0e0559f5ea8c52be148b33504022e1faef4e95fbe4b32d68022af2fa7e
2 parents a9c7350 + afb0311 commit f95c375

File tree

10 files changed

+6
-12
lines changed

10 files changed

+6
-12
lines changed

db_dtypes/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@
2727
import pyarrow
2828
import pyarrow.compute
2929

30-
31-
from db_dtypes.version import __version__
3230
from db_dtypes import core
33-
31+
from db_dtypes.version import __version__
3432

3533
date_dtype_name = "dbdate"
3634
time_dtype_name = "dbtime"

db_dtypes/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from db_dtypes import pandas_backports
2323

24-
2524
pandas_release = pandas_backports.pandas_release
2625

2726

db_dtypes/pandas_backports.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import pandas.compat.numpy.function
3030
import pandas.core.nanops
3131

32-
3332
pandas_release = packaging.version.parse(pandas.__version__).release
3433

3534
# Create aliases for private methods in case they move in a future version.

noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import os
2222
import pathlib
2323
import re
24-
import re
2524
import shutil
2625
from typing import Dict, List
2726
import warnings

samples/snippets/pandas_date_and_time.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def pandas_date_and_time():
1717
# [START bigquery_pandas_date_create]
1818

1919
import datetime
20+
2021
import pandas as pd
22+
2123
import db_dtypes # noqa import to register dtypes
2224

2325
dates = pd.Series([datetime.date(2021, 9, 17), "2021-9-18"], dtype="dbdate")

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import io
1616
import os
1717
import re
18+
1819
from setuptools import setup
1920

2021
# Package metadata.

tests/compliance/date/test_date_compliance.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@
2121
"""
2222

2323
import pandas
24-
from pandas.tests.extension import base
2524
import pandas._testing as tm
25+
from pandas.tests.extension import base
2626
import pytest
2727

2828
import db_dtypes
2929

30-
3130
# TODO(https://github.com/googleapis/python-db-dtypes-pandas/issues/87): Add
3231
# compliance tests for arithmetic operations.
3332

tests/compliance/time/test_time_compliance.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@
2121
"""
2222

2323
import pandas
24-
from pandas.tests.extension import base
2524
import pandas._testing as tm
25+
from pandas.tests.extension import base
2626
import pytest
2727

2828
import db_dtypes
2929

30-
3130
# TODO(https://github.com/googleapis/python-db-dtypes-pandas/issues/87): Add
3231
# compliance tests for arithmetic operations.
3332

tests/unit/test_arrow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import db_dtypes
2525

26-
2726
SECOND_NANOS = 1_000_000_000
2827
MINUTE_NANOS = 60 * SECOND_NANOS
2928
HOUR_NANOS = 60 * MINUTE_NANOS

tests/unit/test_date.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import db_dtypes
2626
from db_dtypes import pandas_backports
2727

28-
2928
VALUE_PARSING_TEST_CASES = [
3029
# Min/Max values for pandas.Timestamp.
3130
("1677-09-22", datetime.date(1677, 9, 22)),

0 commit comments

Comments
 (0)