diff --git a/requirements-dev.txt b/requirements-dev.txt index 07197555b..8388c2f8a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -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 \ No newline at end of file diff --git a/src/modlunky2/mem/memrauder/dsl.py b/src/modlunky2/mem/memrauder/dsl.py index 71f1266ad..1f77437cd 100644 --- a/src/modlunky2/mem/memrauder/dsl.py +++ b/src/modlunky2/mem/memrauder/dsl.py @@ -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