Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Use literal syntax to create data structure (#1091)

deepsource-autofix[bot]adbf71166d5f
diff --git a/test/augmentation/test_random_generator.py b/test/augmentation/test_random_generator.py
index 1db223a6f..abf2dab35 100644
--- a/test/augmentation/test_random_generator.py
+++ b/test/augmentation/test_random_generator.py
@@ -152,9 +152,13 @@ class TestColorJitterGen(RandomGeneratorBaseTests):
'order': torch.tensor([3, 2, 0, 1], device=device, dtype=dtype),
}
- assert set(list(jitter_params.keys())) == set(
- ['brightness_factor', 'contrast_factor', 'hue_factor', 'saturation_factor', 'order']
- ), "Redundant keys found apart from \
+ assert set(list(jitter_params.keys())) == {
+ 'brightness_factor',
+ 'contrast_factor',
+ 'hue_factor',
+ 'saturation_factor',
+ 'order',
+ }, "Redundant keys found apart from \
'brightness_factor', 'contrast_factor', 'hue_factor', 'saturation_factor', 'order'"
assert_allclose(