From 1dacea79a43d44cb9872fbb804294d639ded14c3 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Tue, 4 Feb 2020 19:10:55 -0600 Subject: [PATCH] Work around Pylint no-member errors in FortanIfEmitter It looks like this is due to https://github.com/PyCQA/pylint/issues/3234 --- dagrt/codegen/fortran.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dagrt/codegen/fortran.py b/dagrt/codegen/fortran.py index 1b2f8e3..f3766e2 100644 --- a/dagrt/codegen/fortran.py +++ b/dagrt/codegen/fortran.py @@ -1334,7 +1334,8 @@ class CodeGenerator(StructuredCodeGenerator): self.emit_allocate_refcount("refcount") - emit_if.emit_else() + # https://github.com/PyCQA/pylint/issues/3234 + emit_if.emit_else() # pylint:disable=no-member # If the refcount is 1, then nobody else is referring to # the memory, and we might as well repurpose/overwrite it, @@ -1387,7 +1388,8 @@ class CodeGenerator(StructuredCodeGenerator): self.emit_traceable('deallocate(refcount)') - if_emit.emit_else() + # https://github.com/PyCQA/pylint/issues/3234 + if_emit.emit_else() # pylint:disable=no-member InitializationEmitter(self)(ftype, val_name, {}) self.emit_traceable('refcount = refcount - 1') -- GitLab