Skip to content

Commit 91702b6

Browse files
committed
Update dependencies (2025-01)
And fix the new mypy errors by not reusing the `stream` variable for multiple purposes.
1 parent 2a20c6f commit 91702b6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
coverage==7.6.8
1+
coverage==7.6.10
22
flake8==7.1.1
3-
mypy==1.13.0
3+
mypy==1.14.1
44
pygraphviz==1.14
55
pyinstaller==6.11.1
6-
pylint==3.3.1
6+
pylint==3.3.3
77
pyqt6==6.7.1

tests/test_ged2dot.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def test_happy(self) -> None:
140140
self.assertFalse(os.path.exists(config["output"]))
141141
ged2dot.convert(config)
142142
self.assertTrue(os.path.exists(config["output"]))
143-
with open(config["output"], "r", encoding="utf-8") as stream:
144-
graph = pygraphviz.AGraph(string=stream.read())
143+
with open(config["output"], "r", encoding="utf-8") as dot_stream:
144+
graph = pygraphviz.AGraph(string=dot_stream.read())
145145
person = graph.get_node("P48")
146146
stream = io.StringIO(person.attr.get("label"))
147147
tree = ET.parse(stream)
@@ -547,8 +547,8 @@ def test_fam_no_marr(self) -> None:
547547

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

0 commit comments

Comments
 (0)