Where to put checks on the inputs of a class?
Where should I put checks on the inputs of a class. Right now I’m putting it in __init__
as follows, but I’m not sure if that’s correct. See example below.
Where should I put checks on the inputs of a class. Right now I’m putting it in __init__
as follows, but I’m not sure if that’s correct. See example below.