@@ -19,7 +19,7 @@ def test_no_change(self, tmp_path: Path):
1919
2020 # Act
2121 with edit_yaml (path ) as yaml_document :
22- assert isinstance (yaml_document .content , CommentedMap ) # Help pyright
22+ assert isinstance (yaml_document .content , CommentedMap )
2323 update_ruamel_yaml_map (
2424 yaml_document .content ,
2525 {"hello" : "world" },
@@ -43,7 +43,7 @@ def test_map(self, tmp_path: Path):
4343
4444 # Act
4545 with edit_yaml (path ) as yaml_document :
46- assert isinstance (yaml_document .content , CommentedMap ) # Help pyright
46+ assert isinstance (yaml_document .content , CommentedMap )
4747 update_ruamel_yaml_map (
4848 yaml_document .content ,
4949 {"hello" : "universe" },
@@ -70,7 +70,7 @@ def test_list(self, tmp_path: Path):
7070
7171 # Act
7272 with edit_yaml (path ) as yaml_document :
73- assert isinstance (yaml_document .content , CommentedMap ) # Help pyright
73+ assert isinstance (yaml_document .content , CommentedMap )
7474 update_ruamel_yaml_map (
7575 yaml_document .content ,
7676 {"key" : [1 , 2 , 4 ]},
@@ -98,7 +98,7 @@ def test_remove_key(self, tmp_path: Path):
9898
9999 # Act
100100 with edit_yaml (path ) as yaml_document :
101- assert isinstance (yaml_document .content , CommentedMap ) # Help pyright
101+ assert isinstance (yaml_document .content , CommentedMap )
102102 update_ruamel_yaml_map (
103103 yaml_document .content ,
104104 {"key" : "new value" },
@@ -124,7 +124,7 @@ def test_nested_map(self, tmp_path: Path):
124124
125125 # Act
126126 with edit_yaml (path ) as yaml_document :
127- assert isinstance (yaml_document .content , CommentedMap ) # Help pyright
127+ assert isinstance (yaml_document .content , CommentedMap )
128128 update_ruamel_yaml_map (
129129 yaml_document .content ,
130130 {"key" : {"hello" : "universe" }, "banana" : "yummy" },
@@ -159,8 +159,8 @@ def test_reuse_ref(self, tmp_path: Path):
159159
160160 # Act
161161 with edit_yaml (path ) as yaml_document :
162- assert isinstance (yaml_document .content , CommentedMap ) # Help pyright
163- assert isinstance (another_yaml_doc .content , CommentedMap ) # Help pyright
162+ assert isinstance (yaml_document .content , CommentedMap )
163+ assert isinstance (another_yaml_doc .content , CommentedMap )
164164 update_ruamel_yaml_map (
165165 yaml_document .content ,
166166 {"key" : [1 , another_yaml_doc .content , another_yaml_doc .content .copy ()]},
@@ -382,7 +382,7 @@ def test_ruamel_yaml_file(self, tmp_path: Path):
382382""" )
383383
384384 with edit_yaml (path ) as yaml_document :
385- assert isinstance (yaml_document .content , CommentedSeq ) # Help pyright
385+ assert isinstance (yaml_document .content , CommentedSeq )
386386 # Act
387387 lcs_list_update (yaml_document .content , [1 , 2 , 4 ])
388388
0 commit comments