Skip to content

Commit

Permalink
Update dependencies (2025-01)
Browse files Browse the repository at this point in the history
And fix the new mypy errors by not reusing the `stream` variable for
multiple purposes.
  • Loading branch information
vmiklos committed Jan 3, 2025
1 parent 2a20c6f commit 885628f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coverage==7.6.8
coverage==7.6.10
flake8==7.1.1
mypy==1.13.0
mypy==1.14.1
pygraphviz==1.14
pyinstaller==6.11.1
pylint==3.3.1
pylint==3.3.3
pyqt6==6.7.1
8 changes: 4 additions & 4 deletions tests/test_ged2dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def test_happy(self) -> None:
self.assertFalse(os.path.exists(config["output"]))
ged2dot.convert(config)
self.assertTrue(os.path.exists(config["output"]))
with open(config["output"], "r", encoding="utf-8") as stream:
graph = pygraphviz.AGraph(string=stream.read())
with open(config["output"], "r", encoding="utf-8") as dot_stream:
graph = pygraphviz.AGraph(string=dot_stream.read())
person = graph.get_node("P48")
stream = io.StringIO(person.attr.get("label"))
tree = ET.parse(stream)
Expand Down Expand Up @@ -547,8 +547,8 @@ def test_fam_no_marr(self) -> None:

# Then make sure that explicit width and height is specified for the table around the image,
# required by the PNG output:
with open(config["output"], "r", encoding="utf-8") as stream:
graph = pygraphviz.AGraph(string=stream.read())
with open(config["output"], "r", encoding="utf-8") as dot_stream:
graph = pygraphviz.AGraph(string=dot_stream.read())
family = graph.get_node("F1")
stream = io.StringIO(family.attr.get("label"))
tree = ET.parse(stream)
Expand Down

0 comments on commit 885628f

Please sign in to comment.