Skip to content

Commit 0f607bd

Browse files
committed
Fix flake regressions
1 parent 5677f84 commit 0f607bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

influxdb/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
'SeriesHelper',
1818
]
1919

20-
if os.environ.get("INFLUXDB_NO_DATAFRAME_CLIENT", "0").lower() not in ("1", "true"):
21-
from .dataframe_client import DataFrameClient
22-
__all__.append( "DataFrameClient" )
20+
NO_DATAFRAME_CLIENT = os.environ.get("INFLUXDB_NO_DATAFRAME_CLIENT", "0")
21+
if NO_DATAFRAME_CLIENT.lower() not in ("1", "true"):
22+
from .dataframe_client import DataFrameClient # noqa: F401 unused import
23+
__all__.append("DataFrameClient")
2324

2425

2526
__version__ = '5.0.0'

0 commit comments

Comments
 (0)