From cb3b3b87a9a01eb2eb3a896c5b025c25b925b8d6 Mon Sep 17 00:00:00 2001 From: Mykhailo Androsiuk Date: Tue, 24 Oct 2023 11:42:41 +0300 Subject: [PATCH] build_conf.py: fix lint warning The existing source code has failed to pass the Flake8 check in build_conf.py: Do not compare types, use 'isinstance()' (E721) That blocks merge of the other changes. This patch is intended to fix the above-mentioned lint warning. Signed-off-by: Mykhailo Androsiuk Reviewed-by: Volodymyr Babchuk --- moulin/build_conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/moulin/build_conf.py b/moulin/build_conf.py index af35dc4..4149474 100644 --- a/moulin/build_conf.py +++ b/moulin/build_conf.py @@ -38,8 +38,7 @@ def apply_overrides(self, node: MappingNode): @staticmethod def _override(remote_node: Node, local_node: Node): - # pylint: disable=unidiomatic-typecheck - if type(remote_node) != type(local_node): + if type(remote_node) is not type(local_node): raise YAMLProcessingError( f"Incompatible types {type(remote_node)} and " + f" {type(local_node)} while trying to apply overrides", local_node.start_mark)