Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Dec 18, 2024
1 parent 0ef46f4 commit 1f02f7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spynnaker/pyNN/models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ def get_map_from_init(
if skip is not None:
_check_args(skip, default_args, init_method)

return MappingProxyType({arg: value
as_dict = {arg: value
for arg, value in zip(default_args, default_values)
if ((arg != "self") and
(skip is None or arg not in skip) and
(include is None or arg in include))})
(include is None or arg in include))}
return MappingProxyType(as_dict)


def default_parameters(parameters: Iterable[str]) -> Callable:
Expand Down

0 comments on commit 1f02f7f

Please sign in to comment.