Skip to content

Commit

Permalink
stupid black version mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jtisbell4 committed Apr 25, 2024
1 parent 706fdc9 commit 7703b7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
24 changes: 8 additions & 16 deletions python/tempo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,11 @@ def calculate_time_horizon(


@overload
def display_html(df: pandasDataFrame) -> None:
...
def display_html(df: pandasDataFrame) -> None: ...


@overload
def display_html(df: DataFrame) -> None:
...
def display_html(df: DataFrame) -> None: ...


def display_html(df: Union[pandasDataFrame, DataFrame]) -> None:
Expand Down Expand Up @@ -190,16 +188,13 @@ def get_display_df(tsdf: t_tsdf.TSDF, k: int) -> DataFrame:
# to know more refer: /databricks/python_shell/scripts/db_ipykernel_launcher.py

@overload
def display_improvised(obj: t_tsdf.TSDF) -> None:
...
def display_improvised(obj: t_tsdf.TSDF) -> None: ...

@overload
def display_improvised(obj: pandasDataFrame) -> None:
...
def display_improvised(obj: pandasDataFrame) -> None: ...

@overload
def display_improvised(obj: DataFrame) -> None:
...
def display_improvised(obj: DataFrame) -> None: ...

def display_improvised(obj: Union[t_tsdf.TSDF, pandasDataFrame, DataFrame]) -> None:
if isinstance(obj, t_tsdf.TSDF):
Expand All @@ -212,16 +207,13 @@ def display_improvised(obj: Union[t_tsdf.TSDF, pandasDataFrame, DataFrame]) -> N
elif ENV_CAN_RENDER_HTML:

@overload
def display_html_improvised(obj: Optional[t_tsdf.TSDF]) -> None:
...
def display_html_improvised(obj: Optional[t_tsdf.TSDF]) -> None: ...

@overload
def display_html_improvised(obj: Optional[pandasDataFrame]) -> None:
...
def display_html_improvised(obj: Optional[pandasDataFrame]) -> None: ...

@overload
def display_html_improvised(obj: Optional[DataFrame]) -> None:
...
def display_html_improvised(obj: Optional[DataFrame]) -> None: ...

def display_html_improvised(
obj: Union[t_tsdf.TSDF, pandasDataFrame, DataFrame]
Expand Down
2 changes: 1 addition & 1 deletion python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ skipsdist = true
skip_install = true
deps =
flake8
black
black==24.4.1
commands =
black {posargs} {toxinidir}/tempo
flake8 --config {toxinidir}/.flake8 {toxinidir}/tempo
Expand Down

0 comments on commit 7703b7e

Please sign in to comment.