Data Classes, introduced within Python 3.7, are classes used to (though not limited to) store data. They eliminate much of the boiler-plate code that is typically required when creating Python based classes. Decorator A Data Class is created via the use of the @dataclass decorator. Like so: from dataclasses import dataclass @dataclass class Interface: name: str speed: int mtu: int Special Methods As we first mentioned, data classes reduce the amount of boiler plate code required

Close You've successfully subscribed to PacketFlow.
Close Success! Your account is fully activated, you now have access to all content.
Close Welcome back! You've successfully signed in.
Close Nearly there! To activate your account, please click the link in the email we just sent you.