Improve type hints in demo [2/3] (#77185)
This commit is contained in:
parent
94cd8e801b
commit
452ee0284a
8 changed files with 81 additions and 34 deletions
|
@ -18,11 +18,11 @@ def setup_scanner(
|
|||
) -> bool:
|
||||
"""Set up the demo tracker."""
|
||||
|
||||
def offset():
|
||||
def offset() -> float:
|
||||
"""Return random offset."""
|
||||
return (random.randrange(500, 2000)) / 2e5 * random.choice((-1, 1))
|
||||
|
||||
def random_see(dev_id, name):
|
||||
def random_see(dev_id: str, name: str) -> None:
|
||||
"""Randomize a sighting."""
|
||||
see(
|
||||
dev_id=dev_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue