mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-10 23:01:53 +02:00
Fix code style.
This commit is contained in:
parent
96aaa92535
commit
edd3512526
7 changed files with 31 additions and 15 deletions
|
@ -29,13 +29,8 @@ class Lane:
|
|||
change: Optional[str] = None # "not_left", "not_right"
|
||||
destination: Optional[str] = None # Lane destination
|
||||
|
||||
def set_forward(self, is_forward: bool) -> None:
|
||||
self.is_forward = is_forward
|
||||
|
||||
def get_width(self, scale: float):
|
||||
"""
|
||||
Get lane width. We use standard 3.7 m lane.
|
||||
"""
|
||||
"""Get lane width. We use standard 3.7 m lane."""
|
||||
if self.width is None:
|
||||
return 3.7 * scale
|
||||
return self.width * scale
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue