diff --git a/tests/data/cases/single_element_parametized_return_type.py b/tests/data/cases/single_element_parametized_return_type.py new file mode 100644 index 00000000000..95d80f4fa64 --- /dev/null +++ b/tests/data/cases/single_element_parametized_return_type.py @@ -0,0 +1,50 @@ +def MyClass(): + pass + + +def create_my_nested_class() -> ( + # test asnkdasldnsalkdnaskldnaklsdnsakln + int +): + class MyNestedClass(MyClass): + pass + return MyNestedClass + + +def create_my_nested_class() -> ( + # test asnkdasldnsalkdnaskldnaklsdnsakln + # test asnkdasldnsalkdnaskldnaklsdnsakln + int + # test asnkdasldnsalkdnaskldnaklsdnsakln +): + class MyNestedClass(MyClass): + pass + return MyNestedClass + +# output + + +def MyClass(): + pass + + +def create_my_nested_class() -> ( + # test asnkdasldnsalkdnaskldnaklsdnsakln + int +): + class MyNestedClass(MyClass): + pass + + return MyNestedClass + + +def create_my_nested_class() -> ( + # test asnkdasldnsalkdnaskldnaklsdnsakln + # test asnkdasldnsalkdnaskldnaklsdnsakln + int + # test asnkdasldnsalkdnaskldnaklsdnsakln +): + class MyNestedClass(MyClass): + pass + + return MyNestedClass