Avoid Pylint warning E1101: 'Instance of .. has no .. member' for class with dynamic attributes

后端 未结 6 1648
走了就别回头了
走了就别回头了 2020-11-27 04:02

Imagine a function which dynamically adds attributes to an object using setattr. The reason for doing so is that I want to map some external structure

6条回答
  •  感情败类
    2020-11-27 04:50

    For me just installing pylint-django solved the issue:

    pip install pylint-django
    

提交回复
热议问题