@@ -86,7 +86,7 @@ def test_attributes_max_16_pairs(self) -> None:
8686 request = VectorStoreFileCreateRequest (
8787 file_id = "file-abc123" , attributes = attributes , chunking_strategy = None
8888 )
89- assert len (request .attributes ) == 16 # type : ignore
89+ assert len (request .attributes ) == 16 # pyright : ignore[reportArgumentType]
9090
9191 def test_attributes_exceeds_16_pairs (self ) -> None :
9292 """Test that attributes with more than 16 pairs is rejected."""
@@ -107,7 +107,9 @@ def test_attributes_key_max_64_chars(self) -> None:
107107 request = VectorStoreFileCreateRequest (
108108 file_id = "file-abc123" , attributes = attributes , chunking_strategy = None
109109 )
110- assert key_64_chars in request .attributes # type: ignore
110+ assert (
111+ key_64_chars in request .attributes
112+ ) # pyright: ignore[reportOperatorIssue]
111113
112114 def test_attributes_key_exceeds_64_chars (self ) -> None :
113115 """Test that attribute keys exceeding 64 characters are rejected."""
@@ -125,7 +127,9 @@ def test_attributes_string_value_max_512_chars(self) -> None:
125127 request = VectorStoreFileCreateRequest (
126128 file_id = "file-abc123" , attributes = attributes , chunking_strategy = None
127129 )
128- assert request .attributes ["key" ] == value_512_chars # type: ignore
130+ assert isinstance (request .attributes , dict )
131+ assert "key" in request .attributes
132+ assert request .attributes ["key" ] == value_512_chars
129133
130134 def test_attributes_string_value_exceeds_512_chars (self ) -> None :
131135 """Test that string attribute values exceeding 512 characters are rejected."""
@@ -170,7 +174,7 @@ def test_attributes_none_is_valid(self) -> None:
170174 def test_file_id_required (self ) -> None :
171175 """Test that file_id is required."""
172176 with pytest .raises (ValidationError ):
173- VectorStoreFileCreateRequest () # type : ignore
177+ VectorStoreFileCreateRequest () # pyright : ignore[reportCallIssue]
174178
175179 def test_file_id_cannot_be_empty (self ) -> None :
176180 """Test that file_id cannot be an empty string."""
0 commit comments