From 1888316b000c5446f34b264107a26a5c9f8ea8bf Mon Sep 17 00:00:00 2001 From: MillenniumFalconMechanic Date: Wed, 1 May 2024 12:23:23 -0700 Subject: [PATCH] Updated or False to bool() --- cellxgene_schema_cli/cellxgene_schema/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cellxgene_schema_cli/cellxgene_schema/validate.py b/cellxgene_schema_cli/cellxgene_schema/validate.py index 6a56949c..b6fc12c1 100644 --- a/cellxgene_schema_cli/cellxgene_schema/validate.py +++ b/cellxgene_schema_cli/cellxgene_schema/validate.py @@ -103,7 +103,7 @@ def _is_visium_and_is_single_true(self) -> bool: :rtype bool """ if self.is_visium_and_is_single_true is None: - self.is_visium_and_is_single_true = self._is_visium() and (self._is_single() or False) + self.is_visium_and_is_single_true = bool(self._is_visium() and self._is_single()) return self.is_visium_and_is_single_true def _validate_encoding_version(self):