Skip to content

Commit 67daf63

Browse files
committed
from_networkx only accepts simple types
1 parent 41d52ed commit 67daf63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reticula/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,6 @@ def _from_networkx(g, vert_type):
375375
from_networkx = _generic_attribute(
376376
attr_prefix="_from_networkx",
377377
arg_names=("vertex_type",),
378-
options={(t,) for t in _all_vertex_types},
378+
options={(t,) for t in _simple_vertex_types},
379379
function_module=_sys.modules[__name__],
380380
api_module_name=__name__)

0 commit comments

Comments
 (0)