Skip to content

Commit

Permalink
base: Correct parameter annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Jun 10, 2023
1 parent 0b8c286 commit b2c2761
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions orangecontrib/network/network/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from functools import reduce, wraps, partial
from typing import Sequence
from typing import Sequence, Union

import numpy as np
import scipy.sparse as sp
Expand Down Expand Up @@ -207,7 +207,11 @@ def wrapper(graph, *args, **kwargs):


class Network:
def __init__(self, nodes: Sequence, edges: Sequence, name: str = "",
def __init__(self, nodes: Sequence,
edges: Union[Edges,
sp.csr_matrix,
Sequence[Union[Edges, sp.csr_matrix]]],
name: str = "",
coordinates: np.ndarray = None):
"""
Attributes:
Expand Down

0 comments on commit b2c2761

Please sign in to comment.