Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/i2mint/meshed
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwhalen committed Apr 16, 2024
2 parents bf5dc8f + c8d8174 commit a7e8c76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions meshed/itools.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from i2.signatures import Sig

N = TypeVar("N")
N = TypeVar('N')
Graph = Mapping[N, Iterable[N]]
MutableGraph = MutableMapping[N, Iterable[N]]

Expand All @@ -35,10 +35,10 @@ def _import_or_raise(module_name, pip_install_name: Optional[Union[str, bool]] =
if pip_install_name is True:
pip_install_name = module_name # use the module name as the install name
if pip_install_name:
msg = f"You can install it by running: `pip install {pip_install_name}`"
msg = f'You can install it by running: `pip install {pip_install_name}`'
else:
msg = "Please install it first."
raise ImportError(f"Could not import {module_name}. {msg}") from e
msg = 'Please install it first.'
raise ImportError(f'Could not import {module_name}. {msg}') from e


def random_graph(n_nodes: int = 7):
Expand Down Expand Up @@ -68,7 +68,7 @@ def gen():

def graphviz_digraph(d: Graph):
"""Makes a graphviz graph using the links specified by dict d"""
graphviz = _import_or_raise("graphviz", "graphviz")
graphviz = _import_or_raise('graphviz', 'graphviz')
dot = graphviz.Digraph()
for k, v in d.items():
for vv in v:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = meshed
version = 0.1.153
version = 0.1.154
url = https://github.com/i2mint/meshed
platforms = any
description_file = README.md
Expand Down

0 comments on commit a7e8c76

Please sign in to comment.