def weight(self):
     return _Weight(*getOptionalDeviceWeight(self._itemDescr, self._vehicleDescr)) if self._vehicleDescr is not None else _Weight(*self._getPrecachedInfo().weight)
 def weight(self):
     if self._vehicleDescr is not None:
         return _Weight(*getOptionalDeviceWeight(self._itemDescr, self._vehicleDescr))
     else:
         return _Weight(*self.precachedParams.weight)
Exemple #3
0
 def weight(self):
     if self._vehicleDescr is not None:
         return _Weight(
             *getOptionalDeviceWeight(self._itemDescr, self._vehicleDescr))
     else:
         return _Weight(*self.precachedParams.weight)