Skip to content

Commit 4d31eff

Browse files
committed
style: Format
1 parent c29585a commit 4d31eff

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/griffe/docstrings/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717

1818
class WarningCallable(Protocol):
19-
def __call__(self, docstring: Docstring, offset: int, message: str, log_level: LogLevel = ...) -> None:
20-
...
19+
def __call__(self, docstring: Docstring, offset: int, message: str, log_level: LogLevel = ...) -> None: ...
2120

2221

2322
def warning(name: str) -> WarningCallable:

src/griffe/extensions/dataclasses.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ def _dataclass_parameters(class_: Class) -> list[Parameter]:
8989
# TODO: It is better to explicitly check for ClassVar, but
9090
# Visitor.handle_attribute unwraps it from the annotation.
9191
# Maybe create internal_labels and store classvar in there.
92-
"class-attribute" in member.labels
93-
and "instance-attribute" not in member.labels
92+
"class-attribute" in member.labels and "instance-attribute" not in member.labels
9493
):
9594
continue
9695

tests/test_docstrings/helpers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def __call__( # noqa: D102
2222
docstring: str,
2323
parent: ParentType | None = None,
2424
**parser_opts: Any,
25-
) -> ParseResultType:
26-
...
25+
) -> ParseResultType: ...
2726

2827

2928
def parser(parser_module: ModuleType) -> Iterator[ParserType]:

0 commit comments

Comments
 (0)