Skip to content

Commit d2fa9ef

Browse files
committed
add noqa for backward compatibility
1 parent 4c3d667 commit d2fa9ef

File tree

1 file changed

+12
-21
lines changed

1 file changed

+12
-21
lines changed

pandas_gbq/gbq.py

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,33 @@
88
import re
99
import warnings
1010

11+
from pandas_gbq.contexts import Context # noqa - backward compatible export
1112
from pandas_gbq.contexts import context
12-
from pandas_gbq.exceptions import (
13+
from pandas_gbq.exceptions import ( # noqa - backward compatible export
1314
DatasetCreationError,
1415
GenericGBQException,
1516
InvalidColumnOrder,
1617
InvalidIndexColumn,
17-
InvalidPageToken,
18-
InvalidSchema,
1918
NotFoundException,
20-
QueryTimeout,
2119
TableCreationError,
2220
)
21+
from pandas_gbq.exceptions import InvalidPageToken # noqa - backward compatible export
22+
from pandas_gbq.exceptions import InvalidSchema # noqa - backward compatible export
23+
from pandas_gbq.exceptions import QueryTimeout # noqa - backward compatible export
2324
from pandas_gbq.features import FEATURES
24-
from pandas_gbq.gbq_connector import GbqConnector, create_user_agent
25+
from pandas_gbq.gbq_connector import ( # noqa - backward compatible export
26+
GbqConnector,
27+
_bqschema_to_nullsafe_dtypes,
28+
_finalize_dtypes,
29+
create_user_agent,
30+
)
31+
from pandas_gbq.gbq_connector import _get_client # noqa - backward compatible export
2532
import pandas_gbq.schema
2633
import pandas_gbq.schema.pandas_to_bigquery
2734

2835
logger = logging.getLogger(__name__)
2936

3037

31-
__all__ = [
32-
# The following items were originally defined in this module
33-
# Export them here for backward compatibility.
34-
"DatasetCreationError",
35-
"InvalidColumnOrder",
36-
"InvalidIndexColumn",
37-
"InvalidPageToken",
38-
"InvalidSchema",
39-
"NotFoundException",
40-
"TableCreationError",
41-
"GenericGBQException",
42-
"QueryTimeout",
43-
"create_user_agent",
44-
]
45-
46-
4738
def _test_google_api_imports():
4839
try:
4940
import packaging # noqa

0 commit comments

Comments
 (0)