@@ -578,7 +578,7 @@ class CustomClass:
578578
579579 # Should return the class name for unsupported types
580580 # Using type: ignore for intentional test of unsupported type
581- result = dicttoxml .get_xml_type (CustomClass ()) # type: ignore[arg-type]
581+ result = dicttoxml .get_xml_type (CustomClass ()) # type: ignore[arg-type] # ty: ignore[invalid-argument-type]
582582 assert result == "CustomClass"
583583
584584 def test_make_valid_xml_name_invalid_chars (self ) -> None :
@@ -807,8 +807,8 @@ def patched_get_unique_id(element: str) -> str:
807807 this_id = module .make_id (element ) # This exercises line 52
808808 return ids [- 1 ]
809809
810- module .make_id = mock_make_id # type: ignore[assignment]
811- module .get_unique_id = patched_get_unique_id # type: ignore[assignment]
810+ module .make_id = mock_make_id # type: ignore[assignment] # ty: ignore[invalid-assignment]
811+ module .get_unique_id = patched_get_unique_id # type: ignore[assignment] # ty: ignore[invalid-assignment]
812812
813813 try :
814814 result = dicttoxml .get_unique_id ("test" )
@@ -874,7 +874,7 @@ class CustomClass:
874874
875875 with pytest .raises (TypeError , match = "Unsupported data type:" ):
876876 dicttoxml .convert (
877- obj = CustomClass (), # type: ignore[arg-type]
877+ obj = CustomClass (), # type: ignore[arg-type] # ty: ignore[invalid-argument-type]
878878 ids = None ,
879879 attr_type = False ,
880880 item_func = lambda x : "item" ,
@@ -1024,7 +1024,7 @@ def mock_is_primitive(val: Any) -> bool:
10241024 return True
10251025 return original_is_primitive (val )
10261026
1027- module .is_primitive_type = mock_is_primitive # type: ignore[assignment]
1027+ module .is_primitive_type = mock_is_primitive # type: ignore[assignment] # ty: ignore[invalid-assignment]
10281028 try :
10291029 item = {"@val" : {"test" : "data" }}
10301030 result = dicttoxml .dict2xml_str (
0 commit comments