[3.9] bpo-46345: Add a test case for implicit Optional class attribute (GH-30535)
#30568
+6
−0
Optional class attribute (GH-30535)
#30568