I would like to create a class in Python. Is it possible to specify the type of argument given in init ? Otherwise raise an error or smth like this ?
I would like to create this type of class : where ligne_225 is a list data is a dataframe
class Poste_HTB_HTA:
  def __init__(self, ligne_225,data):
    self.ligne_225 = ligne_225
    self.data = data
  def ligne_225(self):
    return self.ligne_225
 
     
     
    