Skip to content

Commit

Permalink
Fixed types for exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasilije1990 committed Nov 29, 2023
1 parent de719e9 commit ad757d3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dlt/cli/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@

from IPython.core.display import HTML, display # type: ignore
from IPython.core.magic import (
Magics, # type: ignore
cell_magic, # type: ignore
line_cell_magic, # type: ignore
line_magic, # type: ignore
magics_class, register_line_magic, # type: ignore
)
Magics,
cell_magic,
line_cell_magic,
line_magic,
magics_class, register_line_magic,
) # type: ignore
from IPython.core.magic_arguments import argument, magic_arguments, parse_argstring # type: ignore


from ..common.runtime.exec_info import is_notebook, is_ipython
from dlt.cli import echo as fmt


import typing as t
from hyperscript import h
import typing as t # type: ignore
from hyperscript import h # type: ignore
import os
import traceback

Expand All @@ -41,7 +41,7 @@
class DltMagics(Magics):

@property
def display(self) -> t.Callable[..., t.Any]:
def display(self) -> t.Any:
if os.getenv("DATABRICKS_RUNTIME_VERSION"):
# Assume Databricks' 'display' is a callable with an unknown signature
databricks_display = self._shell.user_ns.get("display")
Expand Down Expand Up @@ -117,7 +117,7 @@ def settings(self, line:str)->str:
DEBUG_FLAG = True
return "Settings updated"
except:
pass
return "Settings update failed"


@magic_arguments()
Expand Down

0 comments on commit ad757d3

Please sign in to comment.