Skip to content

Commit

Permalink
Add generic for class with properties
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Jul 22, 2024
1 parent 8426c40 commit d0b6f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/stubgenc.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def generate_class_stub(self, class_name: str, cls: type, output: list[str]) ->
else:
bases_str = ""
if types or static_properties or rw_properties or methods or ro_properties:
output.append(f"{self._indent}class {class_name}{bases_str}:")
output.append(f"{self._indent}class {class_name}{inline_generic}{bases_str}:")
for line in types:
if (
output
Expand Down

0 comments on commit d0b6f2e

Please sign in to comment.