Skip to content

Commit a27f2ca

Browse files
committed
docs: minor improvements
1 parent 84d54f0 commit a27f2ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"sphinx_autodoc_typehints",
1010
"sphinx.ext.intersphinx",
1111
]
12-
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
12+
intersphinx_mapping = {
13+
"python": ("https://docs.python.org/3", None),
14+
"flask": ("https://flask.palletsprojects.com/", None),
15+
}
1316

1417
# General information about the project.
1518
project = "Fava"

src/fava/core/ingest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import sys
88
import traceback
99
from dataclasses import dataclass
10+
from functools import wraps
1011
from inspect import get_annotations
1112
from inspect import signature
1213
from os import altsep
@@ -178,6 +179,7 @@ class FileImporters:
178179
def _catch_any(func: Callable[P, T]) -> Callable[P, T]:
179180
"""Helper to catch any exception that might be raised by the importer."""
180181

182+
@wraps(func)
181183
def wrapper(*args: P.args, **kwds: P.kwargs) -> T:
182184
try:
183185
return func(*args, **kwds)

0 commit comments

Comments
 (0)