It must be possible, because the 'dataclasses' library used to be third-party.
Or maybe you mean the backport of dataclasses to 3.6 that is available on PyPI? That actually came after dataclasses was added to 3.7.
Source: I wrote dataclasses.
Much appreciated!