🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix: E721 (#2966)
João G. Atkinson A.98c279ad6834
diff --git a/kornia/geometry/vector.py b/kornia/geometry/vector.pyindex 66062bd1b..00cab22f4 100644--- a/kornia/geometry/vector.py+++ b/kornia/geometry/vector.py@@ -83,7 +83,7 @@ class Vector3(TensorWrapper):device: Optional[Device] = None,dtype: Dtype = None,) -> "Vector3":- KORNIA_CHECK(type(x) == type(y) == type(z))+ KORNIA_CHECK(type(x) is type(y) is type(z))KORNIA_CHECK(isinstance(x, (Tensor, float)))if isinstance(x, float):return wrap(as_tensor((x, y, z), device=device, dtype=dtype), Vector3)@@ -130,7 +130,7 @@ class Vector2(TensorWrapper):def from_coords(cls, x: Union[float, Tensor], y: Union[float, Tensor], device: Device = None, dtype: Dtype = None) -> "Vector2":- KORNIA_CHECK(type(x) == type(y))+ KORNIA_CHECK(type(x) is type(y))KORNIA_CHECK(isinstance(x, (Tensor, float)))if isinstance(x, float):return wrap(as_tensor((x, y), device=device, dtype=dtype), Vector2)