Skip to content

Commit 99adaab

Browse files
committed
More types and flake8
1 parent 2c1c4a5 commit 99adaab

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

spynnaker/pyNN/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
import logging
2626
import os
2727
from typing import (
28-
Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Type,
29-
TypedDict, Union, cast)
28+
Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, Union, cast)
3029

3130
import numpy as __numpy
3231
from typing_extensions import Literal
@@ -639,14 +638,16 @@ def reset(annotations: Optional[Dict[str, Any]] = None) -> None:
639638
__simulator.reset()
640639

641640

642-
def _run_until(time_point: float, callbacks: Optional[List[Callable]] = None):
641+
def _run_until(time_point: float,
642+
callbacks: Optional[List[Callable]] = None) -> float:
643643
"""
644644
Advance the simulation until a given time.
645645
646646
:param time_point: the time to run until (in ms)
647647
:param callbacks: an optional list of callables, each of which should
648648
accept the current time as an argument, and return the next time it
649649
wishes to be called.
650+
:returns: the actual simulation time that the simulation stopped at
650651
"""
651652
assert __simulator is not None
652653
now = __simulator.t

0 commit comments

Comments
 (0)