Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
odashi committed Mar 25, 2024
1 parent 37855d8 commit c885225
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/latexify/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
DON'T TOUCH THIS FILE.
This file is replaced during the release process.
"""

__version__ = "0.0.0a0"
18 changes: 6 additions & 12 deletions src/latexify/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
@overload
def algorithmic(
fn: Callable[..., Any], **kwargs: Any
) -> ipython_wrappers.LatexifiedAlgorithm:
...
) -> ipython_wrappers.LatexifiedAlgorithm: ...


@overload
def algorithmic(
**kwargs: Any,
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedAlgorithm]:
...
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedAlgorithm]: ...


def algorithmic(
Expand Down Expand Up @@ -55,15 +53,13 @@ def wrapper(f):
@overload
def function(
fn: Callable[..., Any], **kwargs: Any
) -> ipython_wrappers.LatexifiedFunction:
...
) -> ipython_wrappers.LatexifiedFunction: ...


@overload
def function(
**kwargs: Any,
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedFunction]:
...
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedFunction]: ...


def function(
Expand Down Expand Up @@ -99,15 +95,13 @@ def wrapper(f):
@overload
def expression(
fn: Callable[..., Any], **kwargs: Any
) -> ipython_wrappers.LatexifiedFunction:
...
) -> ipython_wrappers.LatexifiedFunction: ...


@overload
def expression(
**kwargs: Any,
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedFunction]:
...
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedFunction]: ...


def expression(
Expand Down
3 changes: 1 addition & 2 deletions src/latexify/ipython_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def __call__(self, *args) -> Any:
return self._fn(*args)

@abc.abstractmethod
def __str__(self) -> str:
...
def __str__(self) -> str: ...

@abc.abstractmethod
def _repr_html_(self) -> str | tuple[str, dict[str, Any]] | None:
Expand Down

0 comments on commit c885225

Please sign in to comment.