You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be clarified what is expected to be returned in the following cases:
def current_floor(self) -> Optional[str]:
''' Returns the current floor of this lift, or None the query failed'''
What should be returned if the lift is moving between two floors? My assumption is to return the last floor it was at until it has reached the new floor.
def destination_floor(self) -> Optional[str]:
''' Returns the destination floor of this lift, or None the query
failed'''
What should be returned if the lift is idle at some floor? My assumption is to return the current floor.
The text was updated successfully, but these errors were encountered:
Vortex-TH
changed the title
[Other issue]:
[Other issue]: Ambiguous return values for some cases
Aug 19, 2024
Before proceeding, is there an existing issue or discussion for this?
Description
It should be clarified what is expected to be returned in the following cases:
What should be returned if the lift is moving between two floors? My assumption is to return the last floor it was at until it has reached the new floor.
What should be returned if the lift is idle at some floor? My assumption is to return the current floor.
The text was updated successfully, but these errors were encountered: