# A minor flaw when using the new API

**URL:** <https://discourse.myhdl.org/t/a-minor-flaw-when-using-the-new-api/85>\
**Category:** Support\
**Created:** [June 9, 2016, 2:33pm UTC](https://discourse.myhdl.org/t/a-minor-flaw-when-using-the-new-api/85 "2016-06-09T14:33:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josyb](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/josyb/32/5_2.png) [@josyb](https://discourse.myhdl.org/u/josyb)\
**Post date:** [June 9, 2016, 2:33pm UTC](https://discourse.myhdl.org/t/a-minor-flaw-when-using-the-new-api/85/1 "2016-06-09T14:33:46Z")

</div>

Using Eclipse with Pylint:

```python
    inst = top_upcounter(C_COUNT_BITS, Clk, Reset, SClr, CntEn, CountMax, Q, IsMaxMinusOne, IsMax)
    inst.convert('VHDL')

```

gets flagged with :

```auto
Instance of 'list' has no 'convert' member (no-member)

```

Leaving nice red error marks everywhere …

---

<div class="post-metadata">

**Author:** ![cfelton](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/cfelton/32/3_2.png) [@cfelton](https://discourse.myhdl.org/u/cfelton)\
**Post date:** [June 9, 2016, 11:12pm UTC](https://discourse.myhdl.org/t/a-minor-flaw-when-using-the-new-api/85/2 "2016-06-09T23:12:52Z")

</div>

I believe that is a flaw with the lint checker (?). The introspection is failing to recognize the return of the decorator and not the function (unless you forgot the @block).

---

<div class="post-metadata">

**Author:** ![josyb](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/josyb/32/5_2.png) [@josyb](https://discourse.myhdl.org/u/josyb)\
**Post date:** [June 10, 2016, 11:05am UTC](https://discourse.myhdl.org/t/a-minor-flaw-when-using-the-new-api/85/3 "2016-06-10T11:05:06Z")

</div>

I suspect that too, but I am using Pylint to check for PEP-8 (and plain other typos).  
I managed to turn it off by setting this in `.pylintrc`:

```auto
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E0201 when accessed. Python regular
# expressions are accepted.
generated-members=REQUEST,acl_users,aq_parent, convert

```

Probably have to add the other Block.members later too.
