Skip to content

Commit 718f123

Browse files
mzuennimpsijm
authored andcommitted
try to preserve the right comments
1 parent 7cab1f0 commit 718f123

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/upgrade.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212

1313
# this is slow but tries to preserve the correct comments
14-
def _filter(data: CommentedMap, remove: str) -> None:
14+
def _filter(data: Any, remove: str) -> None:
15+
assert isinstance(data, CommentedMap)
1516
prev = None
1617
for key in data:
1718
if key == remove:

0 commit comments

Comments
 (0)