Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 committed Apr 9, 2024
1 parent 9855358 commit c4d05b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sphinx_js/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def run(self) -> list[Node]:


class JSFunction(JSCallable):
option_spec = {
option_spec = { # type: ignore[misc]
**JSCallable.option_spec,
"static": flag,
"async": flag,
Expand Down
4 changes: 2 additions & 2 deletions sphinx_js/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Renderer:
_add_span: bool
_partial_path: list[str]
_explicit_formal_params: str
_content: list[str]
_content: list[str] | StringList
_options: dict[str, Any]

def _parse_path(self, arg: str) -> None:
Expand All @@ -192,7 +192,7 @@ def __init__(
directive: Directive,
app: Sphinx,
arguments: list[str],
content: list[str] | None = None,
content: list[str] | StringList | None = None,
options: dict[str, Any] | None = None,
):
self._add_span = True
Expand Down
2 changes: 1 addition & 1 deletion sphinx_js/typedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,4 +1400,4 @@ def fix_exc_errors(json: Any, exc: ValidationError) -> None:
errors.extend(errs)

if errors:
exc._error_cache = errors # type:ignore[attr-defined]
exc._error_cache = errors

0 comments on commit c4d05b1

Please sign in to comment.