From 0aabac4fe0895af788ac73c548f0b7c7e7ed56be Mon Sep 17 00:00:00 2001 From: GiGaGon <107241144+MeGaGiGaGon@users.noreply.github.com> Date: Mon, 23 Dec 2024 10:46:25 -0800 Subject: [PATCH] Add regression test for #1765 (#4530) --- tests/data/cases/annotations.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/data/cases/annotations.py diff --git a/tests/data/cases/annotations.py b/tests/data/cases/annotations.py new file mode 100644 index 00000000000..4d7af3d077f --- /dev/null +++ b/tests/data/cases/annotations.py @@ -0,0 +1,17 @@ +# regression test for #1765 +class Foo: + def foo(self): + if True: + content_ids: Mapping[ + str, Optional[ContentId] + ] = self.publisher_content_store.store_config_contents(files) + +# output + +# regression test for #1765 +class Foo: + def foo(self): + if True: + content_ids: Mapping[str, Optional[ContentId]] = ( + self.publisher_content_store.store_config_contents(files) + ) \ No newline at end of file