Python Programming, Python3, Software Development, Software Engineering, Machine Learning.
provide any default value, but want these two parameters to be set while instantiating the object Well, we can achieve this by using the following code. This code will automatically generate an __init__() for you @dataclass class Info: info_id : ... info_description : ... # the ... will enforce