Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 2, 2024
1 parent eb36c40 commit 9f2de41
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mypy/stubgenc.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,14 @@ def generate_class_stub(self, class_name: str, cls: type, output: list[str]) ->
bases_str = "(%s)" % ", ".join(bases)
else:
bases_str = ""
if types or static_properties or rw_properties or methods or ro_properties or class_info.docstring:
if (
types
or static_properties
or rw_properties
or methods
or ro_properties
or class_info.docstring
):
output.append(f"{self._indent}class {class_name}{bases_str}:")
for line in types:
if (
Expand Down

0 comments on commit 9f2de41

Please sign in to comment.