Skip to content

Proper use of generated-members= setting #2498

Closed
@gpakosz

Description

@gpakosz

Question

Hello, I'm using the Google Drive Python API and the following snippet generates E1101:

    # Call the Drive v3 API
    results = service.files().list(
        pageSize=10, fields="nextPageToken, files(id, name)").execute()
    items = results.get('files', [])
E1101: Instance of 'Resource' has no 'files' member (no-member)

What's the proper way to silence these E1101?
I tried this in my .pylintrc without success:

generated-members=googleapiclient\.discovery\.Resource\..*

And trying a broader match doesn't help either:

generated-members=googleapiclient.*

Metadata

Metadata

Assignees

Labels

Bug 🪲False Negative 🦋No message is emitted but something is wrong with the code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions