Skip to content

Commit fcedaeb

Browse files
committed
fix: add quotes to type expressions in cast() calls
- Fixed TC006 ruff linting errors in tests/unit/test_direct_api.py - Added quotes around BinaryIO type expressions as required by ruff TC006 rule Resolves CI linting failures.
1 parent 8c7603c commit fcedaeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_direct_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ def test_direct_api_with_file_like_object(self, mock_process):
299299
temp_file.write(b"test content")
300300
temp_file.seek(0)
301301

302-
self.client.rotate_pages(cast(BinaryIO, temp_file), degrees=90)
302+
self.client.rotate_pages(cast("BinaryIO", temp_file), degrees=90)
303303
mock_process.assert_called_once_with(
304-
"rotate-pages", cast(BinaryIO, temp_file), None, degrees=90
304+
"rotate-pages", cast("BinaryIO", temp_file), None, degrees=90
305305
)
306306

307307

0 commit comments

Comments
 (0)