From d0b6f2e015ec3fa1ff2f49f70dd66ad584231a36 Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Mon, 22 Jul 2024 18:40:55 -0400 Subject: [PATCH] Add generic for class with properties --- mypy/stubgenc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/stubgenc.py b/mypy/stubgenc.py index fb1612dbd447..6cd5135839b4 100755 --- a/mypy/stubgenc.py +++ b/mypy/stubgenc.py @@ -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