Skip to content

Commit

Permalink
Upgrade to pylint 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvealerts committed Oct 3, 2023
1 parent c21b30c commit 0517cdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
black==23.9.1
flake8==6.1.0
pylint==2.17.6
pylint==3.0.0
pytest==7.4.2
pip-api==0.0.30
pyinstaller==5.13.2
5 changes: 4 additions & 1 deletion src/modlunky2/mem/memrauder/dsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def struct_field(
metadata = {}
field_meta = StructFieldMeta(offset, deferred_mem_type)
field_meta.put_into(metadata)
return dataclasses.field(metadata=metadata, **kwargs)
# This should only be called in the context of a dataclass
return dataclasses.field( # pylint: disable=invalid-field-call
metadata=metadata, **kwargs
)


dc_struct: DeferredMemType = DataclassStruct # pylint: disable=invalid-name
Expand Down

0 comments on commit 0517cdd

Please sign in to comment.