diff --git a/stdlib/dataclasses.pyi b/stdlib/dataclasses.pyi index 519da6d31dbe..bf824abaf4e5 100644 --- a/stdlib/dataclasses.pyi +++ b/stdlib/dataclasses.pyi @@ -13,8 +13,7 @@ class _MISSING_TYPE: ... MISSING: _MISSING_TYPE if sys.version_info >= (3, 10): - class _KW_ONLY_TYPE: ... - KW_ONLY: _KW_ONLY_TYPE + class KW_ONLY: ... @overload def asdict(obj: Any) -> Dict[str, Any]: ... diff --git a/tests/stubtest_allowlists/py310.txt b/tests/stubtest_allowlists/py310.txt index 0adf00e64a73..e7f1884e7291 100644 --- a/tests/stubtest_allowlists/py310.txt +++ b/tests/stubtest_allowlists/py310.txt @@ -37,6 +37,7 @@ collections.abc.KeysView.__reversed__ collections.abc.ValuesView.__reversed__ contextvars.Context.__init__ # Default C __init__ signature is wrong dataclasses.field +dataclasses.KW_ONLY dummy_threading enum.Enum._generate_next_value_ fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve