diff --git a/stdlib/_ast.pyi b/stdlib/_ast.pyi index cb13c7452081..1305b0c94d9b 100644 --- a/stdlib/_ast.pyi +++ b/stdlib/_ast.pyi @@ -319,7 +319,7 @@ class FormattedValue(expr): if sys.version_info >= (3, 10): __match_args__ = ("value", "conversion", "format_spec") value: expr - conversion: int | None + conversion: int format_spec: expr | None class JoinedStr(expr): diff --git a/tests/stubtest_allowlists/py39.txt b/tests/stubtest_allowlists/py39.txt index 47992c880177..b947ee091b55 100644 --- a/tests/stubtest_allowlists/py39.txt +++ b/tests/stubtest_allowlists/py39.txt @@ -164,3 +164,7 @@ typing._SpecialForm.__mro_entries__ unicodedata.UCD.is_normalized xml.parsers.expat.XMLParserType.SkippedEntityHandler xml.parsers.expat.XMLParserType.intern + +# None on the class, but never None on instances +ast.FormattedValue.conversion +_ast.FormattedValue.conversion