Skip to content

Commit

Permalink
Needs to be a collection for len
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Apr 2, 2024
1 parent fc1fb81 commit aacd526
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions spinn_machine/routing_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import annotations
from typing import Any, FrozenSet, Iterable, Optional, Tuple, overload, Union
from typing import (Any, Collection, FrozenSet, Optional, overload, Tuple,
Union)
from spinn_machine.router import Router
from .exceptions import (SpinnMachineInvalidParameterException)

Expand All @@ -27,8 +28,8 @@ class RoutingEntry(object):
"_link_ids", "_spinnaker_route", "__repr")

@overload
def __init__(self, *, processor_ids: Union[int, Iterable[int]],
link_ids: Union[int, Iterable[int]],
def __init__(self, *, processor_ids: Union[int, Collection[int]],
link_ids: Union[int, Collection[int]],
incoming_processor: Optional[int] = None,
incoming_link: Optional[int] = None,
defaultable: None = None,
Expand All @@ -46,8 +47,8 @@ def __init__(self, *, processor_ids: None = None,

# pylint: disable=too-many-arguments
def __init__(self, *,
processor_ids: Optional[Union[int, Iterable[int]]] = None,
link_ids: Optional[Union[int, Iterable[int]]] = None,
processor_ids: Optional[Union[int, Collection[int]]] = None,
link_ids: Optional[Union[int, Collection[int]]] = None,
incoming_processor: Optional[int] = None,
incoming_link: Optional[int] = None,
defaultable: Optional[bool] = None,
Expand Down

0 comments on commit aacd526

Please sign in to comment.