Skip to content

Commit 152f5cf

Browse files
committed
Fix py code style
1 parent 49c362b commit 152f5cf

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

chdb/__init__.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ChdbError(Exception):
99
_arrow_format = set({"dataframe", "arrowtable"})
1010
_process_result_format_funs = {
1111
"dataframe": lambda x: to_df(x),
12-
"arrowtable": lambda x: to_arrowTable(x)
12+
"arrowtable": lambda x: to_arrowTable(x),
1313
}
1414

1515
# If any UDF is defined, the path of the UDF will be set to this variable
@@ -18,7 +18,7 @@ class ChdbError(Exception):
1818
# UDF script path will be f"{g_udf_path}/{func_name}.py"
1919
g_udf_path = ""
2020

21-
chdb_version = ('0', '6', '0')
21+
chdb_version = ("0", "6", "0")
2222
if sys.version_info[:2] >= (3, 7):
2323
# get the path of the current file
2424
current_path = os.path.dirname(os.path.abspath(__file__))
@@ -78,8 +78,16 @@ def query(sql, output_format="CSV", path="", udf_path=""):
7878
raise ChdbError(res.error_message())
7979
return result_func(res)
8080

81+
8182
# alias for query
8283
sql = query
8384

84-
__all__ = ["ChdbError", "query", "sql", "chdb_version",
85-
"engine_version", "to_df", "to_arrowTable"]
85+
__all__ = [
86+
"ChdbError",
87+
"query",
88+
"sql",
89+
"chdb_version",
90+
"engine_version",
91+
"to_df",
92+
"to_arrowTable",
93+
]

chdb/session/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ def query(self, sql, fmt="CSV"):
4545
Execute a query.
4646
"""
4747
return query(sql, fmt, path=self._path)
48-
48+
4949
# alias sql = query
5050
sql = query

0 commit comments

Comments
 (0)