def with_weapon_type(self, weapon_type):
        if self.weapon_data is None:
            self.weapon_data = WeaponData()
        self.weapon_data.weapon_type = weapon_type
        return self
Write text to a file.
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/builders/item.py/ItemBuilder.with_weapon_type--crossover with--dataset/ETHPy150Open haesken/dftools/lib/dftlib.py/write_lines