Skip to content

Commit c885225

Browse files
committed
styling
1 parent 37855d8 commit c885225

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

src/latexify/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
DON'T TOUCH THIS FILE.
44
This file is replaced during the release process.
55
"""
6+
67
__version__ = "0.0.0a0"

src/latexify/frontend.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111
@overload
1212
def algorithmic(
1313
fn: Callable[..., Any], **kwargs: Any
14-
) -> ipython_wrappers.LatexifiedAlgorithm:
15-
...
14+
) -> ipython_wrappers.LatexifiedAlgorithm: ...
1615

1716

1817
@overload
1918
def algorithmic(
2019
**kwargs: Any,
21-
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedAlgorithm]:
22-
...
20+
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedAlgorithm]: ...
2321

2422

2523
def algorithmic(
@@ -55,15 +53,13 @@ def wrapper(f):
5553
@overload
5654
def function(
5755
fn: Callable[..., Any], **kwargs: Any
58-
) -> ipython_wrappers.LatexifiedFunction:
59-
...
56+
) -> ipython_wrappers.LatexifiedFunction: ...
6057

6158

6259
@overload
6360
def function(
6461
**kwargs: Any,
65-
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedFunction]:
66-
...
62+
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedFunction]: ...
6763

6864

6965
def function(
@@ -99,15 +95,13 @@ def wrapper(f):
9995
@overload
10096
def expression(
10197
fn: Callable[..., Any], **kwargs: Any
102-
) -> ipython_wrappers.LatexifiedFunction:
103-
...
98+
) -> ipython_wrappers.LatexifiedFunction: ...
10499

105100

106101
@overload
107102
def expression(
108103
**kwargs: Any,
109-
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedFunction]:
110-
...
104+
) -> Callable[[Callable[..., Any]], ipython_wrappers.LatexifiedFunction]: ...
111105

112106

113107
def expression(

src/latexify/ipython_wrappers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def __call__(self, *args) -> Any:
3838
return self._fn(*args)
3939

4040
@abc.abstractmethod
41-
def __str__(self) -> str:
42-
...
41+
def __str__(self) -> str: ...
4342

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

0 commit comments

Comments
 (0)