Skip to content

Commit

Permalink
Ignore pylint false positive (field() call)
Browse files Browse the repository at this point in the history
The no_init() function wraps field() and is used only inside
dataclasses.
  • Loading branch information
holesch committed Jan 15, 2024
1 parent bd39167 commit 98ac8fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions not_my_board/_usbip.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ async def from_reader(cls, reader):
return cls


# pylint: disable=invalid-field-call
def no_init(default):
return dataclasses.field(default=default, init=False)

Expand Down

0 comments on commit 98ac8fe

Please sign in to comment.