π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Iterate dictionary directly (#1074)
deepsource-autofix[bot]7f213b93c26d
diff --git a/setup.py b/setup.pyindex daec22da3..0d405c24c 100644--- a/setup.py+++ b/setup.py@@ -43,7 +43,7 @@ kornia_pt_dependencies = {# version can be overiden eg with KORNIA_BUILD_VERSION so we map each possible kornia version to the dictionary keysdef dep_version(version):- compatible_versions = [v for v in kornia_pt_dependencies.keys() if v >= version]+ compatible_versions = [v for v in kornia_pt_dependencies if v >= version]compatible_versions += [sorted(kornia_pt_dependencies)[-1]]return min(compatible_versions)