Python Programming, Python3, Software Development, Software Engineering, Machine Learning.
must use the decorator “@Dataclass”. Here is how from dataclasses import dataclass @dataclass class Info: info_id : int = 11 info_description : str = "Not Available" # No __init__ in this class # # we can instantiate the objects as new_info = Info() # OR new_info = Info(10) # OR new_info = Info(20,