See Installing Setuptools "Extras" in the Installing Packages section of the Python Packaging User Guide. It is up to the installed package itself to detect if all the dependencies for optional extra features are installed. A common pattern is to use try...except ImportError: guards to test for such extra dependencies being available.

Understanding the Context

Using the python library to populate a dataclass using a dictionary of values ignores extra arguments / values present in the dictionary (along with all the other benefits the library provides).