Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepsuryaprasad committed Jun 24, 2023
1 parent 1aff112 commit 30e9355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appium/options/ios/xcuitest/other/other_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def __get__(self, obj: C, cls: type[C]) -> Any:
def __set__(self, obj: C, value: Any) -> C:
if self.name == 'COMMAND_TIMEOUTS':
if isinstance(value, dict):
getattr(obj, 'set_capability')(self.name, {k: int(v.total_seconds() * 1000) for k, v in value.items()})
return getattr(obj, 'set_capability')(self.name, {k: int(v.total_seconds() * 1000) for k, v in value.items()})
elif isinstance(value, timedelta):
getattr(obj, 'set_capability')(self.name, f'{int(value.total_seconds() * 1000)}')
return getattr(obj, 'set_capability')(self.name, f'{int(value.total_seconds() * 1000)}')
else:
return getattr(obj, 'set_capability')(self.name, value)
return getattr(obj, 'set_capability')(self.name, value)
Expand Down

0 comments on commit 30e9355

Please sign in to comment.