New drivers often hesitate to drive on the yellow line to go around a pedestrian or bike on the road. Of course, you should never drive on or over the yellow line in a situation where there is oncoming traffic around. But if you can clearly see that there is no conflicting traffic for miles and miles, then you should drive over the line to give the pedestrian or bike some extra room, as long as it is one broken or solid yellow line or broken/solid mix. (Do not cross double solid yellow lines).
Pedestrians and bikes are unpredictable, and can swerve around car doors opening or potholes; they are also vulnerable: you have a whole car around you protecting you, they don’t. Think of how the bike/pedestrian feels. If you were walking on the road, would you like the traffic to whiz by you within 1 cm? Don’t be afraid to drive over the lines, as long as it is safe. A line is just a line. Lines have no feelings; people do.
Same here when I encounter this large piece of construction equipment. What is the point of trying to squish myself very tightly between the equipment and the yellow line, when there is a perfectly good chunk of space on the rest of the road, and clear visibility? There is no need for such silliness!
Lines are made of paint, not spikes, for a reason.
Please use discretion. If you aren’t sure if it’s safe, or if you do have oncoming traffic, then you may need to wait behind the bike/pedestrian/obstacle, and then go around.