Skip to content

Commit 1f3980d

Browse files
committed
flake8
1 parent 282a22d commit 1f3980d

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

spynnaker/pyNN/__init__.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -203,27 +203,6 @@
203203
'get_max_delay', 'initialize', 'list_standard_models', 'name',
204204
'record', "get_machine"]
205205

206-
207-
class __PynnOperations(TypedDict, total=False):
208-
run: Callable[[float, Any], float]
209-
run_until: Callable[[float, Any], float]
210-
get_current_time: Callable[[], float]
211-
get_time_step: Callable[[], float]
212-
get_max_delay: Callable[[], int]
213-
get_min_delay: Callable[[], int]
214-
num_processes: Callable[[], int]
215-
rank: Callable[[], int]
216-
reset: Callable[[Dict[str, Any]], None]
217-
create: Callable[
218-
[Union[Type, AbstractPyNNModel], Optional[Dict[str, Any]], int],
219-
Population]
220-
connect: Callable[
221-
[Population, Population, float, Optional[float], Optional[str], int,
222-
Optional[NumpyRNG]], None]
223-
record: Callable[
224-
[Union[str, Sequence[str]], PopulationBase, str, Optional[float],
225-
Optional[Dict[str, Any]]], Block]
226-
227206
# Cache of the simulator created by setup
228207
__simulator: Optional[SpiNNaker] = None
229208

@@ -500,7 +479,7 @@ def connect(pre: Population, post: Population, weight: float = 0.0,
500479
"""
501480
SpynnakerDataView.check_user_can_act()
502481
if isinstance(pre, IDMixin):
503-
pre = pre.as_view()
482+
pre = pre.as_view()
504483
if isinstance(post, IDMixin):
505484
post = post.as_view()
506485
connector = FixedProbabilityConnector(p_connect=p)
@@ -697,6 +676,7 @@ def _run_until(time_point: float, callbacks: Optional[List[Callable]] = None):
697676
__simulator.run_until(time_point)
698677
return __simulator.t
699678

679+
700680
def run(simtime: float, callbacks: Optional[List[Callable]] = None) -> float:
701681
"""
702682
The run() function advances the simulation for a given number of

0 commit comments

Comments
 (0)