awesome-low-level-design icon indicating copy to clipboard operation
awesome-low-level-design copied to clipboard

[Python] Variable vehicle_type is never updated for parkingSpot but it's checked while parking

Open SarthakSG opened this issue 6 months ago • 0 comments

self.vehicle_type = VehicleType.CAR # Default vehicle type is CAR

if spot.is_available() and spot.get_vehicle_type() == vehicle.get_type(): spot.park_vehicle(vehicle)

SarthakSG avatar Apr 20 '25 06:04 SarthakSG