mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-05-05 06:05:24 +00:00
14561 lines
584 KiB
JSON
14561 lines
584 KiB
JSON
{
|
|
"errors": [
|
|
{
|
|
"line": 94,
|
|
"column": 5,
|
|
"stop_line": 94,
|
|
"stop_column": 31,
|
|
"path": "src/documents/admin.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `FunctionType` has no attribute `short_description`",
|
|
"concise_description": "Object of class `FunctionType` has no attribute `short_description`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 255,
|
|
"column": 27,
|
|
"stop_line": 255,
|
|
"stop_column": 35,
|
|
"path": "src/documents/admin.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`LogEntry` may be uninitialized",
|
|
"concise_description": "`LogEntry` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 269,
|
|
"column": 16,
|
|
"stop_line": 269,
|
|
"stop_column": 24,
|
|
"path": "src/documents/barcodes.py",
|
|
"code": -2,
|
|
"name": "missing-import",
|
|
"description": "Cannot find module `zxingcpp`\n Looked in these locations (from config in `/home/trenton/projects/paperless-ngx/pyproject.toml`):\n Search path (from config file): [\"/home/trenton/projects/paperless-ngx/src\"]\n Import root (inferred from project layout): \"/home/trenton/projects/paperless-ngx/src\"\n Site package path queried from interpreter: [\"/home/trenton/projects/paperless-ngx/.venv/lib/python3.13/site-packages\"]",
|
|
"concise_description": "Cannot find module `zxingcpp`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 325,
|
|
"column": 38,
|
|
"stop_line": 325,
|
|
"stop_column": 51,
|
|
"path": "src/documents/barcodes.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Image` has no attribute `filename`",
|
|
"concise_description": "Object of class `Image` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 277,
|
|
"column": 16,
|
|
"stop_line": 277,
|
|
"stop_column": 23,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `Literal['ERROR']` is not assignable to declared return type `Literal['OK']`",
|
|
"concise_description": "Returned type `Literal['ERROR']` is not assignable to declared return type `Literal['OK']`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 291,
|
|
"column": 9,
|
|
"stop_line": 293,
|
|
"stop_column": 60,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`dict_items[Unknown, Unknown] | list[tuple[int, None]]` is not assignable to variable `add_custom_fields` with type `dict[Unknown, Unknown] | list[int]`",
|
|
"concise_description": "`dict_items[Unknown, Unknown] | list[tuple[int, None]]` is not assignable to variable `add_custom_fields` with type `dict[Unknown, Unknown] | list[int]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 297,
|
|
"column": 32,
|
|
"stop_line": 297,
|
|
"stop_column": 40,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "Type `int` is not iterable",
|
|
"concise_description": "Type `int` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 299,
|
|
"column": 9,
|
|
"stop_line": 299,
|
|
"stop_column": 24,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "Type `int` is not iterable",
|
|
"concise_description": "Type `int` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 305,
|
|
"column": 21,
|
|
"stop_line": 305,
|
|
"stop_column": 43,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `dict[CustomField.FieldDataType, str]`\n Argument `str` is not assignable to parameter `key` with type `CustomField.FieldDataType` in function `dict.__getitem__`",
|
|
"concise_description": "Cannot index into `dict[CustomField.FieldDataType, str]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 341,
|
|
"column": 5,
|
|
"stop_line": 344,
|
|
"stop_column": 18,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"concise_description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 724,
|
|
"column": 33,
|
|
"stop_line": 724,
|
|
"stop_column": 63,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-argument",
|
|
"description": "Missing argument `p` in function `pikepdf._core.PageList.remove`",
|
|
"concise_description": "Missing argument `p` in function `pikepdf._core.PageList.remove`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1032,
|
|
"column": 13,
|
|
"stop_line": 1032,
|
|
"stop_column": 64,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `append`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 180,
|
|
"column": 25,
|
|
"stop_line": 180,
|
|
"stop_column": 55,
|
|
"path": "src/documents/caching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `bytes | None` is not assignable to parameter `data` with type `Buffer` in function `binascii.hexlify`\n Protocol `Buffer` requires attribute `__buffer__`",
|
|
"concise_description": "Argument `bytes | None` is not assignable to parameter `data` with type `Buffer` in function `binascii.hexlify`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 144,
|
|
"column": 40,
|
|
"stop_line": 144,
|
|
"stop_column": 66,
|
|
"path": "src/documents/classifier.py",
|
|
"code": -2,
|
|
"name": "missing-module-attribute",
|
|
"description": "Could not import `InconsistentVersionWarning` from `sklearn.exceptions`",
|
|
"concise_description": "Could not import `InconsistentVersionWarning` from `sklearn.exceptions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 341,
|
|
"column": 36,
|
|
"stop_line": 343,
|
|
"stop_column": 10,
|
|
"path": "src/documents/classifier.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`ndarray | spmatrix` is not assignable to `ndarray`",
|
|
"concise_description": "`ndarray | spmatrix` is not assignable to `ndarray`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 348,
|
|
"column": 44,
|
|
"stop_line": 348,
|
|
"stop_column": 48,
|
|
"path": "src/documents/classifier.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`None` is not assignable to attribute `stop_words_` with type `set[Unknown]`",
|
|
"concise_description": "`None` is not assignable to attribute `stop_words_` with type `set[Unknown]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 362,
|
|
"column": 51,
|
|
"stop_line": 364,
|
|
"stop_column": 24,
|
|
"path": "src/documents/classifier.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `spmatrix` has no attribute `ravel`",
|
|
"concise_description": "Object of class `spmatrix` has no attribute `ravel`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 367,
|
|
"column": 42,
|
|
"stop_line": 367,
|
|
"stop_column": 88,
|
|
"path": "src/documents/classifier.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`ndarray | spmatrix` is not assignable to variable `labels_tags_vectorized` with type `ndarray`",
|
|
"concise_description": "`ndarray | spmatrix` is not assignable to variable `labels_tags_vectorized` with type `ndarray`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 466,
|
|
"column": 18,
|
|
"stop_line": 466,
|
|
"stop_column": 42,
|
|
"path": "src/documents/classifier.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "`in` is not supported between `str` and `None`",
|
|
"concise_description": "`in` is not supported between `str` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 472,
|
|
"column": 26,
|
|
"stop_line": 472,
|
|
"stop_column": 44,
|
|
"path": "src/documents/classifier.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `stem`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `stem`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 529,
|
|
"column": 22,
|
|
"stop_line": 529,
|
|
"stop_column": 52,
|
|
"path": "src/documents/classifier.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `transform`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `transform`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 564,
|
|
"column": 24,
|
|
"stop_line": 564,
|
|
"stop_column": 61,
|
|
"path": "src/documents/classifier.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `inverse_transform`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `inverse_transform`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 79,
|
|
"column": 9,
|
|
"stop_line": 79,
|
|
"stop_column": 23,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "Type `None` is not iterable",
|
|
"concise_description": "Type `None` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 207,
|
|
"column": 26,
|
|
"stop_line": 207,
|
|
"stop_column": 35,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Expected 0 positional arguments, got 5 in function `object.__init__`",
|
|
"concise_description": "Expected 0 positional arguments, got 5 in function `object.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 209,
|
|
"column": 9,
|
|
"stop_line": 209,
|
|
"stop_column": 33,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `renew_logging_group`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `renew_logging_group`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 211,
|
|
"column": 25,
|
|
"stop_line": 211,
|
|
"stop_column": 38,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 211,
|
|
"column": 51,
|
|
"stop_line": 211,
|
|
"stop_column": 65,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `input_doc`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `input_doc`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 221,
|
|
"column": 9,
|
|
"stop_line": 221,
|
|
"stop_column": 24,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `status_mgr`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `status_mgr`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 227,
|
|
"column": 22,
|
|
"stop_line": 227,
|
|
"stop_column": 35,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 227,
|
|
"column": 48,
|
|
"stop_line": 227,
|
|
"stop_column": 61,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 228,
|
|
"column": 29,
|
|
"stop_line": 228,
|
|
"stop_column": 42,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 229,
|
|
"column": 16,
|
|
"stop_line": 229,
|
|
"stop_column": 29,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 230,
|
|
"column": 30,
|
|
"stop_line": 230,
|
|
"stop_column": 43,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 231,
|
|
"column": 16,
|
|
"stop_line": 231,
|
|
"stop_column": 29,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 328,
|
|
"column": 17,
|
|
"stop_line": 328,
|
|
"stop_column": 25,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `logger` with type `Logger | None` in function `documents.utils.run_subprocess`",
|
|
"concise_description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `logger` with type `Logger | None` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 397,
|
|
"column": 17,
|
|
"stop_line": 397,
|
|
"stop_column": 25,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `logger` with type `Logger | None` in function `documents.utils.run_subprocess`",
|
|
"concise_description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `logger` with type `Logger | None` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 408,
|
|
"column": 9,
|
|
"stop_line": 408,
|
|
"stop_column": 12,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `ConsumerPlugin.run` overrides parent class `AlwaysRunPluginMixin` in an inconsistent manner\n `ConsumerPlugin.run` has type `(self: ConsumerPlugin) -> ConsumeFileSuccessResult`, which is not assignable to `(self: ConsumerPlugin) -> str | None`, the type of `AlwaysRunPluginMixin.run`\n Signature mismatch:\n expected: def run(self: ConsumerPlugin) -> str | None: ...\n ^^^^^^^^^^ return type\n found: def run(self: ConsumerPlugin) -> ConsumeFileSuccessResult: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^ return type",
|
|
"concise_description": "Class member `ConsumerPlugin.run` overrides parent class `AlwaysRunPluginMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 408,
|
|
"column": 9,
|
|
"stop_line": 408,
|
|
"stop_column": 12,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `ConsumerPlugin.run` overrides parent class `NoSetupPluginMixin` in an inconsistent manner\n `ConsumerPlugin.run` has type `(self: ConsumerPlugin) -> ConsumeFileSuccessResult`, which is not assignable to `(self: ConsumerPlugin) -> str | None`, the type of `NoSetupPluginMixin.run`\n Signature mismatch:\n expected: def run(self: ConsumerPlugin) -> str | None: ...\n ^^^^^^^^^^ return type\n found: def run(self: ConsumerPlugin) -> ConsumeFileSuccessResult: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^ return type",
|
|
"concise_description": "Class member `ConsumerPlugin.run` overrides parent class `NoSetupPluginMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 408,
|
|
"column": 9,
|
|
"stop_line": 408,
|
|
"stop_column": 12,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `ConsumerPlugin.run` overrides parent class `NoCleanupPluginMixin` in an inconsistent manner\n `ConsumerPlugin.run` has type `(self: ConsumerPlugin) -> ConsumeFileSuccessResult`, which is not assignable to `(self: ConsumerPlugin) -> str | None`, the type of `NoCleanupPluginMixin.run`\n Signature mismatch:\n expected: def run(self: ConsumerPlugin) -> str | None: ...\n ^^^^^^^^^^ return type\n found: def run(self: ConsumerPlugin) -> ConsumeFileSuccessResult: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^ return type",
|
|
"concise_description": "Class member `ConsumerPlugin.run` overrides parent class `NoCleanupPluginMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 408,
|
|
"column": 9,
|
|
"stop_line": 408,
|
|
"stop_column": 12,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `ConsumerPlugin.run` overrides parent class `ConsumeTaskPlugin` in an inconsistent manner\n `ConsumerPlugin.run` has type `(self: ConsumerPlugin) -> ConsumeFileSuccessResult`, which is not assignable to `(self: ConsumerPlugin) -> str | None`, the type of `ConsumeTaskPlugin.run`\n Signature mismatch:\n expected: def run(self: ConsumerPlugin) -> str | None: ...\n ^^^^^^^^^^ return type\n found: def run(self: ConsumerPlugin) -> ConsumeFileSuccessResult: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^ return type",
|
|
"concise_description": "Class member `ConsumerPlugin.run` overrides parent class `ConsumeTaskPlugin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 442,
|
|
"column": 25,
|
|
"stop_line": 446,
|
|
"stop_column": 26,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `list[Path | str]` is not assignable to parameter `arguments` with type `list[str]` in function `documents.utils.run_subprocess`",
|
|
"concise_description": "Argument `list[Path | str]` is not assignable to parameter `arguments` with type `list[str]` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 447,
|
|
"column": 32,
|
|
"stop_line": 447,
|
|
"stop_column": 40,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `logger` with type `Logger | None` in function `documents.utils.run_subprocess`",
|
|
"concise_description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `logger` with type `Logger | None` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 518,
|
|
"column": 25,
|
|
"stop_line": 518,
|
|
"stop_column": 33,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `log` with type `Logger | None` in function `should_produce_archive`",
|
|
"concise_description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `log` with type `Logger | None` in function `should_produce_archive`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 548,
|
|
"column": 74,
|
|
"stop_line": 548,
|
|
"stop_column": 78,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.plugins.date_parsing.base.DateParserPluginBase.parse`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.plugins.date_parsing.base.DateParserPluginBase.parse`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 630,
|
|
"column": 33,
|
|
"stop_line": 630,
|
|
"stop_column": 60,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `log_create`",
|
|
"concise_description": "Object of class `Manager` has no attribute `log_create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 645,
|
|
"column": 38,
|
|
"stop_line": 645,
|
|
"stop_column": 42,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `text` with type `str` in function `ConsumerPlugin._store`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `text` with type `str` in function `ConsumerPlugin._store`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 716,
|
|
"column": 62,
|
|
"stop_line": 716,
|
|
"stop_column": 83,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `source_path` with type `Path` in function `documents.file_handling.create_source_path_directory`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `source_path` with type `Path` in function `documents.file_handling.create_source_path_directory`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 723,
|
|
"column": 37,
|
|
"stop_line": 723,
|
|
"stop_column": 58,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `Path` in function `documents.utils.compute_checksum`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `Path` in function `documents.utils.compute_checksum`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 807,
|
|
"column": 13,
|
|
"stop_line": 807,
|
|
"stop_column": 31,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `correspondent_name` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `correspondent_name` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 808,
|
|
"column": 13,
|
|
"stop_line": 808,
|
|
"stop_column": 26,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `doc_type_name` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `doc_type_name` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 809,
|
|
"column": 13,
|
|
"stop_line": 809,
|
|
"stop_column": 27,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `owner_username` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `owner_username` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 931,
|
|
"column": 31,
|
|
"stop_line": 931,
|
|
"stop_column": 46,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str` is not assignable to parameter `data_type` with type `CustomField.FieldDataType` in function `documents.models.CustomFieldInstance.get_value_field_name`",
|
|
"concise_description": "Argument `str` is not assignable to parameter `data_type` with type `CustomField.FieldDataType` in function `documents.models.CustomFieldInstance.get_value_field_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1003,
|
|
"column": 21,
|
|
"stop_line": 1003,
|
|
"stop_column": 36,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `title`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1004,
|
|
"column": 24,
|
|
"stop_line": 1004,
|
|
"stop_column": 51,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `original_filename`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `original_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1005,
|
|
"column": 30,
|
|
"stop_line": 1005,
|
|
"stop_column": 48,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `object | Unknown` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `object | Unknown` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1005,
|
|
"column": 58,
|
|
"stop_line": 1005,
|
|
"stop_column": 76,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `filename`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1006,
|
|
"column": 28,
|
|
"stop_line": 1006,
|
|
"stop_column": 40,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `pk`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1013,
|
|
"column": 65,
|
|
"stop_line": 1013,
|
|
"stop_column": 77,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `pk`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1028,
|
|
"column": 21,
|
|
"stop_line": 1028,
|
|
"stop_column": 33,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `pk`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1094,
|
|
"column": 16,
|
|
"stop_line": 1094,
|
|
"stop_column": 51,
|
|
"path": "src/documents/consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `deleted_at`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `deleted_at`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 31,
|
|
"column": 13,
|
|
"stop_line": 37,
|
|
"stop_column": 14,
|
|
"path": "src/documents/converters.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `list[Path | str]` is not assignable to parameter `arguments` with type `list[str]` in function `documents.utils.run_subprocess`",
|
|
"concise_description": "Argument `list[Path | str]` is not assignable to parameter `arguments` with type `list[str]` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 46,
|
|
"column": 24,
|
|
"stop_line": 46,
|
|
"stop_column": 49,
|
|
"path": "src/documents/converters.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `bytes | None` is not assignable to parameter `buffer` with type `Buffer` in function `_io.BufferedWriter.write`\n Protocol `Buffer` requires attribute `__buffer__`",
|
|
"concise_description": "Argument `bytes | None` is not assignable to parameter `buffer` with type `Buffer` in function `_io.BufferedWriter.write`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 116,
|
|
"column": 13,
|
|
"stop_line": 119,
|
|
"stop_column": 26,
|
|
"path": "src/documents/data_models.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `list` has no attribute `values_list`",
|
|
"concise_description": "Object of class `list` has no attribute `values_list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 122,
|
|
"column": 13,
|
|
"stop_line": 125,
|
|
"stop_column": 26,
|
|
"path": "src/documents/data_models.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `list` has no attribute `values_list`",
|
|
"concise_description": "Object of class `list` has no attribute `values_list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 138,
|
|
"column": 26,
|
|
"stop_line": 138,
|
|
"stop_column": 43,
|
|
"path": "src/documents/data_models.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "Type `Group` is not iterable",
|
|
"concise_description": "Type `Group` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 139,
|
|
"column": 35,
|
|
"stop_line": 139,
|
|
"stop_column": 59,
|
|
"path": "src/documents/data_models.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `Group`\n Object of class `Group` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `Group`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 143,
|
|
"column": 26,
|
|
"stop_line": 143,
|
|
"stop_column": 43,
|
|
"path": "src/documents/data_models.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "Type `Group` is not iterable",
|
|
"concise_description": "Type `Group` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 144,
|
|
"column": 37,
|
|
"stop_line": 144,
|
|
"stop_column": 61,
|
|
"path": "src/documents/data_models.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `Group`\n Object of class `Group` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `Group`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 173,
|
|
"column": 22,
|
|
"stop_line": 173,
|
|
"stop_column": 65,
|
|
"path": "src/documents/data_models.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`None` is not assignable to `str`",
|
|
"concise_description": "`None` is not assignable to `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 143,
|
|
"column": 12,
|
|
"stop_line": 143,
|
|
"stop_column": 36,
|
|
"path": "src/documents/file_handling.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `storage_path`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 144,
|
|
"column": 31,
|
|
"stop_line": 144,
|
|
"stop_column": 60,
|
|
"path": "src/documents/file_handling.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `path`",
|
|
"concise_description": "Object of class `object` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 157,
|
|
"column": 53,
|
|
"stop_line": 157,
|
|
"stop_column": 64,
|
|
"path": "src/documents/file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Document | None` is not assignable to parameter `document` with type `Document` in function `format_filename`",
|
|
"concise_description": "Argument `Document | None` is not assignable to parameter `document` with type `Document` in function `format_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 181,
|
|
"column": 16,
|
|
"stop_line": 181,
|
|
"stop_column": 30,
|
|
"path": "src/documents/file_handling.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `pk`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 210,
|
|
"column": 51,
|
|
"stop_line": 210,
|
|
"stop_column": 61,
|
|
"path": "src/documents/filters.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SharedByUser` has no attribute `model`",
|
|
"concise_description": "Object of class `SharedByUser` has no attribute `model`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 266,
|
|
"column": 31,
|
|
"stop_line": 266,
|
|
"stop_column": 51,
|
|
"path": "src/documents/filters.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 326,
|
|
"column": 25,
|
|
"stop_line": 326,
|
|
"stop_column": 66,
|
|
"path": "src/documents/filters.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 353,
|
|
"column": 47,
|
|
"stop_line": 353,
|
|
"stop_column": 76,
|
|
"path": "src/documents/filters.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `dict[Unknown | None, _APIExceptionInput]` is not assignable to parameter `detail` with type `ErrorDetail | Mapping[str, _APIExceptionInput] | Sequence[_APIExceptionInput] | _StrPromise | dict[str, _Detail] | list[_Detail] | str | None` in function `rest_framework.exceptions.APIException.__init__`",
|
|
"concise_description": "Argument `dict[Unknown | None, _APIExceptionInput]` is not assignable to parameter `detail` with type `ErrorDetail | Mapping[str, _APIExceptionInput] | Sequence[_APIExceptionInput] | _StrPromise | dict[str, _Detail] | list[_Detail] | str | None` in function `rest_framework.exceptions.APIException.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 362,
|
|
"column": 5,
|
|
"stop_line": 362,
|
|
"stop_column": 26,
|
|
"path": "src/documents/filters.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `FunctionType` has no attribute `__signature__`",
|
|
"concise_description": "Object of class `FunctionType` has no attribute `__signature__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 673,
|
|
"column": 26,
|
|
"stop_line": 673,
|
|
"stop_column": 49,
|
|
"path": "src/documents/filters.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ForeignObjectRel` has no attribute `deconstruct`",
|
|
"concise_description": "Object of class `ForeignObjectRel` has no attribute `deconstruct`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 676,
|
|
"column": 17,
|
|
"stop_line": 676,
|
|
"stop_column": 28,
|
|
"path": "src/documents/filters.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Field[Any, Any] | ForeignObjectRel` is not assignable to parameter `model_field` with type `Field[Unknown, Unknown]` in function `rest_framework.serializers.ModelSerializer.build_standard_field`",
|
|
"concise_description": "Argument `Field[Any, Any] | ForeignObjectRel` is not assignable to parameter `model_field` with type `Field[Unknown, Unknown]` in function `rest_framework.serializers.ModelSerializer.build_standard_field`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 733,
|
|
"column": 18,
|
|
"stop_line": 733,
|
|
"stop_column": 41,
|
|
"path": "src/documents/filters.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `iterable` with type `Iterable[Any]` in function `set.__init__`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `iterable` with type `Iterable[Any]` in function `set.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1040,
|
|
"column": 25,
|
|
"stop_line": 1040,
|
|
"stop_column": 45,
|
|
"path": "src/documents/filters.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 13,
|
|
"column": 31,
|
|
"stop_line": 13,
|
|
"stop_column": 48,
|
|
"path": "src/documents/loggers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `LoggingMixin` has no attribute `logging_name`",
|
|
"concise_description": "Object of class `LoggingMixin` has no attribute `logging_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 119,
|
|
"column": 13,
|
|
"stop_line": 119,
|
|
"stop_column": 29,
|
|
"path": "src/documents/management/commands/document_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `write`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `write`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 122,
|
|
"column": 9,
|
|
"stop_line": 122,
|
|
"stop_column": 25,
|
|
"path": "src/documents/management/commands/document_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `write`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `write`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 565,
|
|
"column": 41,
|
|
"stop_line": 565,
|
|
"stop_column": 50,
|
|
"path": "src/documents/management/commands/document_exporter.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | str` is not assignable to parameter `element` with type `str` in function `set.add`",
|
|
"concise_description": "Argument `Path | str` is not assignable to parameter `element` with type `str` in function `set.add`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 238,
|
|
"column": 14,
|
|
"stop_line": 238,
|
|
"stop_column": 18,
|
|
"path": "src/documents/management/commands/document_importer.py",
|
|
"code": -2,
|
|
"name": "bad-override-mutable-attribute",
|
|
"description": "Class member `Command.salt` overrides parent class `CryptMixin` in an inconsistent manner\n `Command.salt` has type `str | None`, which is not consistent with `str` in `CryptMixin.salt` (the type of read-write attributes cannot be changed)",
|
|
"concise_description": "Class member `Command.salt` overrides parent class `CryptMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 420,
|
|
"column": 29,
|
|
"stop_line": 420,
|
|
"stop_column": 51,
|
|
"path": "src/documents/management/commands/document_importer.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`/` is not supported between `Path` and `None`\n Argument `None` is not assignable to parameter `key` with type `PathLike[str] | str` in function `pathlib.PurePath.__truediv__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "`/` is not supported between `Path` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 463,
|
|
"column": 35,
|
|
"stop_line": 463,
|
|
"stop_column": 60,
|
|
"path": "src/documents/management/commands/document_importer.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`/` is not supported between `Path` and `None`\n Argument `None` is not assignable to parameter `key` with type `PathLike[str] | str` in function `pathlib.PurePath.__truediv__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "`/` is not supported between `Path` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 49,
|
|
"column": 42,
|
|
"stop_line": 49,
|
|
"stop_column": 69,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_correspondent`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 81,
|
|
"column": 42,
|
|
"stop_line": 81,
|
|
"stop_column": 69,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_document_type`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_document_type`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 112,
|
|
"column": 33,
|
|
"stop_line": 112,
|
|
"stop_column": 60,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_tags`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 139,
|
|
"column": 41,
|
|
"stop_line": 139,
|
|
"stop_column": 68,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_storage_path`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 345,
|
|
"column": 24,
|
|
"stop_line": 348,
|
|
"stop_column": 10,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-specialization",
|
|
"description": "`Path` is not assignable to upper bound `bytes | str` of type variable `AnyStr`",
|
|
"concise_description": "`Path` is not assignable to upper bound `bytes | str` of type variable `AnyStr`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 347,
|
|
"column": 13,
|
|
"stop_line": 347,
|
|
"stop_column": 32,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str` is not assignable to parameter `pat` with type `Path` in function `fnmatch.fnmatch`",
|
|
"concise_description": "Argument `str` is not assignable to parameter `pat` with type `Path` in function `fnmatch.fnmatch`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 356,
|
|
"column": 12,
|
|
"stop_line": 356,
|
|
"stop_column": 37,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `tuple[bool, Literal[''] | tuple[str]]` is not assignable to declared return type `tuple[bool, str]`",
|
|
"concise_description": "Returned type `tuple[bool, Literal[''] | tuple[str]]` is not assignable to declared return type `tuple[bool, str]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 370,
|
|
"column": 9,
|
|
"stop_line": 370,
|
|
"stop_column": 16,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `WorkflowTrigger` is not assignable to parameter `matching_model` with type `MatchingModel` in function `matches`",
|
|
"concise_description": "Argument `WorkflowTrigger` is not assignable to parameter `matching_model` with type `MatchingModel` in function `matches`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 395,
|
|
"column": 17,
|
|
"stop_line": 395,
|
|
"stop_column": 55,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`&` is not supported between `None` and `set[Any]`\n Cannot find `__and__` or `__rand__`",
|
|
"concise_description": "`&` is not supported between `None` and `set[Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 405,
|
|
"column": 42,
|
|
"stop_line": 405,
|
|
"stop_column": 58,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `set[Any] | None` is not assignable to parameter `s` with type `Iterable[object]` in function `set.issubset`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `set[Any] | None` is not assignable to parameter `s` with type `Iterable[object]` in function `set.issubset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 414,
|
|
"column": 12,
|
|
"stop_line": 414,
|
|
"stop_column": 47,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`&` is not supported between `None` and `set[Any]`\n Cannot find `__and__` or `__rand__`",
|
|
"concise_description": "`&` is not supported between `None` and `set[Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 685,
|
|
"column": 21,
|
|
"stop_line": 685,
|
|
"stop_column": 29,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `ConsumableDocument` in function `consumable_document_matches_workflow`",
|
|
"concise_description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `ConsumableDocument` in function `consumable_document_matches_workflow`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 694,
|
|
"column": 21,
|
|
"stop_line": 694,
|
|
"stop_column": 29,
|
|
"path": "src/documents/matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `Document` in function `existing_document_matches_workflow`",
|
|
"concise_description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `Document` in function `existing_document_matches_workflow`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 116,
|
|
"column": 11,
|
|
"stop_line": 116,
|
|
"stop_column": 15,
|
|
"path": "src/documents/models.py",
|
|
"code": -2,
|
|
"name": "inconsistent-inheritance",
|
|
"description": "Field `ordering` has inconsistent types inherited from multiple base classes\n Inherited types include:\n `tuple[Literal['name']]` from `Meta`\n `list[str]` from `Meta`",
|
|
"concise_description": "Field `ordering` has inconsistent types inherited from multiple base classes",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 453,
|
|
"column": 21,
|
|
"stop_line": 453,
|
|
"stop_column": 38,
|
|
"path": "src/documents/models.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1031,
|
|
"column": 9,
|
|
"stop_line": 1031,
|
|
"stop_column": 15,
|
|
"path": "src/documents/models.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `ShareLinkBundle.delete` overrides parent class `Model` in an inconsistent manner\n `ShareLinkBundle.delete` has type `(self: ShareLinkBundle, using: Unknown | None = None, *, keep_parents: bool | Unknown = False) -> tuple[int, dict[str, int]]`, which is not assignable to `(self: ShareLinkBundle, using: Any | None = None, keep_parents: bool = False) -> tuple[int, dict[str, int]]`, the type of `Model.delete`\n Signature mismatch:\n expected: def delete(self: ShareLinkBundle, using: Any | None = None, keep_parents: bool = False) -> tuple[int, dict[str, int]]: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ parameters\n found: def delete(self: ShareLinkBundle, using: Unknown | None = None, *, keep_parents: bool | Unknown = False) -> tuple[int, dict...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ parameters",
|
|
"concise_description": "Class member `ShareLinkBundle.delete` overrides parent class `Model` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1206,
|
|
"column": 54,
|
|
"stop_line": 1206,
|
|
"stop_column": 74,
|
|
"path": "src/documents/models.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str` is not assignable to parameter `data_type` with type `CustomField.FieldDataType` in function `CustomFieldInstance.get_value_field_name`",
|
|
"concise_description": "Argument `str` is not assignable to parameter `data_type` with type `CustomField.FieldDataType` in function `CustomFieldInstance.get_value_field_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1230,
|
|
"column": 5,
|
|
"stop_line": 1230,
|
|
"stop_column": 13,
|
|
"path": "src/documents/models.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`auditlog` may be uninitialized",
|
|
"concise_description": "`auditlog` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 146,
|
|
"column": 28,
|
|
"stop_line": 146,
|
|
"stop_column": 31,
|
|
"path": "src/documents/parsers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `list[Path | str | Unknown]` is not assignable to parameter `arguments` with type `list[str]` in function `documents.utils.run_subprocess`",
|
|
"concise_description": "Argument `list[Path | str | Unknown]` is not assignable to parameter `arguments` with type `list[str]` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 123,
|
|
"column": 42,
|
|
"stop_line": 123,
|
|
"stop_column": 64,
|
|
"path": "src/documents/permissions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `list` has no attribute `exists`",
|
|
"concise_description": "Object of class `list` has no attribute `exists`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 124,
|
|
"column": 35,
|
|
"stop_line": 124,
|
|
"stop_column": 58,
|
|
"path": "src/documents/permissions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `list` has no attribute `exclude`",
|
|
"concise_description": "Object of class `list` has no attribute `exclude`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 125,
|
|
"column": 16,
|
|
"stop_line": 125,
|
|
"stop_column": 38,
|
|
"path": "src/documents/permissions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `list` has no attribute `exists`",
|
|
"concise_description": "Object of class `list` has no attribute `exists`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 97,
|
|
"column": 29,
|
|
"stop_line": 97,
|
|
"stop_column": 48,
|
|
"path": "src/documents/plugins/helpers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`BaseChannelLayer | None` is not assignable to attribute `_channel` with type `RedisPubSubChannelLayer | None`",
|
|
"concise_description": "`BaseChannelLayer | None` is not assignable to attribute `_channel` with type `RedisPubSubChannelLayer | None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 23,
|
|
"column": 26,
|
|
"stop_line": 23,
|
|
"stop_column": 33,
|
|
"path": "src/documents/regex.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `error` has no attribute `msg`",
|
|
"concise_description": "Object of class `error` has no attribute `msg`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 186,
|
|
"column": 24,
|
|
"stop_line": 186,
|
|
"stop_column": 51,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `writer`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `writer`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 192,
|
|
"column": 17,
|
|
"stop_line": 192,
|
|
"stop_column": 36,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `commit`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `commit`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 193,
|
|
"column": 17,
|
|
"stop_line": 193,
|
|
"stop_column": 44,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `reload`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `reload`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 222,
|
|
"column": 9,
|
|
"stop_line": 222,
|
|
"stop_column": 34,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `add_document`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `add_document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 235,
|
|
"column": 9,
|
|
"stop_line": 235,
|
|
"stop_column": 47,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `delete_documents_by_query`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `delete_documents_by_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 237,
|
|
"column": 17,
|
|
"stop_line": 237,
|
|
"stop_column": 38,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.range_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.range_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 333,
|
|
"column": 44,
|
|
"stop_line": 333,
|
|
"stop_column": 55,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `index` with type `Index` in function `documents.search._query.parse_simple_text_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `index` with type `Index` in function `documents.search._query.parse_simple_text_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 335,
|
|
"column": 45,
|
|
"stop_line": 335,
|
|
"stop_column": 56,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `index` with type `Index` in function `documents.search._query.parse_simple_title_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `index` with type `Index` in function `documents.search._query.parse_simple_title_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 337,
|
|
"column": 37,
|
|
"stop_line": 337,
|
|
"stop_column": 48,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `index` with type `Index` in function `documents.search._query.parse_user_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `index` with type `Index` in function `documents.search._query.parse_user_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 346,
|
|
"column": 57,
|
|
"stop_line": 346,
|
|
"stop_column": 69,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `documents.search._query.build_permission_filter`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `documents.search._query.build_permission_filter`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 389,
|
|
"column": 50,
|
|
"stop_line": 389,
|
|
"stop_column": 75,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int | None` is not assignable to parameter `value` with type `int` in function `tantivy.tantivy.Document.add_unsigned`",
|
|
"concise_description": "Argument `int | None` is not assignable to parameter `value` with type `int` in function `tantivy.tantivy.Document.add_unsigned`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 395,
|
|
"column": 50,
|
|
"stop_line": 395,
|
|
"stop_column": 75,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int | None` is not assignable to parameter `value` with type `int` in function `tantivy.tantivy.Document.add_unsigned`",
|
|
"concise_description": "Argument `int | None` is not assignable to parameter `value` with type `int` in function `tantivy.tantivy.Document.add_unsigned`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 400,
|
|
"column": 49,
|
|
"stop_line": 400,
|
|
"stop_column": 73,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int | None` is not assignable to parameter `value` with type `int` in function `tantivy.tantivy.Document.add_unsigned`",
|
|
"concise_description": "Argument `int | None` is not assignable to parameter `value` with type `int` in function `tantivy.tantivy.Document.add_unsigned`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 414,
|
|
"column": 21,
|
|
"stop_line": 414,
|
|
"stop_column": 35,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `notes`",
|
|
"concise_description": "Object of class `Document` has no attribute `notes`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 423,
|
|
"column": 20,
|
|
"stop_line": 423,
|
|
"stop_column": 42,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 465,
|
|
"column": 43,
|
|
"stop_line": 465,
|
|
"stop_column": 50,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `str` has no attribute `pk`",
|
|
"concise_description": "Object of class `str` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 555,
|
|
"column": 65,
|
|
"stop_line": 555,
|
|
"stop_column": 76,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `index` with type `Index` in function `documents.search._query.parse_simple_text_highlight_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `index` with type `Index` in function `documents.search._query.parse_simple_text_highlight_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 566,
|
|
"column": 17,
|
|
"stop_line": 566,
|
|
"stop_column": 40,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `parse_query`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `parse_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 573,
|
|
"column": 20,
|
|
"stop_line": 573,
|
|
"stop_column": 40,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 582,
|
|
"column": 17,
|
|
"stop_line": 582,
|
|
"stop_column": 29,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.range_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.range_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 609,
|
|
"column": 25,
|
|
"stop_line": 609,
|
|
"stop_column": 37,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.SnippetGenerator.create`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.SnippetGenerator.create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 624,
|
|
"column": 29,
|
|
"stop_line": 624,
|
|
"stop_column": 41,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.SnippetGenerator.create`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.SnippetGenerator.create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 679,
|
|
"column": 20,
|
|
"stop_line": 679,
|
|
"stop_column": 40,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 739,
|
|
"column": 20,
|
|
"stop_line": 739,
|
|
"stop_column": 40,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 752,
|
|
"column": 25,
|
|
"stop_line": 752,
|
|
"stop_column": 37,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.term_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.term_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 760,
|
|
"column": 25,
|
|
"stop_line": 760,
|
|
"stop_column": 37,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.regex_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.regex_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 770,
|
|
"column": 37,
|
|
"stop_line": 770,
|
|
"stop_column": 54,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 774,
|
|
"column": 66,
|
|
"stop_line": 774,
|
|
"stop_column": 78,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `documents.search._query.build_permission_filter`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `documents.search._query.build_permission_filter`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 822,
|
|
"column": 20,
|
|
"stop_line": 822,
|
|
"stop_column": 40,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 825,
|
|
"column": 13,
|
|
"stop_line": 825,
|
|
"stop_column": 25,
|
|
"path": "src/documents/search/_backend.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.range_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.range_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 132,
|
|
"column": 9,
|
|
"stop_line": 132,
|
|
"stop_column": 17,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override-param-name",
|
|
"description": "Class member `MatchingModelSerializer.validate` overrides parent class `ModelSerializer` in an inconsistent manner\n Got parameter name `data`, expected `attrs`",
|
|
"concise_description": "Class member `MatchingModelSerializer.validate` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 206,
|
|
"column": 62,
|
|
"stop_line": 208,
|
|
"stop_column": 26,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "Cannot set item in `dict[str, QuerySet[User, User]]`\n Argument `QuerySet[Group, Group]` is not assignable to parameter `value` with type `QuerySet[User, User]` in function `dict.__setitem__`",
|
|
"concise_description": "Cannot set item in `dict[str, QuerySet[User, User]]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 295,
|
|
"column": 17,
|
|
"stop_line": 299,
|
|
"stop_column": 30,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `list` has no attribute `values_list`",
|
|
"concise_description": "Object of class `list` has no attribute `values_list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 361,
|
|
"column": 21,
|
|
"stop_line": 361,
|
|
"stop_column": 37,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `has_perm`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `has_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 473,
|
|
"column": 9,
|
|
"stop_line": 473,
|
|
"stop_column": 26,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override-param-name",
|
|
"description": "Class member `OwnedObjectListSerializer.to_representation` overrides parent class `ListSerializer` in an inconsistent manner\n Got parameter name `documents`, expected `data`",
|
|
"concise_description": "Class member `OwnedObjectListSerializer.to_representation` overrides parent class `ListSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 474,
|
|
"column": 9,
|
|
"stop_line": 474,
|
|
"stop_column": 27,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `context`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `context`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 474,
|
|
"column": 51,
|
|
"stop_line": 474,
|
|
"stop_column": 83,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BaseSerializer` has no attribute `get_shared_object_pks`\nObject of class `Field` has no attribute `get_shared_object_pks`\nObject of class `NoneType` has no attribute `get_shared_object_pks`",
|
|
"concise_description": "Object of class `BaseSerializer` has no attribute `get_shared_object_pks`\nObject of class `Field` has no attribute `get_shared_object_pks`\nObject of class `NoneType` has no attribute `get_shared_object_pks`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 484,
|
|
"column": 17,
|
|
"stop_line": 484,
|
|
"stop_column": 30,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[Correspondent]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[Correspondent]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 503,
|
|
"column": 17,
|
|
"stop_line": 503,
|
|
"stop_column": 29,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[DocumentType]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[DocumentType]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 573,
|
|
"column": 14,
|
|
"stop_line": 578,
|
|
"stop_column": 6,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`ManyRelatedField | RelatedField[@_, @_, Any]` is not assignable to attribute `parent` with type `BaseSerializer[Unknown]`",
|
|
"concise_description": "`ManyRelatedField | RelatedField[@_, @_, Any]` is not assignable to attribute `parent` with type `BaseSerializer[Unknown]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 628,
|
|
"column": 17,
|
|
"stop_line": 628,
|
|
"stop_column": 20,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[Tag]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[Tag]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 654,
|
|
"column": 9,
|
|
"stop_line": 654,
|
|
"stop_column": 17,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override-param-name",
|
|
"description": "Class member `TagSerializer.validate` overrides parent class `MatchingModelSerializer` in an inconsistent manner\n Got parameter name `attrs`, expected `data`",
|
|
"concise_description": "Class member `TagSerializer.validate` overrides parent class `MatchingModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 707,
|
|
"column": 17,
|
|
"stop_line": 707,
|
|
"stop_column": 42,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[CustomField.FieldDataType]` is not assignable to parameter `choices` with type `Sequence[Any]` in function `rest_framework.fields.ChoiceField.__init__`",
|
|
"concise_description": "Argument `type[CustomField.FieldDataType]` is not assignable to parameter `choices` with type `Sequence[Any]` in function `rest_framework.fields.ChoiceField.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 714,
|
|
"column": 17,
|
|
"stop_line": 714,
|
|
"stop_column": 28,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[CustomField]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[CustomField]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 792,
|
|
"column": 28,
|
|
"stop_line": 792,
|
|
"stop_column": 39,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Unknown | None` is not assignable to attribute `method_name` with type `str`",
|
|
"concise_description": "`Unknown | None` is not assignable to attribute `method_name` with type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 830,
|
|
"column": 13,
|
|
"stop_line": 830,
|
|
"stop_column": 35,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str` is not assignable to parameter `data_type` with type `CustomField.FieldDataType` in function `documents.models.CustomFieldInstance.get_value_field_name`",
|
|
"concise_description": "Argument `str` is not assignable to parameter `data_type` with type `CustomField.FieldDataType` in function `documents.models.CustomFieldInstance.get_value_field_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 846,
|
|
"column": 9,
|
|
"stop_line": 846,
|
|
"stop_column": 18,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override-param-name",
|
|
"description": "Class member `CustomFieldInstanceSerializer.get_value` overrides parent class `ModelSerializer` in an inconsistent manner\n Got parameter name `obj`, expected `dictionary`",
|
|
"concise_description": "Class member `CustomFieldInstanceSerializer.get_value` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 849,
|
|
"column": 9,
|
|
"stop_line": 849,
|
|
"stop_column": 17,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override-param-name",
|
|
"description": "Class member `CustomFieldInstanceSerializer.validate` overrides parent class `ModelSerializer` in an inconsistent manner\n Got parameter name `data`, expected `attrs`",
|
|
"concise_description": "Class member `CustomFieldInstanceSerializer.validate` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 892,
|
|
"column": 34,
|
|
"stop_line": 892,
|
|
"stop_column": 68,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 920,
|
|
"column": 17,
|
|
"stop_line": 920,
|
|
"stop_column": 36,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[CustomFieldInstance]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[CustomFieldInstance]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 930,
|
|
"column": 17,
|
|
"stop_line": 930,
|
|
"stop_column": 21,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[User]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[User]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 938,
|
|
"column": 17,
|
|
"stop_line": 938,
|
|
"stop_column": 21,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[Note]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[Note]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1095,
|
|
"column": 30,
|
|
"stop_line": 1095,
|
|
"stop_column": 55,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1139,
|
|
"column": 12,
|
|
"stop_line": 1139,
|
|
"stop_column": 34,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1143,
|
|
"column": 42,
|
|
"stop_line": 1143,
|
|
"stop_column": 64,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1227,
|
|
"column": 17,
|
|
"stop_line": 1227,
|
|
"stop_column": 25,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[Document]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[Document]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1262,
|
|
"column": 9,
|
|
"stop_line": 1262,
|
|
"stop_column": 26,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override-param-name",
|
|
"description": "Class member `SearchResultListSerializer.to_representation` overrides parent class `ListSerializer` in an inconsistent manner\n Got parameter name `hits`, expected `data`",
|
|
"concise_description": "Class member `SearchResultListSerializer.to_representation` overrides parent class `ListSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1265,
|
|
"column": 21,
|
|
"stop_line": 1265,
|
|
"stop_column": 47,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BaseSerializer` has no attribute `fetch_documents`\nObject of class `Field` has no attribute `fetch_documents`\nObject of class `NoneType` has no attribute `fetch_documents`",
|
|
"concise_description": "Object of class `BaseSerializer` has no attribute `fetch_documents`\nObject of class `Field` has no attribute `fetch_documents`\nObject of class `NoneType` has no attribute `fetch_documents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1266,
|
|
"column": 9,
|
|
"stop_line": 1266,
|
|
"stop_column": 27,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `context`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `context`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1268,
|
|
"column": 9,
|
|
"stop_line": 1268,
|
|
"stop_column": 27,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `context`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `context`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1268,
|
|
"column": 51,
|
|
"stop_line": 1268,
|
|
"stop_column": 83,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BaseSerializer` has no attribute `get_shared_object_pks`\nObject of class `Field` has no attribute `get_shared_object_pks`\nObject of class `NoneType` has no attribute `get_shared_object_pks`",
|
|
"concise_description": "Object of class `BaseSerializer` has no attribute `get_shared_object_pks`\nObject of class `Field` has no attribute `get_shared_object_pks`\nObject of class `NoneType` has no attribute `get_shared_object_pks`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1293,
|
|
"column": 9,
|
|
"stop_line": 1293,
|
|
"stop_column": 26,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override-param-name",
|
|
"description": "Class member `SearchResultSerializer.to_representation` overrides parent class `DocumentSerializer` in an inconsistent manner\n Got parameter name `hit`, expected `instance`",
|
|
"concise_description": "Class member `SearchResultSerializer.to_representation` overrides parent class `DocumentSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1315,
|
|
"column": 9,
|
|
"stop_line": 1315,
|
|
"stop_column": 30,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override-mutable-attribute",
|
|
"description": "Class member `Meta.list_serializer_class` overrides parent class `Meta` in an inconsistent manner\n `Meta.list_serializer_class` has type `type[SearchResultListSerializer]`, which is not consistent with `type[OwnedObjectListSerializer]` in `Meta.list_serializer_class` (the type of read-write attributes cannot be changed)",
|
|
"concise_description": "Class member `Meta.list_serializer_class` overrides parent class `Meta` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1320,
|
|
"column": 17,
|
|
"stop_line": 1320,
|
|
"stop_column": 36,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[SavedViewFilterRule]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[SavedViewFilterRule]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1328,
|
|
"column": 17,
|
|
"stop_line": 1328,
|
|
"stop_column": 26,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[SavedView]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[SavedView]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1467,
|
|
"column": 21,
|
|
"stop_line": 1467,
|
|
"stop_column": 62,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`Literal[SavedView.DisplayFields.CUSTOM_FIELD]` is not subscriptable",
|
|
"concise_description": "`Literal[SavedView.DisplayFields.CUSTOM_FIELD]` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1469,
|
|
"column": 36,
|
|
"stop_line": 1469,
|
|
"stop_column": 63,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1696,
|
|
"column": 7,
|
|
"stop_line": 1696,
|
|
"stop_column": 25,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "invalid-inheritance",
|
|
"description": "Class `BulkEditSerializer` has inconsistent type arguments for base class `Field`: `Field[Any, Any, Any, dict[str, Any]]` and `Field[Any, Any, Any, dict[str, list[int]]]`",
|
|
"concise_description": "Class `BulkEditSerializer` has inconsistent type arguments for base class `Field`: `Field[Any, Any, Any, dict[str, Any]]` and `Field[Any, Any, Any, dict[str, list[int]]]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2356,
|
|
"column": 73,
|
|
"stop_line": 2356,
|
|
"stop_column": 80,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`address` is uninitialized",
|
|
"concise_description": "`address` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2370,
|
|
"column": 17,
|
|
"stop_line": 2370,
|
|
"stop_column": 28,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[StoragePath]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[StoragePath]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2418,
|
|
"column": 17,
|
|
"stop_line": 2418,
|
|
"stop_column": 27,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[UiSettings]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[UiSettings]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2434,
|
|
"column": 9,
|
|
"stop_line": 2434,
|
|
"stop_column": 15,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `UiSettingsViewSerializer.create` overrides parent class `ModelSerializer` in an inconsistent manner\n `UiSettingsViewSerializer.create` has type `(self: UiSettingsViewSerializer, validated_data: Unknown) -> tuple[UiSettings, bool]`, which is not assignable to `(self: UiSettingsViewSerializer, validated_data: Any) -> UiSettings`, the type of `ModelSerializer.create`\n Signature mismatch:\n expected: def create(self: UiSettingsViewSerializer, validated_data: Any) -> UiSettings: ...\n ^^^ ^^^^^^^^^^ return type\n |\n parameters\n found: def create(self: UiSettingsViewSerializer, validated_data: Unknown) -> tuple[UiSettings, bool]: ...\n ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ return type\n |\n parameters",
|
|
"concise_description": "Class member `UiSettingsViewSerializer.create` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2463,
|
|
"column": 17,
|
|
"stop_line": 2463,
|
|
"stop_column": 30,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[PaperlessTask]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[PaperlessTask]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2516,
|
|
"column": 17,
|
|
"stop_line": 2516,
|
|
"stop_column": 30,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[PaperlessTask]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[PaperlessTask]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2554,
|
|
"column": 46,
|
|
"stop_line": 2554,
|
|
"stop_column": 76,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `dict.get` called with arguments: (str, str)\n Possible overloads:\n (key: PaperlessTask.TaskType, default: None = None, /) -> str | None\n (key: PaperlessTask.TaskType, default: str, /) -> str [closest match]\n (key: PaperlessTask.TaskType, default: _T, /) -> str | _T",
|
|
"concise_description": "No matching overload found for function `dict.get` called with arguments: (str, str)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2570,
|
|
"column": 38,
|
|
"stop_line": 2570,
|
|
"stop_column": 70,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `dict.get` called with arguments: (str, str)\n Possible overloads:\n (key: PaperlessTask.Status, default: None = None, /) -> str | None\n (key: PaperlessTask.Status, default: str, /) -> str [closest match]\n (key: PaperlessTask.Status, default: _T, /) -> str | _T",
|
|
"concise_description": "No matching overload found for function `dict.get` called with arguments: (str, str)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2581,
|
|
"column": 51,
|
|
"stop_line": 2581,
|
|
"stop_column": 86,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `dict.get` called with arguments: (str, Literal['manual_task'])\n Possible overloads:\n (key: PaperlessTask.TriggerSource, default: None = None, /) -> str | None\n (key: PaperlessTask.TriggerSource, default: str, /) -> str [closest match]\n (key: PaperlessTask.TriggerSource, default: _T, /) -> str | _T",
|
|
"concise_description": "No matching overload found for function `dict.get` called with arguments: (str, Literal['manual_task'])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2659,
|
|
"column": 17,
|
|
"stop_line": 2659,
|
|
"stop_column": 26,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[ShareLink]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[ShareLink]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2704,
|
|
"column": 17,
|
|
"stop_line": 2704,
|
|
"stop_column": 32,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[ShareLinkBundle]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[ShareLinkBundle]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2917,
|
|
"column": 17,
|
|
"stop_line": 2917,
|
|
"stop_column": 32,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[WorkflowTrigger]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[WorkflowTrigger]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3013,
|
|
"column": 17,
|
|
"stop_line": 3013,
|
|
"stop_column": 36,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[WorkflowActionEmail]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[WorkflowActionEmail]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3033,
|
|
"column": 17,
|
|
"stop_line": 3033,
|
|
"stop_column": 38,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[WorkflowActionWebhook]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[WorkflowActionWebhook]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3056,
|
|
"column": 17,
|
|
"stop_line": 3056,
|
|
"stop_column": 31,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[WorkflowAction]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[WorkflowAction]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3175,
|
|
"column": 17,
|
|
"stop_line": 3175,
|
|
"stop_column": 25,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[Workflow]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[Workflow]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3375,
|
|
"column": 52,
|
|
"stop_line": 3375,
|
|
"stop_column": 60,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`triggers` may be uninitialized",
|
|
"concise_description": "`triggers` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3375,
|
|
"column": 62,
|
|
"stop_line": 3375,
|
|
"stop_column": 69,
|
|
"path": "src/documents/serialisers.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`actions` may be uninitialized",
|
|
"concise_description": "`actions` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 124,
|
|
"column": 72,
|
|
"stop_line": 124,
|
|
"stop_column": 82,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_correspondents`",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_correspondents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 185,
|
|
"column": 72,
|
|
"stop_line": 185,
|
|
"stop_column": 82,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_document_types`",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_document_types`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 267,
|
|
"column": 50,
|
|
"stop_line": 267,
|
|
"stop_column": 60,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_tags`",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 311,
|
|
"column": 70,
|
|
"stop_line": 311,
|
|
"stop_column": 80,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_storage_paths`",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_storage_paths`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 544,
|
|
"column": 46,
|
|
"stop_line": 544,
|
|
"stop_column": 66,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 545,
|
|
"column": 49,
|
|
"stop_line": 545,
|
|
"stop_column": 69,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 550,
|
|
"column": 28,
|
|
"stop_line": 550,
|
|
"stop_column": 52,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `is_file`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `is_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 576,
|
|
"column": 43,
|
|
"stop_line": 576,
|
|
"stop_column": 60,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-typed-dict-key",
|
|
"description": "`str` is not assignable to TypedDict key `filename` with type `datetime`",
|
|
"concise_description": "`str` is not assignable to TypedDict key `filename` with type `datetime`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 578,
|
|
"column": 51,
|
|
"stop_line": 578,
|
|
"stop_column": 76,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-typed-dict-key",
|
|
"description": "`Any | None` is not assignable to TypedDict key `archive_filename` with type `datetime`",
|
|
"concise_description": "`Any | None` is not assignable to TypedDict key `archive_filename` with type `datetime`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 597,
|
|
"column": 21,
|
|
"stop_line": 597,
|
|
"stop_column": 37,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `old_path` with type `Path` in function `validate_move`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `old_path` with type `Path` in function `validate_move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 598,
|
|
"column": 21,
|
|
"stop_line": 598,
|
|
"stop_column": 42,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `new_path` with type `Path` in function `validate_move`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `new_path` with type `Path` in function `validate_move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 601,
|
|
"column": 46,
|
|
"stop_line": 601,
|
|
"stop_column": 67,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `source_path` with type `Path` in function `documents.file_handling.create_source_path_directory`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `source_path` with type `Path` in function `documents.file_handling.create_source_path_directory`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 602,
|
|
"column": 28,
|
|
"stop_line": 602,
|
|
"stop_column": 69,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-specialization",
|
|
"description": "`Path | None` is not assignable to upper bound `PathLike[str] | str` of type variable `_StrPathT`",
|
|
"concise_description": "`Path | None` is not assignable to upper bound `PathLike[str] | str` of type variable `_StrPathT`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 602,
|
|
"column": 29,
|
|
"stop_line": 602,
|
|
"stop_column": 45,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `src` with type `PathLike[str] | str` in function `shutil.move`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `src` with type `PathLike[str] | str` in function `shutil.move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 622,
|
|
"column": 20,
|
|
"stop_line": 622,
|
|
"stop_column": 33,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`move_original` is uninitialized",
|
|
"concise_description": "`move_original` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 624,
|
|
"column": 55,
|
|
"stop_line": 624,
|
|
"stop_column": 70,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`old_source_path` is uninitialized",
|
|
"concise_description": "`old_source_path` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 626,
|
|
"column": 20,
|
|
"stop_line": 626,
|
|
"stop_column": 32,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`move_archive` is uninitialized",
|
|
"concise_description": "`move_archive` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 626,
|
|
"column": 37,
|
|
"stop_line": 626,
|
|
"stop_column": 66,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `is_file`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `is_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 628,
|
|
"column": 32,
|
|
"stop_line": 628,
|
|
"stop_column": 73,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-specialization",
|
|
"description": "`Path | None` is not assignable to upper bound `PathLike[str] | str` of type variable `_StrPathT`",
|
|
"concise_description": "`Path | None` is not assignable to upper bound `PathLike[str] | str` of type variable `_StrPathT`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 628,
|
|
"column": 33,
|
|
"stop_line": 628,
|
|
"stop_column": 54,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `src` with type `PathLike[str] | str` in function `shutil.move`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `src` with type `PathLike[str] | str` in function `shutil.move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 628,
|
|
"column": 56,
|
|
"stop_line": 628,
|
|
"stop_column": 72,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`old_archive_path` is uninitialized",
|
|
"concise_description": "`old_archive_path` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 642,
|
|
"column": 33,
|
|
"stop_line": 642,
|
|
"stop_column": 45,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`old_filename` is uninitialized",
|
|
"concise_description": "`old_filename` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 643,
|
|
"column": 41,
|
|
"stop_line": 643,
|
|
"stop_column": 61,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`old_archive_filename` is uninitialized",
|
|
"concise_description": "`old_archive_filename` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 653,
|
|
"column": 49,
|
|
"stop_line": 653,
|
|
"stop_column": 73,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `is_file`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `is_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 655,
|
|
"column": 22,
|
|
"stop_line": 655,
|
|
"stop_column": 38,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 682,
|
|
"column": 23,
|
|
"stop_line": 682,
|
|
"stop_column": 50,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 686,
|
|
"column": 5,
|
|
"stop_line": 686,
|
|
"stop_column": 24,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `CustomField` has no attribute `fields`",
|
|
"concise_description": "Object of class `CustomField` has no attribute `fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 690,
|
|
"column": 24,
|
|
"stop_line": 690,
|
|
"stop_column": 43,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `CustomField` has no attribute `fields`",
|
|
"concise_description": "Object of class `CustomField` has no attribute `fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 707,
|
|
"column": 13,
|
|
"stop_line": 707,
|
|
"stop_column": 28,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `CustomField` has no attribute `fields`",
|
|
"concise_description": "Object of class `CustomField` has no attribute `fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 721,
|
|
"column": 12,
|
|
"stop_line": 721,
|
|
"stop_column": 51,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "`in` is not supported between `str` and `None`",
|
|
"concise_description": "`in` is not supported between `str` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 725,
|
|
"column": 13,
|
|
"stop_line": 725,
|
|
"stop_column": 39,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `remove`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `remove`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 764,
|
|
"column": 27,
|
|
"stop_line": 764,
|
|
"stop_column": 51,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 784,
|
|
"column": 17,
|
|
"stop_line": 784,
|
|
"stop_column": 52,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "Cannot set item in `None`\n Object of class `NoneType` has no attribute `__setitem__`",
|
|
"concise_description": "Cannot set item in `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 884,
|
|
"column": 13,
|
|
"stop_line": 884,
|
|
"stop_column": 33,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `source_path`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `source_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 884,
|
|
"column": 60,
|
|
"stop_line": 884,
|
|
"stop_column": 82,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `original_file`",
|
|
"concise_description": "Object of class `Document` has no attribute `original_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 931,
|
|
"column": 29,
|
|
"stop_line": 931,
|
|
"stop_column": 37,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `Document` in function `documents.workflows.mutations.apply_assignment_to_document`",
|
|
"concise_description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `Document` in function `documents.workflows.mutations.apply_assignment_to_document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 938,
|
|
"column": 59,
|
|
"stop_line": 938,
|
|
"stop_column": 67,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `Document` in function `documents.workflows.mutations.apply_removal_to_document`",
|
|
"concise_description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `Document` in function `documents.workflows.mutations.apply_removal_to_document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 965,
|
|
"column": 17,
|
|
"stop_line": 965,
|
|
"stop_column": 31,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `title`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 965,
|
|
"column": 34,
|
|
"stop_line": 965,
|
|
"stop_column": 48,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `title`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 975,
|
|
"column": 17,
|
|
"stop_line": 975,
|
|
"stop_column": 30,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `save`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `save`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1190,
|
|
"column": 49,
|
|
"stop_line": 1190,
|
|
"stop_column": 86,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `dict.get` called with arguments: (Unknown | None, Literal[PaperlessTask.Status.FAILURE])\n Possible overloads:\n (key: str, default: None = None, /) -> PaperlessTask.Status | None\n (key: str, default: PaperlessTask.Status, /) -> PaperlessTask.Status [closest match]\n (key: str, default: _T, /) -> PaperlessTask.Status | _T",
|
|
"concise_description": "No matching overload found for function `dict.get` called with arguments: (Unknown | None, Literal[PaperlessTask.Status.FAILURE])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1329,
|
|
"column": 13,
|
|
"stop_line": 1329,
|
|
"stop_column": 28,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BaseDatabaseWrapper` has no attribute `close_pool`",
|
|
"concise_description": "Object of class `BaseDatabaseWrapper` has no attribute `close_pool`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 174,
|
|
"column": 21,
|
|
"stop_line": 174,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tasks.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `task_id` with type `str` in function `documents.plugins.base.ConsumeTaskPlugin.__init__`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `task_id` with type `str` in function `documents.plugins.base.ConsumeTaskPlugin.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 218,
|
|
"column": 16,
|
|
"stop_line": 218,
|
|
"stop_column": 19,
|
|
"path": "src/documents/tasks.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `str | None` is not assignable to declared return type `ConsumeFileDuplicateResult | ConsumeFileStoppedResult | ConsumeFileSuccessResult | None`",
|
|
"concise_description": "Returned type `str | None` is not assignable to declared return type `ConsumeFileDuplicateResult | ConsumeFileStoppedResult | ConsumeFileSuccessResult | None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 321,
|
|
"column": 49,
|
|
"stop_line": 321,
|
|
"stop_column": 74,
|
|
"path": "src/documents/tasks.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `Path` in function `documents.utils.compute_checksum`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `Path` in function `documents.utils.compute_checksum`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 337,
|
|
"column": 25,
|
|
"stop_line": 337,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `log_create`",
|
|
"concise_description": "Object of class `Manager` has no attribute `log_create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 361,
|
|
"column": 25,
|
|
"stop_line": 361,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `log_create`",
|
|
"concise_description": "Object of class `Manager` has no attribute `log_create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 374,
|
|
"column": 54,
|
|
"stop_line": 374,
|
|
"stop_column": 75,
|
|
"path": "src/documents/tasks.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `source_path` with type `Path` in function `documents.file_handling.create_source_path_directory`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `source_path` with type `Path` in function `documents.file_handling.create_source_path_directory`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 375,
|
|
"column": 36,
|
|
"stop_line": 375,
|
|
"stop_column": 86,
|
|
"path": "src/documents/tasks.py",
|
|
"code": -2,
|
|
"name": "bad-specialization",
|
|
"description": "`Path | None` is not assignable to upper bound `PathLike[str] | str` of type variable `_StrPathT`",
|
|
"concise_description": "`Path | None` is not assignable to upper bound `PathLike[str] | str` of type variable `_StrPathT`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 375,
|
|
"column": 37,
|
|
"stop_line": 375,
|
|
"stop_column": 62,
|
|
"path": "src/documents/tasks.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `src` with type `PathLike[str] | str` in function `shutil.move`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `src` with type `PathLike[str] | str` in function `shutil.move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 552,
|
|
"column": 33,
|
|
"stop_line": 552,
|
|
"stop_column": 61,
|
|
"path": "src/documents/tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `run_at`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `run_at`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 309,
|
|
"column": 17,
|
|
"stop_line": 309,
|
|
"stop_column": 66,
|
|
"path": "src/documents/templating/filepath.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 331,
|
|
"column": 12,
|
|
"stop_line": 331,
|
|
"stop_column": 22,
|
|
"path": "src/documents/templating/filepath.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `dict[str, dict[str, dict[str, str | Any | None]]]` is not assignable to declared return type `dict[str, dict[str, dict[str, str]]]`",
|
|
"concise_description": "Returned type `dict[str, dict[str, dict[str, str | Any | None]]]` is not assignable to declared return type `dict[str, dict[str, dict[str, str]]]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 30,
|
|
"column": 17,
|
|
"stop_line": 30,
|
|
"stop_column": 38,
|
|
"path": "src/documents/templating/filters.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`datetime | None` is not assignable to variable `value` with type `date | datetime | str`",
|
|
"concise_description": "`datetime | None` is not assignable to variable `value` with type `date | datetime | str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 47,
|
|
"column": 17,
|
|
"stop_line": 47,
|
|
"stop_column": 34,
|
|
"path": "src/documents/templating/filters.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`date | None` is not assignable to variable `value` with type `datetime | str`",
|
|
"concise_description": "`date | None` is not assignable to variable `value` with type `datetime | str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 48,
|
|
"column": 12,
|
|
"stop_line": 48,
|
|
"stop_column": 26,
|
|
"path": "src/documents/templating/filters.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `str` has no attribute `strftime`",
|
|
"concise_description": "Object of class `str` has no attribute `strftime`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 109,
|
|
"column": 12,
|
|
"stop_line": 109,
|
|
"stop_column": 16,
|
|
"path": "src/documents/templating/workflows.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `None` is not assignable to declared return type `str`",
|
|
"concise_description": "Returned type `None` is not assignable to declared return type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 86,
|
|
"column": 12,
|
|
"stop_line": 95,
|
|
"stop_column": 6,
|
|
"path": "src/documents/tests/conftest.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `DocumentFactory` is not assignable to declared return type `Document`",
|
|
"concise_description": "Returned type `DocumentFactory` is not assignable to declared return type `Document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 134,
|
|
"column": 12,
|
|
"stop_line": 134,
|
|
"stop_column": 49,
|
|
"path": "src/documents/tests/conftest.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `create_user`",
|
|
"concise_description": "Object of class `Manager` has no attribute `create_user`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 98,
|
|
"column": 22,
|
|
"stop_line": 98,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 99,
|
|
"column": 22,
|
|
"stop_line": 99,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 110,
|
|
"column": 22,
|
|
"stop_line": 110,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 111,
|
|
"column": 22,
|
|
"stop_line": 111,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 237,
|
|
"column": 26,
|
|
"stop_line": 237,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 238,
|
|
"column": 26,
|
|
"stop_line": 238,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 250,
|
|
"column": 26,
|
|
"stop_line": 250,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 251,
|
|
"column": 26,
|
|
"stop_line": 251,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 271,
|
|
"column": 26,
|
|
"stop_line": 271,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 272,
|
|
"column": 26,
|
|
"stop_line": 272,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 292,
|
|
"column": 26,
|
|
"stop_line": 292,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 293,
|
|
"column": 26,
|
|
"stop_line": 293,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 305,
|
|
"column": 26,
|
|
"stop_line": 305,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 306,
|
|
"column": 26,
|
|
"stop_line": 306,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 196,
|
|
"column": 14,
|
|
"stop_line": 196,
|
|
"stop_column": 29,
|
|
"path": "src/documents/tests/management/test_management_sanity_checker.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `source_path`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `source_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 197,
|
|
"column": 14,
|
|
"stop_line": 197,
|
|
"stop_column": 32,
|
|
"path": "src/documents/tests/management/test_management_sanity_checker.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `thumbnail_path`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `thumbnail_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 518,
|
|
"column": 16,
|
|
"stop_line": 518,
|
|
"stop_column": 66,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SearchResult` has no attribute `count`",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 529,
|
|
"column": 16,
|
|
"stop_line": 529,
|
|
"stop_column": 66,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SearchResult` has no attribute `count`",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 540,
|
|
"column": 16,
|
|
"stop_line": 540,
|
|
"stop_column": 66,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SearchResult` has no attribute `count`",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 551,
|
|
"column": 16,
|
|
"stop_line": 551,
|
|
"stop_column": 66,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SearchResult` has no attribute `count`",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 563,
|
|
"column": 16,
|
|
"stop_line": 563,
|
|
"stop_column": 66,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SearchResult` has no attribute `count`",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 71,
|
|
"column": 16,
|
|
"stop_line": 71,
|
|
"stop_column": 65,
|
|
"path": "src/documents/tests/search/test_tokenizer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SearchResult` has no attribute `count`",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 82,
|
|
"column": 16,
|
|
"stop_line": 82,
|
|
"stop_column": 64,
|
|
"path": "src/documents/tests/search/test_tokenizer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SearchResult` has no attribute `count`",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 100,
|
|
"column": 16,
|
|
"stop_line": 100,
|
|
"stop_column": 71,
|
|
"path": "src/documents/tests/search/test_tokenizer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SearchResult` has no attribute `count`",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 25,
|
|
"column": 20,
|
|
"stop_line": 25,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `searcher`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 28,
|
|
"column": 17,
|
|
"stop_line": 28,
|
|
"stop_column": 32,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.range_query`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `schema` with type `Schema` in function `tantivy.tantivy.Query.range_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 55,
|
|
"column": 26,
|
|
"stop_line": 55,
|
|
"stop_column": 65,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 126,
|
|
"column": 26,
|
|
"stop_line": 126,
|
|
"stop_column": 38,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ModelForm` has no attribute `request`",
|
|
"concise_description": "Object of class `ModelForm` has no attribute `request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 138,
|
|
"column": 9,
|
|
"stop_line": 138,
|
|
"stop_column": 21,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ModelForm` has no attribute `request`",
|
|
"concise_description": "Object of class `ModelForm` has no attribute `request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 146,
|
|
"column": 9,
|
|
"stop_line": 146,
|
|
"stop_column": 21,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ModelForm` has no attribute `request`",
|
|
"concise_description": "Object of class `ModelForm` has no attribute `request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 195,
|
|
"column": 30,
|
|
"stop_line": 195,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `path`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 208,
|
|
"column": 31,
|
|
"stop_line": 208,
|
|
"stop_column": 44,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `path`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 241,
|
|
"column": 25,
|
|
"stop_line": 241,
|
|
"stop_column": 45,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `path`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 277,
|
|
"column": 25,
|
|
"stop_line": 277,
|
|
"stop_column": 45,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `path`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 278,
|
|
"column": 27,
|
|
"stop_line": 278,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ImageFile` has no attribute `text`",
|
|
"concise_description": "Object of class `ImageFile` has no attribute `text`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 57,
|
|
"column": 20,
|
|
"stop_line": 57,
|
|
"stop_column": 83,
|
|
"path": "src/documents/tests/test_api_bulk_download.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `shutil.copy` called with arguments: (Path, Path | None)\n Possible overloads:\n (src: StrPath, dst: _StrPathT, *, follow_symlinks: bool = True) -> str | _StrPathT [closest match]\n (src: BytesPath, dst: _BytesPathT, *, follow_symlinks: bool = True) -> bytes | _BytesPathT",
|
|
"concise_description": "No matching overload found for function `shutil.copy` called with arguments: (Path, Path | None)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 279,
|
|
"column": 17,
|
|
"stop_line": 279,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 531,
|
|
"column": 30,
|
|
"stop_line": 531,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 572,
|
|
"column": 17,
|
|
"stop_line": 572,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 591,
|
|
"column": 17,
|
|
"stop_line": 591,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 641,
|
|
"column": 30,
|
|
"stop_line": 641,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 658,
|
|
"column": 30,
|
|
"stop_line": 658,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 659,
|
|
"column": 17,
|
|
"stop_line": 659,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 702,
|
|
"column": 30,
|
|
"stop_line": 702,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 742,
|
|
"column": 38,
|
|
"stop_line": 742,
|
|
"stop_column": 55,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 794,
|
|
"column": 30,
|
|
"stop_line": 794,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 865,
|
|
"column": 30,
|
|
"stop_line": 865,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 900,
|
|
"column": 30,
|
|
"stop_line": 900,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 941,
|
|
"column": 30,
|
|
"stop_line": 941,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 978,
|
|
"column": 30,
|
|
"stop_line": 978,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1073,
|
|
"column": 17,
|
|
"stop_line": 1073,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1076,
|
|
"column": 17,
|
|
"stop_line": 1076,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1079,
|
|
"column": 17,
|
|
"stop_line": 1079,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1098,
|
|
"column": 17,
|
|
"stop_line": 1098,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1117,
|
|
"column": 17,
|
|
"stop_line": 1117,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1120,
|
|
"column": 18,
|
|
"stop_line": 1120,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1123,
|
|
"column": 18,
|
|
"stop_line": 1123,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1137,
|
|
"column": 18,
|
|
"stop_line": 1137,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1140,
|
|
"column": 18,
|
|
"stop_line": 1140,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1143,
|
|
"column": 18,
|
|
"stop_line": 1143,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1170,
|
|
"column": 18,
|
|
"stop_line": 1170,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1266,
|
|
"column": 13,
|
|
"stop_line": 1266,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_api_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 306,
|
|
"column": 44,
|
|
"stop_line": 306,
|
|
"stop_column": 67,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 321,
|
|
"column": 31,
|
|
"stop_line": 321,
|
|
"stop_column": 54,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `thumbnail_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `thumbnail_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 351,
|
|
"column": 44,
|
|
"stop_line": 351,
|
|
"stop_column": 67,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 373,
|
|
"column": 20,
|
|
"stop_line": 373,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `thumbnail_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `thumbnail_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 19,
|
|
"stop_line": 411,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 453,
|
|
"column": 19,
|
|
"stop_line": 453,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1468,
|
|
"column": 13,
|
|
"stop_line": 1468,
|
|
"stop_column": 20,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `bytes` is not assignable to parameter `data` with type `str` in function `rest_framework.test.APIClient.generic`",
|
|
"concise_description": "Argument `bytes` is not assignable to parameter `data` with type `str` in function `rest_framework.test.APIClient.generic`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1732,
|
|
"column": 31,
|
|
"stop_line": 1732,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `list[int] | None` is not assignable to parameter `first` with type `Iterable[Any]` in function `unittest.case.TestCase.assertCountEqual`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `list[int] | None` is not assignable to parameter `first` with type `Iterable[Any]` in function `unittest.case.TestCase.assertCountEqual`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1879,
|
|
"column": 9,
|
|
"stop_line": 1879,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "Type `None` is not iterable",
|
|
"concise_description": "Type `None` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2063,
|
|
"column": 20,
|
|
"stop_line": 2063,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `shutil.copy` called with arguments: (Path, Path | None)\n Possible overloads:\n (src: StrPath, dst: _StrPathT, *, follow_symlinks: bool = True) -> str | _StrPathT [closest match]\n (src: BytesPath, dst: _BytesPathT, *, follow_symlinks: bool = True) -> bytes | _BytesPathT",
|
|
"concise_description": "No matching overload found for function `shutil.copy` called with arguments: (Path, Path | None)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2556,
|
|
"column": 31,
|
|
"stop_line": 2556,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `User` has no attribute `ui_settings`",
|
|
"concise_description": "Object of class `User` has no attribute `ui_settings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2576,
|
|
"column": 31,
|
|
"stop_line": 2576,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `User` has no attribute `ui_settings`",
|
|
"concise_description": "Object of class `User` has no attribute `ui_settings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2594,
|
|
"column": 26,
|
|
"stop_line": 2594,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"concise_description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2606,
|
|
"column": 26,
|
|
"stop_line": 2606,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"concise_description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2614,
|
|
"column": 26,
|
|
"stop_line": 2614,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"concise_description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2615,
|
|
"column": 26,
|
|
"stop_line": 2615,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"concise_description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2623,
|
|
"column": 26,
|
|
"stop_line": 2623,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"concise_description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2975,
|
|
"column": 27,
|
|
"stop_line": 2975,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `id`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2976,
|
|
"column": 33,
|
|
"stop_line": 2976,
|
|
"stop_column": 51,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `username`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `username`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2977,
|
|
"column": 35,
|
|
"stop_line": 2977,
|
|
"stop_column": 55,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `first_name`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `first_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2978,
|
|
"column": 34,
|
|
"stop_line": 2978,
|
|
"stop_column": 53,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `last_name`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `last_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3676,
|
|
"column": 20,
|
|
"stop_line": 3676,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `shutil.copy` called with arguments: (Path, Path | None)\n Possible overloads:\n (src: StrPath, dst: _StrPathT, *, follow_symlinks: bool = True) -> str | _StrPathT [closest match]\n (src: BytesPath, dst: _BytesPathT, *, follow_symlinks: bool = True) -> bytes | _BytesPathT",
|
|
"concise_description": "No matching overload found for function `shutil.copy` called with arguments: (Path, Path | None)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4016,
|
|
"column": 23,
|
|
"stop_line": 4016,
|
|
"stop_column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"code": -2,
|
|
"name": "bad-unpacking",
|
|
"description": "Expected argument after ** to have `str` keys, got: dict[str, list[dict[str, str]]] | list[bool] | list[date] | list[float] | list[int] | list[str] | str in function `django.db.models.manager.Manager.create`",
|
|
"concise_description": "Expected argument after ** to have `str` keys, got: dict[str, list[dict[str, str]]] | list[bool] | list[date] | list[float] | list[int] | list[str] | str in function `django.db.models.manager.Manager.create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 44,
|
|
"column": 20,
|
|
"stop_line": 47,
|
|
"stop_column": 10,
|
|
"path": "src/documents/tests/test_api_email.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `shutil.copy` called with arguments: (Path, Path | None)\n Possible overloads:\n (src: StrPath, dst: _StrPathT, *, follow_symlinks: bool = True) -> str | _StrPathT [closest match]\n (src: BytesPath, dst: _BytesPathT, *, follow_symlinks: bool = True) -> bytes | _BytesPathT",
|
|
"concise_description": "No matching overload found for function `shutil.copy` called with arguments: (Path, Path | None)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 103,
|
|
"column": 24,
|
|
"stop_line": 103,
|
|
"stop_column": 51,
|
|
"path": "src/documents/tests/test_api_email.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `stat`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `stat`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 27,
|
|
"column": 16,
|
|
"stop_line": 27,
|
|
"stop_column": 44,
|
|
"path": "src/documents/tests/test_api_filter_by_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 30,
|
|
"column": 16,
|
|
"stop_line": 30,
|
|
"stop_column": 44,
|
|
"path": "src/documents/tests/test_api_filter_by_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 528,
|
|
"column": 16,
|
|
"stop_line": 528,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/test_api_filter_by_custom_fields.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"concise_description": "Object of class `SavedView` has no attribute `filter_rules`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 222,
|
|
"column": 26,
|
|
"stop_line": 222,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `owner`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `owner`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 252,
|
|
"column": 26,
|
|
"stop_line": 252,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `owner`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `owner`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 299,
|
|
"column": 55,
|
|
"stop_line": 299,
|
|
"stop_column": 59,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Tag | None` is not assignable to parameter `obj` with type `Model` in function `guardian.core.ObjectPermissionChecker.has_perm`",
|
|
"concise_description": "Argument `Tag | None` is not assignable to parameter `obj` with type `Model` in function `guardian.core.ObjectPermissionChecker.has_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 300,
|
|
"column": 53,
|
|
"stop_line": 300,
|
|
"stop_column": 57,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Tag | None` is not assignable to parameter `obj` with type `Model` in function `guardian.shortcuts.get_perms`",
|
|
"concise_description": "Argument `Tag | None` is not assignable to parameter `obj` with type `Model` in function `guardian.shortcuts.get_perms`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 344,
|
|
"column": 26,
|
|
"stop_line": 344,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `owner`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `owner`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 345,
|
|
"column": 53,
|
|
"stop_line": 345,
|
|
"stop_column": 57,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Tag | None` is not assignable to parameter `obj` with type `Model` in function `guardian.shortcuts.get_perms`",
|
|
"concise_description": "Argument `Tag | None` is not assignable to parameter `obj` with type `Model` in function `guardian.shortcuts.get_perms`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 46,
|
|
"column": 21,
|
|
"stop_line": 46,
|
|
"stop_column": 29,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `name`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 49,
|
|
"column": 19,
|
|
"stop_line": 49,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `provider_id`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `provider_id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 71,
|
|
"column": 9,
|
|
"stop_line": 71,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `User` has no attribute `socialaccount_set`",
|
|
"concise_description": "Object of class `User` has no attribute `socialaccount_set`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 279,
|
|
"column": 41,
|
|
"stop_line": 279,
|
|
"stop_column": 51,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `key`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `key`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 382,
|
|
"column": 29,
|
|
"stop_line": 382,
|
|
"stop_column": 56,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `User` has no attribute `socialaccount_set`",
|
|
"concise_description": "Object of class `User` has no attribute `socialaccount_set`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 393,
|
|
"column": 17,
|
|
"stop_line": 393,
|
|
"stop_column": 44,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `User` has no attribute `socialaccount_set`",
|
|
"concise_description": "Object of class `User` has no attribute `socialaccount_set`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 83,
|
|
"column": 14,
|
|
"stop_line": 83,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 90,
|
|
"column": 14,
|
|
"stop_line": 90,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 96,
|
|
"column": 21,
|
|
"stop_line": 96,
|
|
"stop_column": 45,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 107,
|
|
"column": 14,
|
|
"stop_line": 107,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 119,
|
|
"column": 14,
|
|
"stop_line": 119,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 126,
|
|
"column": 14,
|
|
"stop_line": 126,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 132,
|
|
"column": 34,
|
|
"stop_line": 132,
|
|
"stop_column": 58,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 144,
|
|
"column": 17,
|
|
"stop_line": 144,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 155,
|
|
"column": 17,
|
|
"stop_line": 155,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 160,
|
|
"column": 26,
|
|
"stop_line": 160,
|
|
"stop_column": 50,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 190,
|
|
"column": 14,
|
|
"stop_line": 190,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 200,
|
|
"column": 14,
|
|
"stop_line": 200,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 217,
|
|
"column": 14,
|
|
"stop_line": 217,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 222,
|
|
"column": 20,
|
|
"stop_line": 222,
|
|
"stop_column": 44,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 251,
|
|
"column": 14,
|
|
"stop_line": 251,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 257,
|
|
"column": 14,
|
|
"stop_line": 257,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 262,
|
|
"column": 21,
|
|
"stop_line": 262,
|
|
"stop_column": 45,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `SchemaGenerator`\n Object of class `SchemaGenerator` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1647,
|
|
"column": 25,
|
|
"stop_line": 1647,
|
|
"stop_column": 58,
|
|
"path": "src/documents/tests/test_api_search.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`<` is not supported between `int` and `None`\n Argument `None` is not assignable to parameter `value` with type `int` in function `int.__lt__`",
|
|
"concise_description": "`<` is not supported between `int` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1647,
|
|
"column": 25,
|
|
"stop_line": 1647,
|
|
"stop_column": 58,
|
|
"path": "src/documents/tests/test_api_search.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`<` is not supported between `None` and `int`\n Argument `None` is not assignable to parameter `value` with type `int` in function `int.__gt__`",
|
|
"concise_description": "`<` is not supported between `None` and `int`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1647,
|
|
"column": 25,
|
|
"stop_line": 1647,
|
|
"stop_column": 58,
|
|
"path": "src/documents/tests/test_api_search.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`<` is not supported between `None` and `None`\n Cannot find `__lt__` or `__gt__`",
|
|
"concise_description": "`<` is not supported between `None` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1647,
|
|
"column": 28,
|
|
"stop_line": 1647,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_api_search.py",
|
|
"code": -2,
|
|
"name": "bad-specialization",
|
|
"description": "`int | None` is not assignable to upper bound `SupportsDunderGT[Any] | SupportsDunderLT[Any]` of type variable `SupportsRichComparisonT`",
|
|
"concise_description": "`int | None` is not assignable to upper bound `SupportsDunderGT[Any] | SupportsDunderLT[Any]` of type variable `SupportsRichComparisonT`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1647,
|
|
"column": 46,
|
|
"stop_line": 1647,
|
|
"stop_column": 58,
|
|
"path": "src/documents/tests/test_api_search.py",
|
|
"code": -2,
|
|
"name": "bad-specialization",
|
|
"description": "`int | None` is not assignable to upper bound `SupportsDunderGT[Any] | SupportsDunderLT[Any]` of type variable `SupportsRichComparisonT`",
|
|
"concise_description": "`int | None` is not assignable to upper bound `SupportsDunderGT[Any] | SupportsDunderLT[Any]` of type variable `SupportsRichComparisonT`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 106,
|
|
"column": 47,
|
|
"stop_line": 106,
|
|
"stop_column": 72,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `dict[str, Faker]` is not assignable to parameter `data` with type `Iterable[tuple[str, Iterable[bytes | float | str] | bytes | float | str]] | Mapping[str, Iterable[bytes | float | str] | bytes | float | str] | None` in function `rest_framework.test.APIClient.get`",
|
|
"concise_description": "Argument `dict[str, Faker]` is not assignable to parameter `data` with type `Iterable[tuple[str, Iterable[bytes | float | str] | bytes | float | str]] | Mapping[str, Iterable[bytes | float | str] | bytes | float | str] | None` in function `rest_framework.test.APIClient.get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 491,
|
|
"column": 24,
|
|
"stop_line": 491,
|
|
"stop_column": 32,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 491,
|
|
"column": 34,
|
|
"stop_line": 491,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 506,
|
|
"column": 24,
|
|
"stop_line": 506,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 521,
|
|
"column": 24,
|
|
"stop_line": 521,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 541,
|
|
"column": 24,
|
|
"stop_line": 541,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 584,
|
|
"column": 41,
|
|
"stop_line": 584,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 825,
|
|
"column": 42,
|
|
"stop_line": 825,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 833,
|
|
"column": 34,
|
|
"stop_line": 833,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 845,
|
|
"column": 42,
|
|
"stop_line": 845,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 864,
|
|
"column": 42,
|
|
"stop_line": 864,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 880,
|
|
"column": 52,
|
|
"stop_line": 880,
|
|
"stop_column": 55,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"concise_description": "Argument `DocumentFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 884,
|
|
"column": 42,
|
|
"stop_line": 884,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 892,
|
|
"column": 34,
|
|
"stop_line": 892,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_api_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 83,
|
|
"column": 23,
|
|
"stop_line": 83,
|
|
"stop_column": 49,
|
|
"path": "src/documents/tests/test_api_uisettings.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `User` has no attribute `ui_settings`",
|
|
"concise_description": "Object of class `User` has no attribute `ui_settings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 99,
|
|
"column": 13,
|
|
"stop_line": 99,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_api_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `pk`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 34,
|
|
"column": 13,
|
|
"stop_line": 34,
|
|
"stop_column": 54,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DummyProgressManager` is not assignable to parameter `status_mgr` with type `ProgressManager` in function `documents.barcodes.BarcodePlugin.__init__`",
|
|
"concise_description": "Argument `DummyProgressManager` is not assignable to parameter `status_mgr` with type `ProgressManager` in function `documents.barcodes.BarcodePlugin.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 35,
|
|
"column": 13,
|
|
"stop_line": 35,
|
|
"stop_column": 22,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `GetReaderPluginMixin` has no attribute `dirs`",
|
|
"concise_description": "Object of class `GetReaderPluginMixin` has no attribute `dirs`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 622,
|
|
"column": 21,
|
|
"stop_line": 622,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 658,
|
|
"column": 5,
|
|
"stop_line": 658,
|
|
"stop_column": 20,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `contextlib.contextmanager` called with arguments: ((self: Self@TestAsnBarcode, filepath: Path) -> BarcodePlugin)\n Possible overloads:\n (func: (ParamSpec(_P)) -> Generator[_T_co, None, object]) -> (ParamSpec(_P)) -> _GeneratorContextManager[_T_co] [closest match]\n (func: (ParamSpec(_P)) -> Iterator[_T_co]) -> (ParamSpec(_P)) -> _GeneratorContextManager[_T_co]",
|
|
"concise_description": "No matching overload found for function `contextlib.contextmanager` called with arguments: ((self: Self@TestAsnBarcode, filepath: Path) -> BarcodePlugin)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 659,
|
|
"column": 45,
|
|
"stop_line": 659,
|
|
"stop_column": 58,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Generator function should return `Generator`",
|
|
"concise_description": "Generator function should return `Generator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 663,
|
|
"column": 13,
|
|
"stop_line": 663,
|
|
"stop_column": 54,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DummyProgressManager` is not assignable to parameter `status_mgr` with type `ProgressManager` in function `documents.barcodes.BarcodePlugin.__init__`",
|
|
"concise_description": "Argument `DummyProgressManager` is not assignable to parameter `status_mgr` with type `ProgressManager` in function `documents.barcodes.BarcodePlugin.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 664,
|
|
"column": 13,
|
|
"stop_line": 664,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 817,
|
|
"column": 5,
|
|
"stop_line": 817,
|
|
"stop_column": 20,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `contextlib.contextmanager` called with arguments: ((self: Self@TestTagBarcode, filepath: Path) -> BarcodePlugin)\n Possible overloads:\n (func: (ParamSpec(_P)) -> Generator[_T_co, None, object]) -> (ParamSpec(_P)) -> _GeneratorContextManager[_T_co] [closest match]\n (func: (ParamSpec(_P)) -> Iterator[_T_co]) -> (ParamSpec(_P)) -> _GeneratorContextManager[_T_co]",
|
|
"concise_description": "No matching overload found for function `contextlib.contextmanager` called with arguments: ((self: Self@TestTagBarcode, filepath: Path) -> BarcodePlugin)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 818,
|
|
"column": 45,
|
|
"stop_line": 818,
|
|
"stop_column": 58,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Generator function should return `Generator`",
|
|
"concise_description": "Generator function should return `Generator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 822,
|
|
"column": 13,
|
|
"stop_line": 822,
|
|
"stop_column": 54,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DummyProgressManager` is not assignable to parameter `status_mgr` with type `ProgressManager` in function `documents.barcodes.BarcodePlugin.__init__`",
|
|
"concise_description": "Argument `DummyProgressManager` is not assignable to parameter `status_mgr` with type `ProgressManager` in function `documents.barcodes.BarcodePlugin.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 823,
|
|
"column": 13,
|
|
"stop_line": 823,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 73,
|
|
"column": 13,
|
|
"stop_line": 73,
|
|
"stop_column": 23,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int` is not assignable to parameter `correspondent` with type `Correspondent` in function `documents.bulk_edit.set_correspondent`",
|
|
"concise_description": "Argument `int` is not assignable to parameter `correspondent` with type `Correspondent` in function `documents.bulk_edit.set_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 82,
|
|
"column": 81,
|
|
"stop_line": 82,
|
|
"stop_column": 85,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `correspondent` with type `Correspondent` in function `documents.bulk_edit.set_correspondent`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `correspondent` with type `Correspondent` in function `documents.bulk_edit.set_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 92,
|
|
"column": 13,
|
|
"stop_line": 92,
|
|
"stop_column": 24,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int` is not assignable to parameter `document_type` with type `DocumentType` in function `documents.bulk_edit.set_document_type`",
|
|
"concise_description": "Argument `int` is not assignable to parameter `document_type` with type `DocumentType` in function `documents.bulk_edit.set_document_type`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 101,
|
|
"column": 81,
|
|
"stop_line": 101,
|
|
"stop_column": 85,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `document_type` with type `DocumentType` in function `documents.bulk_edit.set_document_type`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `document_type` with type `DocumentType` in function `documents.bulk_edit.set_document_type`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 120,
|
|
"column": 13,
|
|
"stop_line": 120,
|
|
"stop_column": 24,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int` is not assignable to parameter `storage_path` with type `StoragePath` in function `documents.bulk_edit.set_storage_path`",
|
|
"concise_description": "Argument `int` is not assignable to parameter `storage_path` with type `StoragePath` in function `documents.bulk_edit.set_storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 144,
|
|
"column": 13,
|
|
"stop_line": 144,
|
|
"stop_column": 24,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int` is not assignable to parameter `storage_path` with type `StoragePath` in function `documents.bulk_edit.set_storage_path`",
|
|
"concise_description": "Argument `int` is not assignable to parameter `storage_path` with type `StoragePath` in function `documents.bulk_edit.set_storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 151,
|
|
"column": 13,
|
|
"stop_line": 151,
|
|
"stop_column": 17,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `storage_path` with type `StoragePath` in function `documents.bulk_edit.set_storage_path`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `storage_path` with type `StoragePath` in function `documents.bulk_edit.set_storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 242,
|
|
"column": 13,
|
|
"stop_line": 242,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 246,
|
|
"column": 13,
|
|
"stop_line": 246,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 302,
|
|
"column": 13,
|
|
"stop_line": 302,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 306,
|
|
"column": 13,
|
|
"stop_line": 306,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 310,
|
|
"column": 13,
|
|
"stop_line": 310,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 314,
|
|
"column": 13,
|
|
"stop_line": 314,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 318,
|
|
"column": 13,
|
|
"stop_line": 318,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 322,
|
|
"column": 17,
|
|
"stop_line": 322,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 339,
|
|
"column": 17,
|
|
"stop_line": 339,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 342,
|
|
"column": 17,
|
|
"stop_line": 342,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 366,
|
|
"column": 17,
|
|
"stop_line": 366,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 369,
|
|
"column": 17,
|
|
"stop_line": 369,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 460,
|
|
"column": 48,
|
|
"stop_line": 460,
|
|
"stop_column": 50,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 466,
|
|
"column": 26,
|
|
"stop_line": 466,
|
|
"stop_column": 49,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Group` has no attribute `count`\nObject of class `dict` has no attribute `count`",
|
|
"concise_description": "Object of class `Group` has no attribute `count`\nObject of class `dict` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 504,
|
|
"column": 48,
|
|
"stop_line": 504,
|
|
"stop_column": 50,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 510,
|
|
"column": 26,
|
|
"stop_line": 510,
|
|
"stop_column": 49,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Group` has no attribute `count`\nObject of class `dict` has no attribute `count`",
|
|
"concise_description": "Object of class `Group` has no attribute `count`\nObject of class `dict` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 525,
|
|
"column": 19,
|
|
"stop_line": 525,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 534,
|
|
"column": 27,
|
|
"stop_line": 534,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 543,
|
|
"column": 19,
|
|
"stop_line": 543,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 552,
|
|
"column": 27,
|
|
"stop_line": 552,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 561,
|
|
"column": 19,
|
|
"stop_line": 561,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 594,
|
|
"column": 19,
|
|
"stop_line": 594,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 599,
|
|
"column": 27,
|
|
"stop_line": 599,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 668,
|
|
"column": 24,
|
|
"stop_line": 668,
|
|
"stop_column": 45,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 904,
|
|
"column": 24,
|
|
"stop_line": 904,
|
|
"stop_column": 45,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1449,
|
|
"column": 20,
|
|
"stop_line": 1449,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1525,
|
|
"column": 20,
|
|
"stop_line": 1525,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1585,
|
|
"column": 20,
|
|
"stop_line": 1585,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 206,
|
|
"column": 18,
|
|
"stop_line": 206,
|
|
"stop_column": 67,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `classes_`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `classes_`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 210,
|
|
"column": 18,
|
|
"stop_line": 210,
|
|
"stop_column": 57,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `classes_`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `classes_`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 230,
|
|
"column": 23,
|
|
"stop_line": 230,
|
|
"stop_column": 64,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `transform`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `transform`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 461,
|
|
"column": 40,
|
|
"stop_line": 461,
|
|
"stop_column": 66,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"code": -2,
|
|
"name": "missing-module-attribute",
|
|
"description": "Could not import `InconsistentVersionWarning` from `sklearn.exceptions`",
|
|
"concise_description": "Could not import `InconsistentVersionWarning` from `sklearn.exceptions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 481,
|
|
"column": 17,
|
|
"stop_line": 481,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `append`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 104,
|
|
"column": 16,
|
|
"stop_line": 104,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `Path | None` is not assignable to declared return type `Path`",
|
|
"concise_description": "Returned type `Path | None` is not assignable to declared return type `Path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 209,
|
|
"column": 15,
|
|
"stop_line": 209,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 221,
|
|
"column": 15,
|
|
"stop_line": 221,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 229,
|
|
"column": 15,
|
|
"stop_line": 229,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 267,
|
|
"column": 27,
|
|
"stop_line": 267,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 291,
|
|
"column": 28,
|
|
"stop_line": 291,
|
|
"stop_column": 49,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 358,
|
|
"column": 26,
|
|
"stop_line": 358,
|
|
"stop_column": 51,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `id`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 373,
|
|
"column": 26,
|
|
"stop_line": 373,
|
|
"stop_column": 51,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `id`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 388,
|
|
"column": 26,
|
|
"stop_line": 388,
|
|
"stop_column": 50,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `id`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 433,
|
|
"column": 56,
|
|
"stop_line": 433,
|
|
"stop_column": 78,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 438,
|
|
"column": 26,
|
|
"stop_line": 438,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 440,
|
|
"column": 13,
|
|
"stop_line": 440,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 689,
|
|
"column": 34,
|
|
"stop_line": 689,
|
|
"stop_column": 51,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `obj` with type `Sized` in function `len`\n Protocol `Sized` requires attribute `__len__`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `obj` with type `Sized` in function `len`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 691,
|
|
"column": 17,
|
|
"stop_line": 691,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `obj` with type `Sized` in function `len`\n Protocol `Sized` requires attribute `__len__`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `obj` with type `Sized` in function `len`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 695,
|
|
"column": 27,
|
|
"stop_line": 695,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 728,
|
|
"column": 27,
|
|
"stop_line": 728,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 791,
|
|
"column": 13,
|
|
"stop_line": 791,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 801,
|
|
"column": 13,
|
|
"stop_line": 801,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 853,
|
|
"column": 13,
|
|
"stop_line": 853,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 863,
|
|
"column": 13,
|
|
"stop_line": 863,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 906,
|
|
"column": 17,
|
|
"stop_line": 906,
|
|
"stop_column": 38,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 916,
|
|
"column": 17,
|
|
"stop_line": 916,
|
|
"stop_column": 38,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1088,
|
|
"column": 26,
|
|
"stop_line": 1088,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `filename`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1089,
|
|
"column": 26,
|
|
"stop_line": 1089,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `archive_filename`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `archive_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1091,
|
|
"column": 26,
|
|
"stop_line": 1091,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `filename`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1092,
|
|
"column": 26,
|
|
"stop_line": 1092,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `archive_filename`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `archive_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1094,
|
|
"column": 26,
|
|
"stop_line": 1094,
|
|
"stop_column": 39,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `filename`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1095,
|
|
"column": 26,
|
|
"stop_line": 1095,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `archive_filename`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `archive_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1191,
|
|
"column": 15,
|
|
"stop_line": 1191,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1222,
|
|
"column": 15,
|
|
"stop_line": 1222,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1253,
|
|
"column": 15,
|
|
"stop_line": 1253,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1286,
|
|
"column": 15,
|
|
"stop_line": 1286,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1311,
|
|
"column": 26,
|
|
"stop_line": 1311,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1436,
|
|
"column": 26,
|
|
"stop_line": 1436,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 32,
|
|
"column": 38,
|
|
"stop_line": 32,
|
|
"stop_column": 63,
|
|
"path": "src/documents/tests/test_double_sided.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `consumption_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `consumption_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 33,
|
|
"column": 9,
|
|
"stop_line": 33,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_double_sided.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `double_sided_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `double_sided_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 34,
|
|
"column": 29,
|
|
"stop_line": 34,
|
|
"stop_column": 50,
|
|
"path": "src/documents/tests/test_double_sided.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 42,
|
|
"column": 15,
|
|
"stop_line": 42,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_double_sided.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `double_sided_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `double_sided_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 106,
|
|
"column": 18,
|
|
"stop_line": 106,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_double_sided.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `consumption_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `consumption_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 240,
|
|
"column": 21,
|
|
"stop_line": 240,
|
|
"stop_column": 46,
|
|
"path": "src/documents/tests/test_double_sided.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `consumption_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `consumption_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 232,
|
|
"column": 38,
|
|
"stop_line": 232,
|
|
"stop_column": 54,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `source_path` with type `Path` in function `documents.file_handling.create_source_path_directory`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `source_path` with type `Path` in function `documents.file_handling.create_source_path_directory`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 233,
|
|
"column": 9,
|
|
"stop_line": 233,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `write_bytes`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `write_bytes`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 250,
|
|
"column": 27,
|
|
"stop_line": 250,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 608,
|
|
"column": 18,
|
|
"stop_line": 608,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 691,
|
|
"column": 27,
|
|
"stop_line": 691,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 711,
|
|
"column": 27,
|
|
"stop_line": 711,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 738,
|
|
"column": 30,
|
|
"stop_line": 738,
|
|
"stop_column": 46,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsNotFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsNotFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 761,
|
|
"column": 27,
|
|
"stop_line": 761,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 785,
|
|
"column": 27,
|
|
"stop_line": 785,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 807,
|
|
"column": 27,
|
|
"stop_line": 807,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 838,
|
|
"column": 27,
|
|
"stop_line": 838,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 858,
|
|
"column": 27,
|
|
"stop_line": 858,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 889,
|
|
"column": 27,
|
|
"stop_line": 889,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 909,
|
|
"column": 27,
|
|
"stop_line": 909,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 917,
|
|
"column": 30,
|
|
"stop_line": 917,
|
|
"stop_column": 46,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsNotFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsNotFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 944,
|
|
"column": 27,
|
|
"stop_line": 944,
|
|
"stop_column": 44,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 951,
|
|
"column": 27,
|
|
"stop_line": 951,
|
|
"stop_column": 44,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 977,
|
|
"column": 27,
|
|
"stop_line": 977,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1883,
|
|
"column": 31,
|
|
"stop_line": 1883,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1906,
|
|
"column": 31,
|
|
"stop_line": 1906,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1922,
|
|
"column": 31,
|
|
"stop_line": 1922,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 166,
|
|
"column": 27,
|
|
"stop_line": 166,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_filters.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal[1698330605] | dict[Any, Any] | list[object] | None` is not assignable to parameter `value` with type `date | datetime | str` in function `documents.templating.filters.localize_date`",
|
|
"concise_description": "Argument `Literal[1698330605] | dict[Any, Any] | list[object] | None` is not assignable to parameter `value` with type `date | datetime | str` in function `documents.templating.filters.localize_date`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 45,
|
|
"column": 39,
|
|
"stop_line": 45,
|
|
"stop_column": 62,
|
|
"path": "src/documents/tests/test_management.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 51,
|
|
"column": 39,
|
|
"stop_line": 51,
|
|
"stop_column": 62,
|
|
"path": "src/documents/tests/test_management.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 59,
|
|
"column": 27,
|
|
"stop_line": 59,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_management.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 95,
|
|
"column": 39,
|
|
"stop_line": 95,
|
|
"stop_column": 62,
|
|
"path": "src/documents/tests/test_management.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 96,
|
|
"column": 39,
|
|
"stop_line": 96,
|
|
"stop_column": 62,
|
|
"path": "src/documents/tests/test_management.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 190,
|
|
"column": 14,
|
|
"stop_line": 190,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_management.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 200,
|
|
"column": 30,
|
|
"stop_line": 200,
|
|
"stop_column": 46,
|
|
"path": "src/documents/tests/test_management.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsNotFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsNotFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 202,
|
|
"column": 27,
|
|
"stop_line": 202,
|
|
"stop_column": 44,
|
|
"path": "src/documents/tests/test_management.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `documents.tests.utils.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 63,
|
|
"column": 24,
|
|
"stop_line": 63,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-argument",
|
|
"description": "Missing argument `ignore_errors` in function `unittest.case.TestCase.addCleanup`",
|
|
"concise_description": "Missing argument `ignore_errors` in function `unittest.case.TestCase.addCleanup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 63,
|
|
"column": 24,
|
|
"stop_line": 63,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-argument",
|
|
"description": "Missing argument `onerror` in function `unittest.case.TestCase.addCleanup`",
|
|
"concise_description": "Missing argument `onerror` in function `unittest.case.TestCase.addCleanup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 188,
|
|
"column": 22,
|
|
"stop_line": 188,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | str` is not assignable to parameter `command_name` with type `BaseCommand | str` in function `django.core.management.call_command`",
|
|
"concise_description": "Argument `Path | str` is not assignable to parameter `command_name` with type `BaseCommand | str` in function `django.core.management.call_command`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 196,
|
|
"column": 28,
|
|
"stop_line": 196,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 199,
|
|
"column": 18,
|
|
"stop_line": 199,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 303,
|
|
"column": 28,
|
|
"stop_line": 303,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 306,
|
|
"column": 18,
|
|
"stop_line": 306,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 315,
|
|
"column": 28,
|
|
"stop_line": 315,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 318,
|
|
"column": 18,
|
|
"stop_line": 318,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 417,
|
|
"column": 28,
|
|
"stop_line": 417,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 420,
|
|
"column": 18,
|
|
"stop_line": 420,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 456,
|
|
"column": 28,
|
|
"stop_line": 456,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 459,
|
|
"column": 18,
|
|
"stop_line": 459,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 486,
|
|
"column": 28,
|
|
"stop_line": 486,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 489,
|
|
"column": 18,
|
|
"stop_line": 489,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 521,
|
|
"column": 28,
|
|
"stop_line": 521,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 524,
|
|
"column": 18,
|
|
"stop_line": 524,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 546,
|
|
"column": 24,
|
|
"stop_line": 546,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-argument",
|
|
"description": "Missing argument `ignore_errors` in function `unittest.case.TestCase.addCleanup`",
|
|
"concise_description": "Missing argument `ignore_errors` in function `unittest.case.TestCase.addCleanup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 546,
|
|
"column": 24,
|
|
"stop_line": 546,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-argument",
|
|
"description": "Missing argument `onerror` in function `unittest.case.TestCase.addCleanup`",
|
|
"concise_description": "Missing argument `onerror` in function `unittest.case.TestCase.addCleanup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 566,
|
|
"column": 28,
|
|
"stop_line": 566,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 569,
|
|
"column": 18,
|
|
"stop_line": 569,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 574,
|
|
"column": 22,
|
|
"stop_line": 574,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | str` is not assignable to parameter `command_name` with type `BaseCommand | str` in function `django.core.management.call_command`",
|
|
"concise_description": "Argument `Path | str` is not assignable to parameter `command_name` with type `BaseCommand | str` in function `django.core.management.call_command`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 598,
|
|
"column": 28,
|
|
"stop_line": 598,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 601,
|
|
"column": 18,
|
|
"stop_line": 601,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 609,
|
|
"column": 26,
|
|
"stop_line": 609,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | str` is not assignable to parameter `command_name` with type `BaseCommand | str` in function `django.core.management.call_command`",
|
|
"concise_description": "Argument `Path | str` is not assignable to parameter `command_name` with type `BaseCommand | str` in function `django.core.management.call_command`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 637,
|
|
"column": 28,
|
|
"stop_line": 637,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 640,
|
|
"column": 18,
|
|
"stop_line": 640,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 654,
|
|
"column": 22,
|
|
"stop_line": 654,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | str` is not assignable to parameter `command_name` with type `BaseCommand | str` in function `django.core.management.call_command`",
|
|
"concise_description": "Argument `Path | str` is not assignable to parameter `command_name` with type `BaseCommand | str` in function `django.core.management.call_command`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 735,
|
|
"column": 28,
|
|
"stop_line": 735,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 738,
|
|
"column": 18,
|
|
"stop_line": 738,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 781,
|
|
"column": 28,
|
|
"stop_line": 781,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 784,
|
|
"column": 18,
|
|
"stop_line": 784,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 829,
|
|
"column": 28,
|
|
"stop_line": 829,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 832,
|
|
"column": 18,
|
|
"stop_line": 832,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 865,
|
|
"column": 28,
|
|
"stop_line": 865,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 868,
|
|
"column": 18,
|
|
"stop_line": 868,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 895,
|
|
"column": 28,
|
|
"stop_line": 895,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 898,
|
|
"column": 18,
|
|
"stop_line": 898,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 925,
|
|
"column": 28,
|
|
"stop_line": 925,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 928,
|
|
"column": 18,
|
|
"stop_line": 928,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 965,
|
|
"column": 28,
|
|
"stop_line": 965,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 968,
|
|
"column": 18,
|
|
"stop_line": 968,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 988,
|
|
"column": 28,
|
|
"stop_line": 988,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 991,
|
|
"column": 18,
|
|
"stop_line": 991,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1000,
|
|
"column": 13,
|
|
"stop_line": 1000,
|
|
"stop_column": 54,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"concise_description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1035,
|
|
"column": 23,
|
|
"stop_line": 1035,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1038,
|
|
"column": 13,
|
|
"stop_line": 1038,
|
|
"stop_column": 32,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1048,
|
|
"column": 23,
|
|
"stop_line": 1048,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 43,
|
|
"column": 21,
|
|
"stop_line": 43,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 62,
|
|
"column": 25,
|
|
"stop_line": 62,
|
|
"stop_column": 46,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 70,
|
|
"column": 21,
|
|
"stop_line": 70,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 89,
|
|
"column": 25,
|
|
"stop_line": 89,
|
|
"stop_column": 46,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 100,
|
|
"column": 21,
|
|
"stop_line": 100,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 217,
|
|
"column": 10,
|
|
"stop_line": 217,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 219,
|
|
"column": 10,
|
|
"stop_line": 219,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 227,
|
|
"column": 21,
|
|
"stop_line": 227,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 256,
|
|
"column": 21,
|
|
"stop_line": 256,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 293,
|
|
"column": 21,
|
|
"stop_line": 293,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 314,
|
|
"column": 10,
|
|
"stop_line": 314,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 321,
|
|
"column": 21,
|
|
"stop_line": 321,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 341,
|
|
"column": 10,
|
|
"stop_line": 341,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 342,
|
|
"column": 10,
|
|
"stop_line": 342,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 351,
|
|
"column": 21,
|
|
"stop_line": 351,
|
|
"stop_column": 42,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 372,
|
|
"column": 20,
|
|
"stop_line": 372,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 58,
|
|
"column": 12,
|
|
"stop_line": 58,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `tuple[StoragePathFactory, StoragePathFactory, StoragePathFactory]` is not assignable to declared return type `tuple[StoragePath, StoragePath, StoragePath]`",
|
|
"concise_description": "Returned type `tuple[StoragePathFactory, StoragePathFactory, StoragePathFactory]` is not assignable to declared return type `tuple[StoragePath, StoragePath, StoragePath]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 69,
|
|
"column": 12,
|
|
"stop_line": 69,
|
|
"stop_column": 68,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `tuple[TagFactory, TagFactory, TagFactory, TagFactory, TagFactory]` is not assignable to declared return type `tuple[Tag, Tag, Tag, Tag, Tag]`",
|
|
"concise_description": "Returned type `tuple[TagFactory, TagFactory, TagFactory, TagFactory, TagFactory]` is not assignable to declared return type `tuple[Tag, Tag, Tag, Tag, Tag]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 83,
|
|
"column": 12,
|
|
"stop_line": 83,
|
|
"stop_column": 29,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `tuple[CorrespondentFactory, CorrespondentFactory]` is not assignable to declared return type `tuple[Correspondent, Correspondent]`",
|
|
"concise_description": "Returned type `tuple[CorrespondentFactory, CorrespondentFactory]` is not assignable to declared return type `tuple[Correspondent, Correspondent]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 97,
|
|
"column": 12,
|
|
"stop_line": 97,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `tuple[DocumentTypeFactory, DocumentTypeFactory]` is not assignable to declared return type `tuple[DocumentType, DocumentType]`",
|
|
"concise_description": "Returned type `tuple[DocumentTypeFactory, DocumentTypeFactory]` is not assignable to declared return type `tuple[DocumentType, DocumentType]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 116,
|
|
"column": 5,
|
|
"stop_line": 116,
|
|
"stop_column": 12,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `tags`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 117,
|
|
"column": 5,
|
|
"stop_line": 117,
|
|
"stop_column": 12,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `tags`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 119,
|
|
"column": 12,
|
|
"stop_line": 119,
|
|
"stop_column": 26,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `tuple[DocumentFactory, DocumentFactory, DocumentFactory, DocumentFactory]` is not assignable to declared return type `tuple[Document, Document, Document, Document]`",
|
|
"concise_description": "Returned type `tuple[DocumentFactory, DocumentFactory, DocumentFactory, DocumentFactory]` is not assignable to declared return type `tuple[Document, Document, Document, Document]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 265,
|
|
"column": 9,
|
|
"stop_line": 265,
|
|
"stop_column": 28,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `refresh_from_db`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `refresh_from_db`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 337,
|
|
"column": 9,
|
|
"stop_line": 337,
|
|
"stop_column": 28,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `refresh_from_db`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `refresh_from_db`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 416,
|
|
"column": 9,
|
|
"stop_line": 416,
|
|
"stop_column": 28,
|
|
"path": "src/documents/tests/test_management_retagger.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentFactory` has no attribute `refresh_from_db`",
|
|
"concise_description": "Object of class `DocumentFactory` has no attribute `refresh_from_db`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 89,
|
|
"column": 9,
|
|
"stop_line": 89,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_migration_sha256_checksums.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `TestMigrations` has no attribute `_fixture_teardown`",
|
|
"concise_description": "Object of class `TestMigrations` has no attribute `_fixture_teardown`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 25,
|
|
"column": 30,
|
|
"stop_line": 25,
|
|
"stop_column": 74,
|
|
"path": "src/documents/tests/test_models.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `correspondent`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 30,
|
|
"column": 27,
|
|
"stop_line": 30,
|
|
"stop_column": 71,
|
|
"path": "src/documents/tests/test_models.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `correspondent`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 38,
|
|
"column": 17,
|
|
"stop_line": 38,
|
|
"stop_column": 73,
|
|
"path": "src/documents/tests/test_parsers.py",
|
|
"code": -2,
|
|
"name": "not-callable",
|
|
"description": "Expected a callable, got `None`",
|
|
"concise_description": "Expected a callable, got `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 62,
|
|
"column": 17,
|
|
"stop_line": 62,
|
|
"stop_column": 73,
|
|
"path": "src/documents/tests/test_parsers.py",
|
|
"code": -2,
|
|
"name": "not-callable",
|
|
"description": "Expected a callable, got `None`",
|
|
"concise_description": "Expected a callable, got `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 96,
|
|
"column": 21,
|
|
"stop_line": 96,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_parsers.py",
|
|
"code": -2,
|
|
"name": "not-callable",
|
|
"description": "Expected a callable, got `None`",
|
|
"concise_description": "Expected a callable, got `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 132,
|
|
"column": 14,
|
|
"stop_line": 132,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_sanity_check.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 151,
|
|
"column": 24,
|
|
"stop_line": 151,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_sanity_check.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 164,
|
|
"column": 14,
|
|
"stop_line": 164,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_sanity_check.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 127,
|
|
"column": 28,
|
|
"stop_line": 127,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_share_link_bundles.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 141,
|
|
"column": 28,
|
|
"stop_line": 141,
|
|
"stop_column": 54,
|
|
"path": "src/documents/tests/test_share_link_bundles.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `_MonkeyPatchedResponse` has no attribute `streaming_content`",
|
|
"concise_description": "Object of class `_MonkeyPatchedResponse` has no attribute `streaming_content`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 202,
|
|
"column": 29,
|
|
"stop_line": 202,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_share_link_bundles.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 206,
|
|
"column": 28,
|
|
"stop_line": 206,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_share_link_bundles.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 440,
|
|
"column": 30,
|
|
"stop_line": 440,
|
|
"stop_column": 49,
|
|
"path": "src/documents/tests/test_share_link_bundles.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 443,
|
|
"column": 26,
|
|
"stop_line": 443,
|
|
"stop_column": 59,
|
|
"path": "src/documents/tests/test_share_link_bundles.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `resolve`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `resolve`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 96,
|
|
"column": 23,
|
|
"stop_line": 96,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_tag_hierarchy.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 109,
|
|
"column": 23,
|
|
"stop_line": 109,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_tag_hierarchy.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 196,
|
|
"column": 9,
|
|
"stop_line": 196,
|
|
"stop_column": 29,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 198,
|
|
"column": 16,
|
|
"stop_line": 198,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `date_started`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `date_started`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 216,
|
|
"column": 16,
|
|
"stop_line": 220,
|
|
"stop_column": 10,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `PaperlessTaskFactory` is not assignable to declared return type `PaperlessTask`",
|
|
"concise_description": "Returned type `PaperlessTaskFactory` is not assignable to declared return type `PaperlessTask`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 309,
|
|
"column": 9,
|
|
"stop_line": 309,
|
|
"stop_column": 29,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 311,
|
|
"column": 16,
|
|
"stop_line": 311,
|
|
"stop_column": 46,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 312,
|
|
"column": 16,
|
|
"stop_line": 312,
|
|
"stop_column": 49,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 313,
|
|
"column": 16,
|
|
"stop_line": 313,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `date_done`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `date_done`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 334,
|
|
"column": 9,
|
|
"stop_line": 334,
|
|
"stop_column": 29,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 335,
|
|
"column": 16,
|
|
"stop_line": 335,
|
|
"stop_column": 47,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "`in` is not supported between `Literal['traceback']` and `None`",
|
|
"concise_description": "`in` is not supported between `Literal['traceback']` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 336,
|
|
"column": 20,
|
|
"stop_line": 336,
|
|
"stop_column": 49,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 353,
|
|
"column": 9,
|
|
"stop_line": 353,
|
|
"stop_column": 29,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 354,
|
|
"column": 16,
|
|
"stop_line": 354,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `duration_seconds`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `duration_seconds`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 355,
|
|
"column": 16,
|
|
"stop_line": 355,
|
|
"stop_column": 38,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `wait_time_seconds`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `wait_time_seconds`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 371,
|
|
"column": 9,
|
|
"stop_line": 371,
|
|
"stop_column": 29,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `refresh_from_db`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 373,
|
|
"column": 16,
|
|
"stop_line": 373,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessTaskFactory` has no attribute `date_done`",
|
|
"concise_description": "Object of class `PaperlessTaskFactory` has no attribute `date_done`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 228,
|
|
"column": 19,
|
|
"stop_line": 228,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 237,
|
|
"column": 27,
|
|
"stop_line": 237,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 269,
|
|
"column": 19,
|
|
"stop_line": 269,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/test_tasks.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 46,
|
|
"column": 26,
|
|
"stop_line": 46,
|
|
"stop_column": 38,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 71,
|
|
"column": 17,
|
|
"stop_line": 71,
|
|
"stop_column": 53,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 75,
|
|
"column": 17,
|
|
"stop_line": 75,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 79,
|
|
"column": 17,
|
|
"stop_line": 79,
|
|
"stop_column": 52,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 83,
|
|
"column": 17,
|
|
"stop_line": 83,
|
|
"stop_column": 54,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 87,
|
|
"column": 17,
|
|
"stop_line": 87,
|
|
"stop_column": 49,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 102,
|
|
"column": 9,
|
|
"stop_line": 102,
|
|
"stop_column": 24,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `app_logo`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `app_logo`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 103,
|
|
"column": 9,
|
|
"stop_line": 103,
|
|
"stop_column": 20,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `save`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `save`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 108,
|
|
"column": 26,
|
|
"stop_line": 108,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `app_logo`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `app_logo`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 125,
|
|
"column": 44,
|
|
"stop_line": 125,
|
|
"stop_column": 67,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 164,
|
|
"column": 9,
|
|
"stop_line": 164,
|
|
"stop_column": 24,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `render`",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `render`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 173,
|
|
"column": 9,
|
|
"stop_line": 173,
|
|
"stop_column": 24,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `render`",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `render`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 374,
|
|
"column": 13,
|
|
"stop_line": 377,
|
|
"stop_column": 26,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `suggestions`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `suggestions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 140,
|
|
"column": 30,
|
|
"stop_line": 140,
|
|
"stop_column": 51,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 176,
|
|
"column": 13,
|
|
"stop_line": 176,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 207,
|
|
"column": 25,
|
|
"stop_line": 209,
|
|
"stop_column": 26,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 224,
|
|
"column": 25,
|
|
"stop_line": 226,
|
|
"stop_column": 26,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 235,
|
|
"column": 26,
|
|
"stop_line": 235,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 239,
|
|
"column": 21,
|
|
"stop_line": 239,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 288,
|
|
"column": 13,
|
|
"stop_line": 288,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 319,
|
|
"column": 25,
|
|
"stop_line": 321,
|
|
"stop_column": 26,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 336,
|
|
"column": 25,
|
|
"stop_line": 338,
|
|
"stop_column": 26,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 363,
|
|
"column": 30,
|
|
"stop_line": 363,
|
|
"stop_column": 51,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 13,
|
|
"stop_line": 407,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 459,
|
|
"column": 29,
|
|
"stop_line": 459,
|
|
"stop_column": 50,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 476,
|
|
"column": 13,
|
|
"stop_line": 476,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 529,
|
|
"column": 13,
|
|
"stop_line": 529,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 552,
|
|
"column": 28,
|
|
"stop_line": 552,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 555,
|
|
"column": 46,
|
|
"stop_line": 555,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 561,
|
|
"column": 28,
|
|
"stop_line": 561,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 564,
|
|
"column": 46,
|
|
"stop_line": 564,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 570,
|
|
"column": 45,
|
|
"stop_line": 570,
|
|
"stop_column": 59,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `str` has no attribute `name`",
|
|
"concise_description": "Object of class `str` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 606,
|
|
"column": 13,
|
|
"stop_line": 606,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 629,
|
|
"column": 28,
|
|
"stop_line": 629,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 632,
|
|
"column": 46,
|
|
"stop_line": 632,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 638,
|
|
"column": 28,
|
|
"stop_line": 638,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 641,
|
|
"column": 46,
|
|
"stop_line": 641,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 685,
|
|
"column": 13,
|
|
"stop_line": 685,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 709,
|
|
"column": 28,
|
|
"stop_line": 709,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 712,
|
|
"column": 46,
|
|
"stop_line": 712,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 718,
|
|
"column": 28,
|
|
"stop_line": 718,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 721,
|
|
"column": 46,
|
|
"stop_line": 721,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 763,
|
|
"column": 13,
|
|
"stop_line": 763,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 786,
|
|
"column": 28,
|
|
"stop_line": 786,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 789,
|
|
"column": 46,
|
|
"stop_line": 789,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 795,
|
|
"column": 28,
|
|
"stop_line": 795,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 798,
|
|
"column": 46,
|
|
"stop_line": 798,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 874,
|
|
"column": 13,
|
|
"stop_line": 874,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 889,
|
|
"column": 26,
|
|
"stop_line": 889,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 950,
|
|
"column": 31,
|
|
"stop_line": 950,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1422,
|
|
"column": 40,
|
|
"stop_line": 1422,
|
|
"stop_column": 46,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`\n Protocol `Container` requires attribute `__contains__`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1438,
|
|
"column": 35,
|
|
"stop_line": 1438,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`\n Protocol `Container` requires attribute `__contains__`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1457,
|
|
"column": 39,
|
|
"stop_line": 1457,
|
|
"stop_column": 45,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`\n Protocol `Container` requires attribute `__contains__`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1922,
|
|
"column": 26,
|
|
"stop_line": 1922,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1947,
|
|
"column": 13,
|
|
"stop_line": 1947,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2006,
|
|
"column": 26,
|
|
"stop_line": 2006,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2055,
|
|
"column": 43,
|
|
"stop_line": 2058,
|
|
"stop_column": 10,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`list[str] | Any` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`list[str] | Any` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2059,
|
|
"column": 45,
|
|
"stop_line": 2062,
|
|
"stop_column": 10,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`list[str] | Any` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`list[str] | Any` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2070,
|
|
"column": 38,
|
|
"stop_line": 2070,
|
|
"stop_column": 64,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2833,
|
|
"column": 26,
|
|
"stop_line": 2833,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2836,
|
|
"column": 38,
|
|
"stop_line": 2836,
|
|
"stop_column": 64,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2904,
|
|
"column": 26,
|
|
"stop_line": 2904,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2907,
|
|
"column": 38,
|
|
"stop_line": 2907,
|
|
"stop_column": 64,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2971,
|
|
"column": 13,
|
|
"stop_line": 2971,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3006,
|
|
"column": 25,
|
|
"stop_line": 3008,
|
|
"stop_column": 26,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3023,
|
|
"column": 25,
|
|
"stop_line": 3025,
|
|
"stop_column": 26,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3034,
|
|
"column": 26,
|
|
"stop_line": 3034,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3095,
|
|
"column": 13,
|
|
"stop_line": 3095,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3119,
|
|
"column": 28,
|
|
"stop_line": 3119,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3122,
|
|
"column": 46,
|
|
"stop_line": 3122,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3128,
|
|
"column": 28,
|
|
"stop_line": 3128,
|
|
"stop_column": 30,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `list.count`",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3131,
|
|
"column": 46,
|
|
"stop_line": 3131,
|
|
"stop_column": 77,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3134,
|
|
"column": 21,
|
|
"stop_line": 3134,
|
|
"stop_column": 43,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3246,
|
|
"column": 13,
|
|
"stop_line": 3246,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3258,
|
|
"column": 27,
|
|
"stop_line": 3258,
|
|
"stop_column": 44,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | Unknown` is not assignable to parameter `original_file` with type `Path` in function `documents.data_models.ConsumableDocument.__init__`",
|
|
"concise_description": "Argument `str | Unknown` is not assignable to parameter `original_file` with type `Path` in function `documents.data_models.ConsumableDocument.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3346,
|
|
"column": 13,
|
|
"stop_line": 3346,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3384,
|
|
"column": 13,
|
|
"stop_line": 3384,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3604,
|
|
"column": 13,
|
|
"stop_line": 3604,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3726,
|
|
"column": 13,
|
|
"stop_line": 3726,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3975,
|
|
"column": 23,
|
|
"stop_line": 3975,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3993,
|
|
"column": 23,
|
|
"stop_line": 3993,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4018,
|
|
"column": 27,
|
|
"stop_line": 4018,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4066,
|
|
"column": 13,
|
|
"stop_line": 4066,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4115,
|
|
"column": 23,
|
|
"stop_line": 4115,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4164,
|
|
"column": 23,
|
|
"stop_line": 4164,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4196,
|
|
"column": 23,
|
|
"stop_line": 4196,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4409,
|
|
"column": 13,
|
|
"stop_line": 4409,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4601,
|
|
"column": 13,
|
|
"stop_line": 4601,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4665,
|
|
"column": 13,
|
|
"stop_line": 4665,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4714,
|
|
"column": 19,
|
|
"stop_line": 4714,
|
|
"stop_column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4717,
|
|
"column": 16,
|
|
"stop_line": 4717,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `headers`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4727,
|
|
"column": 19,
|
|
"stop_line": 4727,
|
|
"stop_column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4730,
|
|
"column": 16,
|
|
"stop_line": 4730,
|
|
"stop_column": 48,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `headers`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4767,
|
|
"column": 23,
|
|
"stop_line": 4767,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4776,
|
|
"column": 23,
|
|
"stop_line": 4776,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4795,
|
|
"column": 23,
|
|
"stop_line": 4795,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4822,
|
|
"column": 23,
|
|
"stop_line": 4822,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4846,
|
|
"column": 19,
|
|
"stop_line": 4846,
|
|
"stop_column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4851,
|
|
"column": 16,
|
|
"stop_line": 4851,
|
|
"stop_column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `url`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4852,
|
|
"column": 16,
|
|
"stop_line": 4852,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `headers`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4876,
|
|
"column": 23,
|
|
"stop_line": 4876,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4902,
|
|
"column": 19,
|
|
"stop_line": 4902,
|
|
"stop_column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4907,
|
|
"column": 16,
|
|
"stop_line": 4907,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `headers`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4908,
|
|
"column": 35,
|
|
"stop_line": 4908,
|
|
"stop_column": 46,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `headers`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 41,
|
|
"column": 22,
|
|
"stop_line": 41,
|
|
"stop_column": 35,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `data_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `data_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 42,
|
|
"column": 26,
|
|
"stop_line": 42,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 43,
|
|
"column": 26,
|
|
"stop_line": 43,
|
|
"stop_column": 40,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 44,
|
|
"column": 24,
|
|
"stop_line": 44,
|
|
"stop_column": 38,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 45,
|
|
"column": 24,
|
|
"stop_line": 45,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `data_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `data_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 47,
|
|
"column": 5,
|
|
"stop_line": 47,
|
|
"stop_column": 19,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `index_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `index_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 48,
|
|
"column": 5,
|
|
"stop_line": 48,
|
|
"stop_column": 23,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 49,
|
|
"column": 5,
|
|
"stop_line": 49,
|
|
"stop_column": 23,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `thumbnail_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `thumbnail_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 50,
|
|
"column": 5,
|
|
"stop_line": 50,
|
|
"stop_column": 21,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 51,
|
|
"column": 5,
|
|
"stop_line": 51,
|
|
"stop_column": 21,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `logging_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `logging_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 54,
|
|
"column": 18,
|
|
"stop_line": 54,
|
|
"stop_column": 31,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `data_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `data_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 55,
|
|
"column": 21,
|
|
"stop_line": 55,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `scratch_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 56,
|
|
"column": 20,
|
|
"stop_line": 56,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 57,
|
|
"column": 23,
|
|
"stop_line": 57,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `originals_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 58,
|
|
"column": 23,
|
|
"stop_line": 58,
|
|
"stop_column": 41,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `thumbnail_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `thumbnail_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 59,
|
|
"column": 21,
|
|
"stop_line": 59,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `archive_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 60,
|
|
"column": 25,
|
|
"stop_line": 60,
|
|
"stop_column": 45,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `consumption_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `consumption_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 61,
|
|
"column": 21,
|
|
"stop_line": 61,
|
|
"stop_column": 37,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `logging_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `logging_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 62,
|
|
"column": 19,
|
|
"stop_line": 62,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `index_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `index_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 63,
|
|
"column": 21,
|
|
"stop_line": 63,
|
|
"stop_column": 36,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `static_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `static_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 64,
|
|
"column": 20,
|
|
"stop_line": 64,
|
|
"stop_column": 33,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `data_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `data_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 65,
|
|
"column": 20,
|
|
"stop_line": 65,
|
|
"stop_column": 34,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `media_dir`",
|
|
"concise_description": "Class `dirs` has no class attribute `media_dir`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 67,
|
|
"column": 5,
|
|
"stop_line": 67,
|
|
"stop_column": 27,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `dirs` has no class attribute `settings_override`",
|
|
"concise_description": "Class `dirs` has no class attribute `settings_override`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 164,
|
|
"column": 9,
|
|
"stop_line": 164,
|
|
"stop_column": 22,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `setUp`",
|
|
"concise_description": "Object of class `object` has no attribute `setUp`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 169,
|
|
"column": 9,
|
|
"stop_line": 169,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `tearDown`",
|
|
"concise_description": "Object of class `object` has no attribute `tearDown`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 180,
|
|
"column": 9,
|
|
"stop_line": 180,
|
|
"stop_column": 24,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `FileSystemAssertsMixin` has no attribute `assertTrue`",
|
|
"concise_description": "Object of class `FileSystemAssertsMixin` has no attribute `assertTrue`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 183,
|
|
"column": 9,
|
|
"stop_line": 183,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `FileSystemAssertsMixin` has no attribute `assertFalse`",
|
|
"concise_description": "Object of class `FileSystemAssertsMixin` has no attribute `assertFalse`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 186,
|
|
"column": 9,
|
|
"stop_line": 186,
|
|
"stop_column": 24,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `FileSystemAssertsMixin` has no attribute `assertTrue`",
|
|
"concise_description": "Object of class `FileSystemAssertsMixin` has no attribute `assertTrue`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 189,
|
|
"column": 9,
|
|
"stop_line": 189,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `FileSystemAssertsMixin` has no attribute `assertFalse`",
|
|
"concise_description": "Object of class `FileSystemAssertsMixin` has no attribute `assertFalse`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 203,
|
|
"column": 9,
|
|
"stop_line": 203,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `FileSystemAssertsMixin` has no attribute `assertEqual`",
|
|
"concise_description": "Object of class `FileSystemAssertsMixin` has no attribute `assertEqual`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 207,
|
|
"column": 9,
|
|
"stop_line": 207,
|
|
"stop_column": 24,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `FileSystemAssertsMixin` has no attribute `assertTrue`",
|
|
"concise_description": "Object of class `FileSystemAssertsMixin` has no attribute `assertTrue`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 209,
|
|
"column": 9,
|
|
"stop_line": 209,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `FileSystemAssertsMixin` has no attribute `assertEqual`",
|
|
"concise_description": "Object of class `FileSystemAssertsMixin` has no attribute `assertEqual`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 227,
|
|
"column": 9,
|
|
"stop_line": 227,
|
|
"stop_column": 22,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `setUp`",
|
|
"concise_description": "Object of class `object` has no attribute `setUp`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 230,
|
|
"column": 9,
|
|
"stop_line": 230,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `tearDown`",
|
|
"concise_description": "Object of class `object` has no attribute `tearDown`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 245,
|
|
"column": 9,
|
|
"stop_line": 245,
|
|
"stop_column": 22,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `setUp`",
|
|
"concise_description": "Object of class `object` has no attribute `setUp`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 248,
|
|
"column": 9,
|
|
"stop_line": 248,
|
|
"stop_column": 25,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `tearDown`",
|
|
"concise_description": "Object of class `object` has no attribute `tearDown`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 272,
|
|
"column": 16,
|
|
"stop_line": 272,
|
|
"stop_column": 74,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `name`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 353,
|
|
"column": 13,
|
|
"stop_line": 353,
|
|
"stop_column": 22,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `GetConsumerMixin` has no attribute `dirs`",
|
|
"concise_description": "Object of class `GetConsumerMixin` has no attribute `dirs`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 361,
|
|
"column": 13,
|
|
"stop_line": 361,
|
|
"stop_column": 22,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `GetConsumerMixin` has no attribute `dirs`",
|
|
"concise_description": "Object of class `GetConsumerMixin` has no attribute `dirs`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 369,
|
|
"column": 13,
|
|
"stop_line": 369,
|
|
"stop_column": 22,
|
|
"path": "src/documents/tests/utils.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `GetConsumerMixin` has no attribute `dirs`",
|
|
"concise_description": "Object of class `GetConsumerMixin` has no attribute `dirs`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 86,
|
|
"column": 34,
|
|
"stop_line": 86,
|
|
"stop_column": 45,
|
|
"path": "src/documents/utils.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`float | int | None` is not assignable to attribute `MAX_IMAGE_PIXELS` with type `int | None`",
|
|
"concise_description": "`float | int | None` is not assignable to attribute `MAX_IMAGE_PIXELS` with type `int | None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 289,
|
|
"column": 31,
|
|
"stop_line": 289,
|
|
"stop_column": 57,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `AbstractBaseUser` has no attribute `username`",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `username`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 290,
|
|
"column": 32,
|
|
"stop_line": 290,
|
|
"stop_column": 63,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `AbstractBaseUser` has no attribute `get_full_name`\nObject of class `AnonymousUser` has no attribute `get_full_name`",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `get_full_name`\nObject of class `AnonymousUser` has no attribute `get_full_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 345,
|
|
"column": 17,
|
|
"stop_line": 345,
|
|
"stop_column": 30,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BulkPermissionMixin` has no attribute `queryset`",
|
|
"concise_description": "Object of class `BulkPermissionMixin` has no attribute `queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 377,
|
|
"column": 19,
|
|
"stop_line": 377,
|
|
"stop_column": 49,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `get_serializer_context`",
|
|
"concise_description": "Object of class `object` has no attribute `get_serializer_context`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 380,
|
|
"column": 21,
|
|
"stop_line": 380,
|
|
"stop_column": 33,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BulkPermissionMixin` has no attribute `request`",
|
|
"concise_description": "Object of class `BulkPermissionMixin` has no attribute `request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 395,
|
|
"column": 24,
|
|
"stop_line": 395,
|
|
"stop_column": 44,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BulkPermissionMixin` has no attribute `filter_queryset`",
|
|
"concise_description": "Object of class `BulkPermissionMixin` has no attribute `filter_queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 395,
|
|
"column": 45,
|
|
"stop_line": 395,
|
|
"stop_column": 62,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BulkPermissionMixin` has no attribute `get_queryset`",
|
|
"concise_description": "Object of class `BulkPermissionMixin` has no attribute `get_queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 397,
|
|
"column": 22,
|
|
"stop_line": 397,
|
|
"stop_column": 35,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BulkPermissionMixin` has no attribute `queryset`",
|
|
"concise_description": "Object of class `BulkPermissionMixin` has no attribute `queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 499,
|
|
"column": 29,
|
|
"stop_line": 499,
|
|
"stop_column": 51,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `annotate`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `annotate`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 505,
|
|
"column": 25,
|
|
"stop_line": 505,
|
|
"stop_column": 47,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `annotate`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `annotate`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 930,
|
|
"column": 48,
|
|
"stop_line": 930,
|
|
"stop_column": 64,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Correspondent` has no attribute `document_count`",
|
|
"concise_description": "Object of class `Correspondent` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 933,
|
|
"column": 48,
|
|
"stop_line": 933,
|
|
"stop_column": 64,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Tag` has no attribute `document_count`",
|
|
"concise_description": "Object of class `Tag` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 936,
|
|
"column": 48,
|
|
"stop_line": 936,
|
|
"stop_column": 64,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentType` has no attribute `document_count`",
|
|
"concise_description": "Object of class `DocumentType` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 939,
|
|
"column": 48,
|
|
"stop_line": 939,
|
|
"stop_column": 64,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `StoragePath` has no attribute `document_count`",
|
|
"concise_description": "Object of class `StoragePath` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 942,
|
|
"column": 48,
|
|
"stop_line": 942,
|
|
"stop_column": 64,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `CustomField` has no attribute `document_count`",
|
|
"concise_description": "Object of class `CustomField` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1115,
|
|
"column": 9,
|
|
"stop_line": 1115,
|
|
"stop_column": 16,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `DocumentViewSet.destroy` overrides parent class `DestroyModelMixin` in an inconsistent manner\n `DocumentViewSet.destroy` has type `(self: DocumentViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseBadRequest | Response`, which is not assignable to `(self: DocumentViewSet, request: Request, *args: Any, **kwargs: Any) -> Response`, the type of `DestroyModelMixin.destroy`\n Signature mismatch:\n ...umentViewSet, request: Request, *args: Any, **kwargs: Any) -> Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ return type\n |\n parameters\n ...umentViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseBadRequest | Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ return type\n |\n parameters",
|
|
"concise_description": "Class member `DocumentViewSet.destroy` overrides parent class `DestroyModelMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1269,
|
|
"column": 37,
|
|
"stop_line": 1269,
|
|
"stop_column": 54,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `list[MetadataEntry] | list[Unknown] | None` is not assignable to parameter `original_metadata` with type `list[Unknown]` in function `documents.caching.set_metadata_cache`",
|
|
"concise_description": "Argument `list[MetadataEntry] | list[Unknown] | None` is not assignable to parameter `original_metadata` with type `list[Unknown]` in function `documents.caching.set_metadata_cache`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1383,
|
|
"column": 45,
|
|
"stop_line": 1383,
|
|
"stop_column": 57,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Any | None` is not assignable to parameter `filename` with type `str` in function `documents.plugins.date_parsing.base.DateParserPluginBase.parse`",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `filename` with type `str` in function `documents.plugins.date_parsing.base.DateParserPluginBase.parse`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1396,
|
|
"column": 61,
|
|
"stop_line": 1396,
|
|
"stop_column": 71,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_correspondents`",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_correspondents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1398,
|
|
"column": 56,
|
|
"stop_line": 1398,
|
|
"stop_column": 66,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_tags`",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1400,
|
|
"column": 63,
|
|
"stop_line": 1400,
|
|
"stop_column": 73,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_document_types`",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_document_types`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1403,
|
|
"column": 62,
|
|
"stop_line": 1403,
|
|
"stop_column": 72,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_storage_paths`",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_storage_paths`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1517,
|
|
"column": 21,
|
|
"stop_line": 1517,
|
|
"stop_column": 48,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `log_create`",
|
|
"concise_description": "Object of class `Manager` has no attribute `log_create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1559,
|
|
"column": 17,
|
|
"stop_line": 1559,
|
|
"stop_column": 44,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `log_create`",
|
|
"concise_description": "Object of class `Manager` has no attribute `log_create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1586,
|
|
"column": 5,
|
|
"stop_line": 1586,
|
|
"stop_column": 62,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-specialization",
|
|
"description": "`(self: Self@DocumentViewSet, request: Unknown, pk: Unknown | None = None) -> HttpResponseForbidden | Response | None` is not assignable to upper bound `(...) -> HttpResponseBase` of type variable `_View`",
|
|
"concise_description": "`(self: Self@DocumentViewSet, request: Unknown, pk: Unknown | None = None) -> HttpResponseForbidden | Response | None` is not assignable to upper bound `(...) -> HttpResponseBase` of type variable `_View`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1643,
|
|
"column": 26,
|
|
"stop_line": 1643,
|
|
"stop_column": 57,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `get_for_object`",
|
|
"concise_description": "Object of class `Manager` has no attribute `get_for_object`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1649,
|
|
"column": 22,
|
|
"stop_line": 1649,
|
|
"stop_column": 54,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `get_for_objects`",
|
|
"concise_description": "Object of class `Manager` has no attribute `get_for_objects`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1650,
|
|
"column": 13,
|
|
"stop_line": 1650,
|
|
"stop_column": 30,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1688,
|
|
"column": 36,
|
|
"stop_line": 1688,
|
|
"stop_column": 64,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-argument",
|
|
"description": "Missing argument `request` in function `DocumentViewSet.email_documents`",
|
|
"concise_description": "Missing argument `request` in function `DocumentViewSet.email_documents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1728,
|
|
"column": 30,
|
|
"stop_line": 1728,
|
|
"stop_column": 45,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `path` with type `Path` in function `documents.mail.EmailAttachment.__init__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `Path` in function `documents.mail.EmailAttachment.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1897,
|
|
"column": 13,
|
|
"stop_line": 1897,
|
|
"stop_column": 40,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `log_create`",
|
|
"concise_description": "Object of class `Manager` has no attribute `log_create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1976,
|
|
"column": 13,
|
|
"stop_line": 1976,
|
|
"stop_column": 40,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `log_create`",
|
|
"concise_description": "Object of class `Manager` has no attribute `log_create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2052,
|
|
"column": 70,
|
|
"stop_line": 2052,
|
|
"stop_column": 79,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `QuerySet[Any, Any] | list[Document]` is not assignable to parameter `documents` with type `list[Document]` in function `paperless_ai.chat.stream_chat_with_documents`",
|
|
"concise_description": "Argument `QuerySet[Any, Any] | list[Document]` is not assignable to parameter `documents` with type `list[Document]` in function `paperless_ai.chat.stream_chat_with_documents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2121,
|
|
"column": 9,
|
|
"stop_line": 2121,
|
|
"stop_column": 13,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `UnifiedSearchViewSet.list` overrides parent class `DocumentViewSet` in an inconsistent manner\n `UnifiedSearchViewSet.list` has type `(self: UnifiedSearchViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseBadRequest | HttpResponseForbidden | Response`, which is not assignable to `(self: UnifiedSearchViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> Response`, the type of `DocumentViewSet.list`\n Signature mismatch:\n ...s: Unknown, **kwargs: Unknown) -> Response: ...\n ^ return type\n ...s: Unknown, **kwargs: Unknown) -> HttpResponseBadRequest | HttpResponseForbidden | Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return type",
|
|
"concise_description": "Class member `UnifiedSearchViewSet.list` overrides parent class `DocumentViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2160,
|
|
"column": 17,
|
|
"stop_line": 2160,
|
|
"stop_column": 45,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BasePagination` has no attribute `get_page_size`\nObject of class `NoneType` has no attribute `get_page_size`",
|
|
"concise_description": "Object of class `BasePagination` has no attribute `get_page_size`\nObject of class `NoneType` has no attribute `get_page_size`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2160,
|
|
"column": 58,
|
|
"stop_line": 2160,
|
|
"stop_column": 82,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BasePagination` has no attribute `page_size`\nObject of class `NoneType` has no attribute `page_size`",
|
|
"concise_description": "Object of class `BasePagination` has no attribute `page_size`\nObject of class `NoneType` has no attribute `page_size`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2298,
|
|
"column": 43,
|
|
"stop_line": 2298,
|
|
"stop_column": 45,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `TantivyRelevanceList` is not assignable to parameter `queryset` with type `QuerySet[Any, @_]` in function `rest_framework.generics.GenericAPIView.paginate_queryset`",
|
|
"concise_description": "Argument `TantivyRelevanceList` is not assignable to parameter `queryset` with type `QuerySet[Any, @_]` in function `rest_framework.generics.GenericAPIView.paginate_queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2343,
|
|
"column": 25,
|
|
"stop_line": 2343,
|
|
"stop_column": 36,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`+` is not supported between `None` and `Literal[1]`\n Argument `None` is not assignable to parameter `value` with type `int` in function `int.__radd__`",
|
|
"concise_description": "`+` is not supported between `None` and `Literal[1]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2572,
|
|
"column": 18,
|
|
"stop_line": 2572,
|
|
"stop_column": 35,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentSelectionMixin._resolve_document_ids`",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentSelectionMixin._resolve_document_ids`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2593,
|
|
"column": 18,
|
|
"stop_line": 2593,
|
|
"stop_column": 22,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentOperationPermissionMixin._has_document_permissions`",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentOperationPermissionMixin._has_document_permissions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2676,
|
|
"column": 18,
|
|
"stop_line": 2676,
|
|
"stop_column": 22,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentSelectionMixin._resolve_document_ids`",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentSelectionMixin._resolve_document_ids`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2688,
|
|
"column": 18,
|
|
"stop_line": 2688,
|
|
"stop_column": 22,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentOperationPermissionMixin._has_document_permissions`",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentOperationPermissionMixin._has_document_permissions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2717,
|
|
"column": 33,
|
|
"stop_line": 2717,
|
|
"stop_column": 46,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`old_documents` may be uninitialized",
|
|
"concise_description": "`old_documents` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2727,
|
|
"column": 21,
|
|
"stop_line": 2727,
|
|
"stop_column": 48,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Manager` has no attribute `log_create`",
|
|
"concise_description": "Object of class `Manager` has no attribute `log_create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3108,
|
|
"column": 52,
|
|
"stop_line": 3108,
|
|
"stop_column": 68,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Correspondent` has no attribute `document_count`",
|
|
"concise_description": "Object of class `Correspondent` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3112,
|
|
"column": 52,
|
|
"stop_line": 3112,
|
|
"stop_column": 68,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Tag` has no attribute `document_count`",
|
|
"concise_description": "Object of class `Tag` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3115,
|
|
"column": 52,
|
|
"stop_line": 3115,
|
|
"stop_column": 68,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentType` has no attribute `document_count`",
|
|
"concise_description": "Object of class `DocumentType` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3118,
|
|
"column": 52,
|
|
"stop_line": 3118,
|
|
"stop_column": 68,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `StoragePath` has no attribute `document_count`",
|
|
"concise_description": "Object of class `StoragePath` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3122,
|
|
"column": 52,
|
|
"stop_line": 3122,
|
|
"stop_column": 68,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `CustomField` has no attribute `document_count`",
|
|
"concise_description": "Object of class `CustomField` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3175,
|
|
"column": 65,
|
|
"stop_line": 3175,
|
|
"stop_column": 69,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `AbstractBaseUser | AnonymousUser | None` is not assignable to parameter `user` with type `AbstractBaseUser | None` in function `documents.search._backend.TantivyBackend.autocomplete`",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser | None` is not assignable to parameter `user` with type `AbstractBaseUser | None` in function `documents.search._backend.TantivyBackend.autocomplete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3906,
|
|
"column": 9,
|
|
"stop_line": 3906,
|
|
"stop_column": 29,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `TasksViewSet.get_serializer_class` overrides parent class `ReadOnlyModelViewSet` in an inconsistent manner\n `TasksViewSet.get_serializer_class` has type `(self: TasksViewSet) -> type[TaskSerializerV10] | type[TaskSerializerV9]`, which is not assignable to `(self: TasksViewSet) -> type[BaseSerializer[PaperlessTask]]`, the type of `ReadOnlyModelViewSet.get_serializer_class`\n Signature mismatch:\n expected: def get_serializer_class(self: TasksViewSet) -> type[BaseSerializer[PaperlessTask]]: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return type\n found: def get_serializer_class(self: TasksViewSet) -> type[TaskSerializerV10] | type[TaskSerializerV9]: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return type",
|
|
"concise_description": "Class member `TasksViewSet.get_serializer_class` overrides parent class `ReadOnlyModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3914,
|
|
"column": 12,
|
|
"stop_line": 3914,
|
|
"stop_column": 38,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `AbstractBaseUser` has no attribute `is_staff`",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `is_staff`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 3998,
|
|
"column": 44,
|
|
"stop_line": 3998,
|
|
"stop_column": 48,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `QuerySet[PaperlessTask, dict[str, Any]]` is not assignable to parameter `instance` with type `dict[str, Any] | None` in function `rest_framework.serializers.BaseSerializer.__init__`",
|
|
"concise_description": "Argument `QuerySet[PaperlessTask, dict[str, Any]]` is not assignable to parameter `instance` with type `dict[str, Any] | None` in function `rest_framework.serializers.BaseSerializer.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4352,
|
|
"column": 24,
|
|
"stop_line": 4352,
|
|
"stop_column": 51,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BaseSerializer` has no attribute `get_object_class`",
|
|
"concise_description": "Object of class `BaseSerializer` has no attribute `get_object_class`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4371,
|
|
"column": 17,
|
|
"stop_line": 4371,
|
|
"stop_column": 21,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User | None` in function `documents.permissions.get_objects_for_user_owner_aware`",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User | None` in function `documents.permissions.get_objects_for_user_owner_aware`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4396,
|
|
"column": 16,
|
|
"stop_line": 4396,
|
|
"stop_column": 33,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4398,
|
|
"column": 25,
|
|
"stop_line": 4398,
|
|
"stop_column": 38,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `AbstractBaseUser` has no attribute `has_perm`",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `has_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4453,
|
|
"column": 9,
|
|
"stop_line": 4453,
|
|
"stop_column": 23,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `WorkflowTriggerViewSet.partial_update` overrides parent class `ModelViewSet` in an inconsistent manner\n `WorkflowTriggerViewSet.partial_update` has type `(self: WorkflowTriggerViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseBadRequest | Response`, which is not assignable to `(self: WorkflowTriggerViewSet, request: Request, *args: Any, **kwargs: Any) -> Response`, the type of `ModelViewSet.partial_update`\n Signature mismatch:\n ...iggerViewSet, request: Request, *args: Any, **kwargs: Any) -> Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ return type\n |\n parameters\n ...iggerViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseBadRequest | Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ return type\n |\n parameters",
|
|
"concise_description": "Class member `WorkflowTriggerViewSet.partial_update` overrides parent class `ModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4478,
|
|
"column": 9,
|
|
"stop_line": 4478,
|
|
"stop_column": 23,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `WorkflowActionViewSet.partial_update` overrides parent class `ModelViewSet` in an inconsistent manner\n `WorkflowActionViewSet.partial_update` has type `(self: WorkflowActionViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseBadRequest | Response`, which is not assignable to `(self: WorkflowActionViewSet, request: Request, *args: Any, **kwargs: Any) -> Response`, the type of `ModelViewSet.partial_update`\n Signature mismatch:\n ...ctionViewSet, request: Request, *args: Any, **kwargs: Any) -> Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ return type\n |\n parameters\n ...ctionViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseBadRequest | Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ return type\n |\n parameters",
|
|
"concise_description": "Class member `WorkflowActionViewSet.partial_update` overrides parent class `ModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4690,
|
|
"column": 36,
|
|
"stop_line": 4690,
|
|
"stop_column": 52,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `keys`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `keys`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4691,
|
|
"column": 33,
|
|
"stop_line": 4691,
|
|
"stop_column": 56,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "`None` is not subscriptable",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4816,
|
|
"column": 40,
|
|
"stop_line": 4816,
|
|
"stop_column": 54,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`all_migrations` may be uninitialized",
|
|
"concise_description": "`all_migrations` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4824,
|
|
"column": 38,
|
|
"stop_line": 4824,
|
|
"stop_column": 51,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`celery_active` may be uninitialized",
|
|
"concise_description": "`celery_active` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 4893,
|
|
"column": 16,
|
|
"stop_line": 4893,
|
|
"stop_column": 31,
|
|
"path": "src/documents/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `app_logo`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `app_logo`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 38,
|
|
"column": 22,
|
|
"stop_line": 38,
|
|
"stop_column": 36,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `title`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 39,
|
|
"column": 80,
|
|
"stop_line": 39,
|
|
"stop_column": 91,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `pk`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 40,
|
|
"column": 30,
|
|
"stop_line": 40,
|
|
"stop_column": 57,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `name`",
|
|
"concise_description": "Object of class `object` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 41,
|
|
"column": 16,
|
|
"stop_line": 41,
|
|
"stop_column": 38,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `correspondent`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 43,
|
|
"column": 30,
|
|
"stop_line": 43,
|
|
"stop_column": 57,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `name`",
|
|
"concise_description": "Object of class `object` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 44,
|
|
"column": 16,
|
|
"stop_line": 44,
|
|
"stop_column": 38,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `document_type`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `document_type`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 46,
|
|
"column": 31,
|
|
"stop_line": 46,
|
|
"stop_column": 54,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `username`",
|
|
"concise_description": "Object of class `object` has no attribute `username`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 46,
|
|
"column": 58,
|
|
"stop_line": 46,
|
|
"stop_column": 72,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `owner`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `owner`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 47,
|
|
"column": 25,
|
|
"stop_line": 47,
|
|
"stop_column": 51,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `original_filename`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `original_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 48,
|
|
"column": 33,
|
|
"stop_line": 48,
|
|
"stop_column": 50,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `filename`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 49,
|
|
"column": 41,
|
|
"stop_line": 49,
|
|
"stop_column": 55,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `added`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `added`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 50,
|
|
"column": 24,
|
|
"stop_line": 50,
|
|
"stop_column": 40,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `created`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `created`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 51,
|
|
"column": 19,
|
|
"stop_line": 51,
|
|
"stop_column": 30,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ConsumableDocument` has no attribute `pk`",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 70,
|
|
"column": 42,
|
|
"stop_line": 70,
|
|
"stop_column": 64,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `original_file`",
|
|
"concise_description": "Object of class `Document` has no attribute `original_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 108,
|
|
"column": 13,
|
|
"stop_line": 108,
|
|
"stop_column": 33,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `object | str` is not assignable to parameter `text` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"concise_description": "Argument `object | str` is not assignable to parameter `text` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 120,
|
|
"column": 12,
|
|
"stop_line": 120,
|
|
"stop_column": 32,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `subject`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `subject`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 125,
|
|
"column": 13,
|
|
"stop_line": 125,
|
|
"stop_column": 30,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `object | str` is not assignable to parameter `text` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"concise_description": "Argument `object | str` is not assignable to parameter `text` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 137,
|
|
"column": 12,
|
|
"stop_line": 137,
|
|
"stop_column": 29,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `body`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `body`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 143,
|
|
"column": 12,
|
|
"stop_line": 143,
|
|
"stop_column": 41,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `include_document`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `include_document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 176,
|
|
"column": 16,
|
|
"stop_line": 176,
|
|
"stop_column": 31,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `to`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `to`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 180,
|
|
"column": 59,
|
|
"stop_line": 180,
|
|
"stop_column": 74,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `to`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `to`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 199,
|
|
"column": 12,
|
|
"stop_line": 199,
|
|
"stop_column": 37,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `use_params`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `use_params`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 200,
|
|
"column": 16,
|
|
"stop_line": 200,
|
|
"stop_column": 37,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `params`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `params`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 202,
|
|
"column": 39,
|
|
"stop_line": 202,
|
|
"stop_column": 66,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `items`",
|
|
"concise_description": "Object of class `object` has no attribute `items`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 221,
|
|
"column": 14,
|
|
"stop_line": 221,
|
|
"stop_column": 33,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `body`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `body`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 223,
|
|
"column": 17,
|
|
"stop_line": 223,
|
|
"stop_column": 36,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `object | str` is not assignable to parameter `text` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"concise_description": "Argument `object | str` is not assignable to parameter `text` with type `str` in function `documents.templating.workflows.parse_w_workflow_placeholders`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 236,
|
|
"column": 12,
|
|
"stop_line": 236,
|
|
"stop_column": 34,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `headers`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 238,
|
|
"column": 55,
|
|
"stop_line": 238,
|
|
"stop_column": 83,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `object` has no attribute `items`",
|
|
"concise_description": "Object of class `object` has no attribute `items`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 245,
|
|
"column": 12,
|
|
"stop_line": 245,
|
|
"stop_column": 43,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `include_document`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `include_document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 258,
|
|
"column": 24,
|
|
"stop_line": 258,
|
|
"stop_column": 42,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `url`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 262,
|
|
"column": 28,
|
|
"stop_line": 262,
|
|
"stop_column": 50,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `as_json`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `as_json`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 266,
|
|
"column": 27,
|
|
"stop_line": 266,
|
|
"stop_column": 45,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `url`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 302,
|
|
"column": 43,
|
|
"stop_line": 302,
|
|
"stop_column": 65,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Unknown | None` is not assignable to `Document`",
|
|
"concise_description": "`Unknown | None` is not assignable to `Document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 26,
|
|
"column": 8,
|
|
"stop_line": 26,
|
|
"stop_column": 30,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_tags`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 64,
|
|
"column": 13,
|
|
"stop_line": 64,
|
|
"stop_column": 41,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_view_users`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_view_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 65,
|
|
"column": 13,
|
|
"stop_line": 65,
|
|
"stop_column": 42,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_view_groups`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_view_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 66,
|
|
"column": 13,
|
|
"stop_line": 66,
|
|
"stop_column": 43,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_change_users`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_change_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 67,
|
|
"column": 13,
|
|
"stop_line": 67,
|
|
"stop_column": 44,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_change_groups`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_change_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 86,
|
|
"column": 8,
|
|
"stop_line": 86,
|
|
"stop_column": 39,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_custom_fields`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 89,
|
|
"column": 27,
|
|
"stop_line": 89,
|
|
"stop_column": 42,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str` is not assignable to parameter `data_type` with type `CustomField.FieldDataType` in function `documents.models.CustomFieldInstance.get_value_field_name`",
|
|
"concise_description": "Argument `str` is not assignable to parameter `data_type` with type `CustomField.FieldDataType` in function `documents.models.CustomFieldInstance.get_value_field_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 92,
|
|
"column": 35,
|
|
"stop_line": 92,
|
|
"stop_column": 73,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 122,
|
|
"column": 8,
|
|
"stop_line": 122,
|
|
"stop_column": 30,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_tags`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 149,
|
|
"column": 13,
|
|
"stop_line": 149,
|
|
"stop_column": 41,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_view_users`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_view_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 150,
|
|
"column": 13,
|
|
"stop_line": 150,
|
|
"stop_column": 42,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_view_groups`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_view_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 151,
|
|
"column": 13,
|
|
"stop_line": 151,
|
|
"stop_column": 43,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_change_users`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_change_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 152,
|
|
"column": 13,
|
|
"stop_line": 152,
|
|
"stop_column": 44,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_change_groups`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_change_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 180,
|
|
"column": 8,
|
|
"stop_line": 180,
|
|
"stop_column": 39,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_assign_custom_fields`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 185,
|
|
"column": 27,
|
|
"stop_line": 185,
|
|
"stop_column": 65,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 251,
|
|
"column": 13,
|
|
"stop_line": 251,
|
|
"stop_column": 41,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_view_users`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_view_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 252,
|
|
"column": 13,
|
|
"stop_line": 252,
|
|
"stop_column": 42,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_view_groups`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_view_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 253,
|
|
"column": 13,
|
|
"stop_line": 253,
|
|
"stop_column": 43,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_change_users`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_change_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 254,
|
|
"column": 13,
|
|
"stop_line": 254,
|
|
"stop_column": 44,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_change_groups`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_change_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 267,
|
|
"column": 9,
|
|
"stop_line": 267,
|
|
"stop_column": 74,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"concise_description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 268,
|
|
"column": 10,
|
|
"stop_line": 268,
|
|
"stop_column": 41,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_custom_fields`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 269,
|
|
"column": 9,
|
|
"stop_line": 272,
|
|
"stop_column": 22,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"concise_description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 325,
|
|
"column": 13,
|
|
"stop_line": 325,
|
|
"stop_column": 41,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_view_users`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_view_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 326,
|
|
"column": 13,
|
|
"stop_line": 326,
|
|
"stop_column": 42,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_view_groups`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_view_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 327,
|
|
"column": 13,
|
|
"stop_line": 327,
|
|
"stop_column": 43,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_change_users`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_change_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 328,
|
|
"column": 13,
|
|
"stop_line": 328,
|
|
"stop_column": 44,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_change_groups`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_change_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 350,
|
|
"column": 10,
|
|
"stop_line": 350,
|
|
"stop_column": 41,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `WorkflowAction` has no attribute `has_remove_custom_fields`",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 23,
|
|
"column": 9,
|
|
"stop_line": 23,
|
|
"stop_column": 27,
|
|
"path": "src/paperless/adapter.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `CustomAccountAdapter.is_open_for_signup` overrides parent class `DefaultAccountAdapter` in an inconsistent manner\n `CustomAccountAdapter.is_open_for_signup` has type `(self: CustomAccountAdapter, request: Unknown) -> bool | Any`, which is not assignable to `(self: CustomAccountAdapter, request: Unknown) -> Literal[True]`, the type of `DefaultAccountAdapter.is_open_for_signup`\n Signature mismatch:\n expected: def is_open_for_signup(self: CustomAccountAdapter, request: Unknown) -> Literal[True]: ...\n ^^^^^^^^^^^^^ return type\n found: def is_open_for_signup(self: CustomAccountAdapter, request: Unknown) -> bool | Any: ...\n ^^^^^^^^^^ return type",
|
|
"concise_description": "Class member `CustomAccountAdapter.is_open_for_signup` overrides parent class `DefaultAccountAdapter` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 58,
|
|
"column": 26,
|
|
"stop_line": 58,
|
|
"stop_column": 50,
|
|
"path": "src/paperless/adapter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get_host`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get_host`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 63,
|
|
"column": 31,
|
|
"stop_line": 63,
|
|
"stop_column": 55,
|
|
"path": "src/paperless/adapter.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get_host`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get_host`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 109,
|
|
"column": 9,
|
|
"stop_line": 109,
|
|
"stop_column": 27,
|
|
"path": "src/paperless/adapter.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `CustomSocialAccountAdapter.is_open_for_signup` overrides parent class `DefaultSocialAccountAdapter` in an inconsistent manner\n `CustomSocialAccountAdapter.is_open_for_signup` has type `(self: CustomSocialAccountAdapter, request: Unknown, sociallogin: Unknown) -> bool | Any`, which is not assignable to `(self: CustomSocialAccountAdapter, request: Unknown, sociallogin: Unknown) -> Literal[True]`, the type of `DefaultSocialAccountAdapter.is_open_for_signup`\n Signature mismatch:\n expected: def is_open_for_signup(self: CustomSocialAccountAdapter, request: Unknown, sociallogin: Unknown) -> Literal[True]: ...\n ^^^^^^^^^^^^^ return type\n found: def is_open_for_signup(self: CustomSocialAccountAdapter, request: Unknown, sociallogin: Unknown) -> bool | Any: ...\n ^^^^^^^^^^ return type",
|
|
"concise_description": "Class member `CustomSocialAccountAdapter.is_open_for_signup` overrides parent class `DefaultSocialAccountAdapter` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 30,
|
|
"column": 24,
|
|
"stop_line": 30,
|
|
"stop_column": 40,
|
|
"path": "src/paperless/admin.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 33,
|
|
"column": 17,
|
|
"stop_line": 33,
|
|
"stop_column": 29,
|
|
"path": "src/paperless/admin.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PaperlessUserForm` has no attribute `request`",
|
|
"concise_description": "Object of class `PaperlessUserForm` has no attribute `request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 48,
|
|
"column": 9,
|
|
"stop_line": 48,
|
|
"stop_column": 21,
|
|
"path": "src/paperless/admin.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Missing positional argument `value` in function `object.__setattr__`",
|
|
"concise_description": "Missing positional argument `value` in function `object.__setattr__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 48,
|
|
"column": 9,
|
|
"stop_line": 48,
|
|
"stop_column": 21,
|
|
"path": "src/paperless/admin.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['request']` is not assignable to parameter `self` with type `ModelForm[Unknown]` in function `object.__setattr__`",
|
|
"concise_description": "Argument `Literal['request']` is not assignable to parameter `self` with type `ModelForm[Unknown]` in function `object.__setattr__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 65,
|
|
"column": 20,
|
|
"stop_line": 65,
|
|
"stop_column": 46,
|
|
"path": "src/paperless/auth.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `Awaitable[HttpResponseBase] | HttpResponseBase` is not assignable to declared return type `None`",
|
|
"concise_description": "Returned type `Awaitable[HttpResponseBase] | HttpResponseBase` is not assignable to declared return type `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 66,
|
|
"column": 16,
|
|
"stop_line": 66,
|
|
"stop_column": 41,
|
|
"path": "src/paperless/auth.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `Awaitable[HttpResponseBase] | HttpResponseBase` is not assignable to declared return type `None`",
|
|
"concise_description": "Returned type `Awaitable[HttpResponseBase] | HttpResponseBase` is not assignable to declared return type `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 51,
|
|
"column": 5,
|
|
"stop_line": 51,
|
|
"stop_column": 24,
|
|
"path": "src/paperless/celery.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `(obj: object) -> bytes` is not assignable to parameter `encoder` with type `((Any) -> str) | None` in function `kombu.serialization.register`",
|
|
"concise_description": "Argument `(obj: object) -> bytes` is not assignable to parameter `encoder` with type `((Any) -> str) | None` in function `kombu.serialization.register`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 52,
|
|
"column": 5,
|
|
"stop_line": 52,
|
|
"stop_column": 24,
|
|
"path": "src/paperless/celery.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `(payload: bytes) -> object` is not assignable to parameter `decoder` with type `((str) -> Any) | None` in function `kombu.serialization.register`",
|
|
"concise_description": "Argument `(payload: bytes) -> object` is not assignable to parameter `decoder` with type `((str) -> Any) | None` in function `kombu.serialization.register`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 91,
|
|
"column": 12,
|
|
"stop_line": 91,
|
|
"stop_column": 26,
|
|
"path": "src/paperless/checks.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"concise_description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 177,
|
|
"column": 9,
|
|
"stop_line": 179,
|
|
"stop_column": 40,
|
|
"path": "src/paperless/checks.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `list[Error]` is not assignable to declared return type `list[Error | Warning]`",
|
|
"concise_description": "Returned type `list[Error]` is not assignable to declared return type `list[Error | Warning]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 196,
|
|
"column": 12,
|
|
"stop_line": 196,
|
|
"stop_column": 18,
|
|
"path": "src/paperless/checks.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"concise_description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 345,
|
|
"column": 26,
|
|
"stop_line": 348,
|
|
"stop_column": 6,
|
|
"path": "src/paperless/checks.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `subprocess.run` called with arguments: (list[str | None], capture_output=Literal[True])\n Possible overloads:\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: bool | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: str | None = None, errors: str | None = None, input: str | None = None, text: Literal[True], timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[str]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: bool | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: str, errors: str | None = None, input: str | None = None, text: bool | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[str]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: bool | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: str | None = None, errors: str, input: str | None = None, text: bool | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[str]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, *, universal_newlines: Literal[True], startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., capture_output: bool = False, check: bool = False, encoding: str | None = None, errors: str | None = None, input: str | None = None, text: bool | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[str]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: Literal[False] | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: None = None, errors: None = None, input: Buffer | None = None, text: Literal[False] | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[bytes] [closest match]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: bool | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: str | None = None, errors: str | None = None, input: Buffer | str | None = None, text: bool | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[Any]",
|
|
"concise_description": "No matching overload found for function `subprocess.run` called with arguments: (list[str | None], capture_output=Literal[True])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 367,
|
|
"column": 16,
|
|
"stop_line": 367,
|
|
"stop_column": 20,
|
|
"path": "src/paperless/checks.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"concise_description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 379,
|
|
"column": 21,
|
|
"stop_line": 383,
|
|
"stop_column": 22,
|
|
"path": "src/paperless/checks.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Error` is not assignable to parameter `object` with type `Warning` in function `list.append`",
|
|
"concise_description": "Argument `Error` is not assignable to parameter `object` with type `Warning` in function `list.append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 386,
|
|
"column": 12,
|
|
"stop_line": 386,
|
|
"stop_column": 16,
|
|
"path": "src/paperless/checks.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"concise_description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 27,
|
|
"column": 16,
|
|
"stop_line": 27,
|
|
"stop_column": 26,
|
|
"path": "src/paperless/config.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `ApplicationConfiguration | None` is not assignable to declared return type `ApplicationConfiguration`",
|
|
"concise_description": "Returned type `ApplicationConfiguration | None` is not assignable to declared return type `ApplicationConfiguration`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 41,
|
|
"column": 28,
|
|
"stop_line": 43,
|
|
"stop_column": 10,
|
|
"path": "src/paperless/config.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`OutputTypeChoices | str` is not assignable to attribute `output_type` with type `OutputTypeChoices`",
|
|
"concise_description": "`OutputTypeChoices | str` is not assignable to attribute `output_type` with type `OutputTypeChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 75,
|
|
"column": 21,
|
|
"stop_line": 75,
|
|
"stop_column": 70,
|
|
"path": "src/paperless/config.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`ModeChoices | str` is not assignable to attribute `mode` with type `ModeChoices`",
|
|
"concise_description": "`ModeChoices | str` is not assignable to attribute `mode` with type `ModeChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 77,
|
|
"column": 13,
|
|
"stop_line": 78,
|
|
"stop_column": 78,
|
|
"path": "src/paperless/config.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`ArchiveFileGenerationChoices | str` is not assignable to attribute `archive_file_generation` with type `ArchiveFileGenerationChoices`",
|
|
"concise_description": "`ArchiveFileGenerationChoices | str` is not assignable to attribute `archive_file_generation` with type `ArchiveFileGenerationChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 81,
|
|
"column": 22,
|
|
"stop_line": 81,
|
|
"stop_column": 82,
|
|
"path": "src/paperless/config.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`CleanChoices | str` is not assignable to attribute `clean` with type `CleanChoices`",
|
|
"concise_description": "`CleanChoices | str` is not assignable to attribute `clean` with type `CleanChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 97,
|
|
"column": 13,
|
|
"stop_line": 98,
|
|
"stop_column": 75,
|
|
"path": "src/paperless/config.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`ColorConvertChoices | str` is not assignable to attribute `color_conversion_strategy` with type `ColorConvertChoices`",
|
|
"concise_description": "`ColorConvertChoices | str` is not assignable to attribute `color_conversion_strategy` with type `ColorConvertChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 184,
|
|
"column": 26,
|
|
"stop_line": 184,
|
|
"stop_column": 54,
|
|
"path": "src/paperless/config.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`str | None` is not assignable to attribute `app_title` with type `str`",
|
|
"concise_description": "`str | None` is not assignable to attribute `app_title` with type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 185,
|
|
"column": 25,
|
|
"stop_line": 185,
|
|
"stop_column": 81,
|
|
"path": "src/paperless/config.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Unknown | None` is not assignable to attribute `app_logo` with type `str`",
|
|
"concise_description": "`Unknown | None` is not assignable to attribute `app_logo` with type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 31,
|
|
"column": 12,
|
|
"stop_line": 31,
|
|
"stop_column": 29,
|
|
"path": "src/paperless/consumers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 34,
|
|
"column": 22,
|
|
"stop_line": 34,
|
|
"stop_column": 33,
|
|
"path": "src/paperless/consumers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `AbstractBaseUser` has no attribute `groups`",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 49,
|
|
"column": 35,
|
|
"stop_line": 49,
|
|
"stop_column": 48,
|
|
"path": "src/paperless/consumers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `ProgressUpdateData` is not assignable to parameter `data` with type `PermissionsData` in function `StatusConsumer._can_view`\n Field `owner_id` is `NotRequired` and read-write in `PermissionsData`, so it cannot be required in `ProgressUpdateData`",
|
|
"concise_description": "Argument `ProgressUpdateData` is not assignable to parameter `data` with type `PermissionsData` in function `StatusConsumer._can_view`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 61,
|
|
"column": 35,
|
|
"stop_line": 61,
|
|
"stop_column": 48,
|
|
"path": "src/paperless/consumers.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `DocumentUpdatedData` is not assignable to parameter `data` with type `PermissionsData` in function `StatusConsumer._can_view`\n Field `owner_id` is `NotRequired` and read-write in `PermissionsData`, so it cannot be required in `DocumentUpdatedData`",
|
|
"concise_description": "Argument `DocumentUpdatedData` is not assignable to parameter `data` with type `PermissionsData` in function `StatusConsumer._can_view`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 31,
|
|
"column": 12,
|
|
"stop_line": 31,
|
|
"stop_column": 15,
|
|
"path": "src/paperless/network.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `list[int | str]` is not assignable to declared return type `list[str]`",
|
|
"concise_description": "Returned type `list[int | str]` is not assignable to declared return type `list[str]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 404,
|
|
"column": 17,
|
|
"stop_line": 404,
|
|
"stop_column": 70,
|
|
"path": "src/paperless/parsers/tesseract.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `bytes | None` is not assignable to parameter `data` with type `Buffer` in function `pathlib.Path.write_bytes`\n Protocol `Buffer` requires attribute `__buffer__`",
|
|
"concise_description": "Argument `bytes | None` is not assignable to parameter `data` with type `Buffer` in function `pathlib.Path.write_bytes`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 61,
|
|
"column": 38,
|
|
"stop_line": 61,
|
|
"stop_column": 56,
|
|
"path": "src/paperless/parsers/utils.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `pikepdf._core.Object.get` called with arguments: (Literal['/Marked'], Literal[False])\n Possible overloads:\n (key: Name | int | str, default: T | None = ...) -> Object | T | None [closest match]\n (path: _NamePath, default: T | None = ...) -> Object | T | None",
|
|
"concise_description": "No matching overload found for function `pikepdf._core.Object.get` called with arguments: (Literal['/Marked'], Literal[False])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 39,
|
|
"column": 16,
|
|
"stop_line": 39,
|
|
"stop_column": 29,
|
|
"path": "src/paperless/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `PasswordValidationMixin` has no attribute `instance`",
|
|
"concise_description": "Object of class `PasswordValidationMixin` has no attribute `instance`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 93,
|
|
"column": 17,
|
|
"stop_line": 93,
|
|
"stop_column": 21,
|
|
"path": "src/paperless/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[User]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[User]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 153,
|
|
"column": 17,
|
|
"stop_line": 153,
|
|
"stop_column": 22,
|
|
"path": "src/paperless/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[Group]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[Group]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 165,
|
|
"column": 17,
|
|
"stop_line": 165,
|
|
"stop_column": 30,
|
|
"path": "src/paperless/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[SocialAccount]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[SocialAccount]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 199,
|
|
"column": 17,
|
|
"stop_line": 199,
|
|
"stop_column": 21,
|
|
"path": "src/paperless/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[User]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[User]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 222,
|
|
"column": 9,
|
|
"stop_line": 222,
|
|
"stop_column": 23,
|
|
"path": "src/paperless/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `ApplicationConfigurationSerializer.run_validation` overrides parent class `ModelSerializer` in an inconsistent manner\n `ApplicationConfigurationSerializer.run_validation` has type `(self: ApplicationConfigurationSerializer, data: Unknown) -> Any`, which is not assignable to `(self: ApplicationConfigurationSerializer, data: Any = ...) -> Any`, the type of `ModelSerializer.run_validation`\n Signature mismatch:\n expected: def run_validation(self: ApplicationConfigurationSerializer, data: Any = ...) -> Any: ...\n ^^^^^^^^^ parameters\n found: def run_validation(self: ApplicationConfigurationSerializer, data: Unknown) -> Any: ...\n ^^^^^^^ parameters",
|
|
"concise_description": "Class member `ApplicationConfigurationSerializer.run_validation` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 251,
|
|
"column": 28,
|
|
"stop_line": 251,
|
|
"stop_column": 43,
|
|
"path": "src/paperless/serialisers.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `UploadedFile` has no attribute `field_name`",
|
|
"concise_description": "Object of class `UploadedFile` has no attribute `field_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 295,
|
|
"column": 17,
|
|
"stop_line": 295,
|
|
"stop_column": 41,
|
|
"path": "src/paperless/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[ApplicationConfiguration]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[ApplicationConfiguration]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 277,
|
|
"column": 43,
|
|
"stop_line": 282,
|
|
"stop_column": 6,
|
|
"path": "src/paperless/settings/__init__.py",
|
|
"code": -2,
|
|
"name": "bad-typed-dict-key",
|
|
"description": "`dict[str, int | list[str] | str]` is not assignable to TypedDict key `CONFIG` with type `str`",
|
|
"concise_description": "`dict[str, int | list[str] | str]` is not assignable to TypedDict key `CONFIG` with type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 448,
|
|
"column": 30,
|
|
"stop_line": 448,
|
|
"stop_column": 52,
|
|
"path": "src/paperless/settings/__init__.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `object` with type `str` in function `list.append`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `object` with type `str` in function `list.append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1012,
|
|
"column": 39,
|
|
"stop_line": 1012,
|
|
"stop_column": 74,
|
|
"path": "src/paperless/settings/__init__.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `env_ignore` with type `str` in function `paperless.settings.custom.parse_ignore_dates`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `env_ignore` with type `str` in function `paperless.settings.custom.parse_ignore_dates`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 171,
|
|
"column": 27,
|
|
"stop_line": 171,
|
|
"stop_column": 42,
|
|
"path": "src/paperless/settings/custom.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `dict[str, float] | str` is not assignable to parameter `key` with type `str` in function `os.getenv`",
|
|
"concise_description": "Argument `dict[str, float] | str` is not assignable to parameter `key` with type `str` in function `os.getenv`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 179,
|
|
"column": 52,
|
|
"stop_line": 179,
|
|
"stop_column": 63,
|
|
"path": "src/paperless/settings/custom.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `dict` has no attribute `split`",
|
|
"concise_description": "Object of class `dict` has no attribute `split`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 185,
|
|
"column": 19,
|
|
"stop_line": 185,
|
|
"stop_column": 34,
|
|
"path": "src/paperless/settings/custom.py",
|
|
"code": -2,
|
|
"name": "invalid-argument",
|
|
"description": "Expected a mapping, got dict[str, float] | str",
|
|
"concise_description": "Expected a mapping, got dict[str, float] | str",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 771,
|
|
"column": 12,
|
|
"stop_line": 771,
|
|
"stop_column": 24,
|
|
"path": "src/paperless/tests/parsers/conftest.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `(**django_settings_overrides: Unknown) -> _GeneratorContextManager[RasterisedDocumentParser]` is not assignable to declared return type `(...) -> Generator[RasterisedDocumentParser]`\n Protocol `Generator` requires attribute `__next__`",
|
|
"concise_description": "Returned type `(**django_settings_overrides: Unknown) -> _GeneratorContextManager[RasterisedDocumentParser]` is not assignable to declared return type `(...) -> Generator[RasterisedDocumentParser]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 168,
|
|
"column": 45,
|
|
"stop_line": 168,
|
|
"stop_column": 49,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['na']` is not assignable to parameter `document_path` with type `Path` in function `paperless.parsers.mail.MailDocumentParser.extract_metadata`",
|
|
"concise_description": "Argument `Literal['na']` is not assignable to parameter `document_path` with type `Path` in function `paperless.parsers.mail.MailDocumentParser.extract_metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 372,
|
|
"column": 47,
|
|
"stop_line": 372,
|
|
"stop_column": 75,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `url`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 727,
|
|
"column": 20,
|
|
"stop_line": 727,
|
|
"stop_column": 31,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `url`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 25,
|
|
"column": 23,
|
|
"stop_line": 36,
|
|
"stop_column": 10,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser_live.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `subprocess.run` called with arguments: (list[str | None], check=Literal[True])\n Possible overloads:\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: bool | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: str | None = None, errors: str | None = None, input: str | None = None, text: Literal[True], timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[str]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: bool | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: str, errors: str | None = None, input: str | None = None, text: bool | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[str]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: bool | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: str | None = None, errors: str, input: str | None = None, text: bool | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[str]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, *, universal_newlines: Literal[True], startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., capture_output: bool = False, check: bool = False, encoding: str | None = None, errors: str | None = None, input: str | None = None, text: bool | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[str]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: Literal[False] | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: None = None, errors: None = None, input: Buffer | None = None, text: Literal[False] | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[bytes] [closest match]\n (args: _CMD, bufsize: int = -1, executable: PathLike[bytes] | PathLike[str] | bytes | str | None = None, stdin: _FILE = None, stdout: _FILE = None, stderr: _FILE = None, preexec_fn: (() -> object) | None = None, close_fds: bool = True, shell: bool = False, cwd: PathLike[bytes] | PathLike[str] | bytes | str | None = None, env: Mapping[bytes, StrOrBytesPath] | Mapping[str, StrOrBytesPath] | None = None, universal_newlines: bool | None = None, startupinfo: Any = None, creationflags: int = 0, restore_signals: bool = True, start_new_session: bool = False, pass_fds: Collection[int] = ..., *, capture_output: bool = False, check: bool = False, encoding: str | None = None, errors: str | None = None, input: Buffer | str | None = None, text: bool | None = None, timeout: float | None = None, user: int | str | None = None, group: int | str | None = None, extra_groups: Iterable[int | str] | None = None, umask: int = -1, pipesize: int = -1, process_group: int | None = None) -> CompletedProcess[Any]",
|
|
"concise_description": "No matching overload found for function `subprocess.run` called with arguments: (list[str | None], check=Literal[True])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 264,
|
|
"column": 37,
|
|
"stop_line": 264,
|
|
"stop_column": 49,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser_live.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `pdf_path` with type `Path` in function `extract_text`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `pdf_path` with type `Path` in function `extract_text`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 401,
|
|
"column": 42,
|
|
"stop_line": 401,
|
|
"stop_column": 46,
|
|
"path": "src/paperless/tests/parsers/test_parse_modes.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`str` is not assignable to attribute `mode` with type `ModeChoices`",
|
|
"concise_description": "`str` is not assignable to attribute `mode` with type `ModeChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 77,
|
|
"column": 34,
|
|
"stop_line": 77,
|
|
"stop_column": 36,
|
|
"path": "src/paperless/tests/parsers/test_remote_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-count",
|
|
"description": "Expected 1 more positional argument",
|
|
"concise_description": "Expected 1 more positional argument",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 28,
|
|
"column": 24,
|
|
"stop_line": 28,
|
|
"stop_column": 35,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['input.pdf']` is not assignable to parameter `input_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"concise_description": "Argument `Literal['input.pdf']` is not assignable to parameter `input_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 29,
|
|
"column": 25,
|
|
"stop_line": 29,
|
|
"stop_column": 37,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['output.pdf']` is not assignable to parameter `output_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"concise_description": "Argument `Literal['output.pdf']` is not assignable to parameter `output_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 30,
|
|
"column": 26,
|
|
"stop_line": 30,
|
|
"stop_column": 39,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['sidecar.txt']` is not assignable to parameter `sidecar_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"concise_description": "Argument `Literal['sidecar.txt']` is not assignable to parameter `sidecar_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 111,
|
|
"column": 28,
|
|
"stop_line": 111,
|
|
"stop_column": 39,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['input.pdf']` is not assignable to parameter `input_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"concise_description": "Argument `Literal['input.pdf']` is not assignable to parameter `input_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 112,
|
|
"column": 29,
|
|
"stop_line": 112,
|
|
"stop_column": 41,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['output.pdf']` is not assignable to parameter `output_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"concise_description": "Argument `Literal['output.pdf']` is not assignable to parameter `output_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 113,
|
|
"column": 30,
|
|
"stop_line": 113,
|
|
"stop_column": 43,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['sidecar.txt']` is not assignable to parameter `sidecar_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"concise_description": "Argument `Literal['sidecar.txt']` is not assignable to parameter `sidecar_file` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.construct_ocrmypdf_parameters`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 279,
|
|
"column": 38,
|
|
"stop_line": 279,
|
|
"stop_column": 75,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str` is not assignable to parameter `image` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.get_dpi`",
|
|
"concise_description": "Argument `str` is not assignable to parameter `image` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.get_dpi`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 290,
|
|
"column": 17,
|
|
"stop_line": 290,
|
|
"stop_column": 65,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str` is not assignable to parameter `image` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.calculate_a4_dpi`",
|
|
"concise_description": "Argument `str` is not assignable to parameter `image` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.calculate_a4_dpi`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 410,
|
|
"column": 13,
|
|
"stop_line": 410,
|
|
"stop_column": 40,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 427,
|
|
"column": 13,
|
|
"stop_line": 427,
|
|
"stop_column": 40,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 442,
|
|
"column": 13,
|
|
"stop_line": 442,
|
|
"stop_column": 40,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 455,
|
|
"column": 13,
|
|
"stop_line": 455,
|
|
"stop_column": 40,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 507,
|
|
"column": 13,
|
|
"stop_line": 507,
|
|
"stop_column": 40,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 523,
|
|
"column": 13,
|
|
"stop_line": 523,
|
|
"stop_column": 40,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 593,
|
|
"column": 42,
|
|
"stop_line": 593,
|
|
"stop_column": 46,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`str` is not assignable to attribute `mode` with type `ModeChoices`",
|
|
"concise_description": "`str` is not assignable to attribute `mode` with type `ModeChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1053,
|
|
"column": 13,
|
|
"stop_line": 1053,
|
|
"stop_column": 40,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `assert_ordered_substrings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1122,
|
|
"column": 14,
|
|
"stop_line": 1122,
|
|
"stop_column": 37,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__enter__`\n Did you mean `__iter__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1122,
|
|
"column": 14,
|
|
"stop_line": 1122,
|
|
"stop_column": 37,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__exit__`\n Did you mean `__next__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1149,
|
|
"column": 14,
|
|
"stop_line": 1149,
|
|
"stop_column": 56,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__enter__`\n Did you mean `__iter__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1149,
|
|
"column": 14,
|
|
"stop_line": 1149,
|
|
"stop_column": 56,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__exit__`\n Did you mean `__next__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1158,
|
|
"column": 14,
|
|
"stop_line": 1158,
|
|
"stop_column": 77,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__enter__`\n Did you mean `__iter__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1158,
|
|
"column": 14,
|
|
"stop_line": 1158,
|
|
"stop_column": 77,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__exit__`\n Did you mean `__next__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1167,
|
|
"column": 14,
|
|
"stop_line": 1167,
|
|
"stop_column": 77,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__enter__`\n Did you mean `__iter__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1167,
|
|
"column": 14,
|
|
"stop_line": 1167,
|
|
"stop_column": 77,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__exit__`\n Did you mean `__next__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1188,
|
|
"column": 14,
|
|
"stop_line": 1188,
|
|
"stop_column": 77,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__enter__`\n Did you mean `__iter__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1188,
|
|
"column": 14,
|
|
"stop_line": 1188,
|
|
"stop_column": 77,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__exit__`\n Did you mean `__next__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1196,
|
|
"column": 14,
|
|
"stop_line": 1196,
|
|
"stop_column": 69,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__enter__`\n Did you mean `__iter__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1196,
|
|
"column": 14,
|
|
"stop_line": 1196,
|
|
"stop_column": 69,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__exit__`\n Did you mean `__next__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1205,
|
|
"column": 14,
|
|
"stop_line": 1205,
|
|
"stop_column": 70,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__enter__`\n Did you mean `__iter__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1205,
|
|
"column": 14,
|
|
"stop_line": 1205,
|
|
"stop_column": 70,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"code": -2,
|
|
"name": "bad-context-manager",
|
|
"description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager\n Object of class `Generator` has no attribute `__exit__`\n Did you mean `__next__`?",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 115,
|
|
"column": 19,
|
|
"stop_line": 115,
|
|
"stop_column": 49,
|
|
"path": "src/paperless/tests/parsers/test_tika_parser.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`\n Protocol `PathLike` requires attribute `__fspath__`",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 25,
|
|
"column": 16,
|
|
"stop_line": 25,
|
|
"stop_column": 30,
|
|
"path": "src/paperless/tests/test_celery.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `object`\n Object of class `object` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `object`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 26,
|
|
"column": 16,
|
|
"stop_line": 26,
|
|
"stop_column": 30,
|
|
"path": "src/paperless/tests/test_celery.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `object`\n Object of class `object` has no attribute `__getitem__`",
|
|
"concise_description": "Cannot index into `object`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 296,
|
|
"column": 16,
|
|
"stop_line": 296,
|
|
"stop_column": 39,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "`in` is not supported between `str` and `None`",
|
|
"concise_description": "`in` is not supported between `str` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 297,
|
|
"column": 16,
|
|
"stop_line": 297,
|
|
"stop_column": 45,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "`in` is not supported between `str` and `None`",
|
|
"concise_description": "`in` is not supported between `str` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 315,
|
|
"column": 29,
|
|
"stop_line": 315,
|
|
"stop_column": 53,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `str.join` called with arguments: (Generator[str | None])\n Possible overloads:\n (iterable: Iterable[LiteralString], /) -> LiteralString [closest match]\n (iterable: Iterable[str], /) -> str",
|
|
"concise_description": "No matching overload found for function `str.join` called with arguments: (Generator[str | None])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 345,
|
|
"column": 16,
|
|
"stop_line": 345,
|
|
"stop_column": 56,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "`in` is not supported between `Literal['PAPERLESS_DB_TIMEOUT']` and `None`",
|
|
"concise_description": "`in` is not supported between `Literal['PAPERLESS_DB_TIMEOUT']` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 348,
|
|
"column": 20,
|
|
"stop_line": 348,
|
|
"stop_column": 50,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "`not in` is not supported between `str` and `None`",
|
|
"concise_description": "`not in` is not supported between `str` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 376,
|
|
"column": 16,
|
|
"stop_line": 376,
|
|
"stop_column": 56,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "`in` is not supported between `Literal['PAPERLESS_DB_OPTIONS']` and `None`",
|
|
"concise_description": "`in` is not supported between `Literal['PAPERLESS_DB_OPTIONS']` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 599,
|
|
"column": 16,
|
|
"stop_line": 599,
|
|
"stop_column": 44,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"code": -2,
|
|
"name": "not-iterable",
|
|
"description": "`in` is not supported between `Literal['v2.20.10']` and `None`",
|
|
"concise_description": "`in` is not supported between `Literal['v2.20.10']` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 328,
|
|
"column": 35,
|
|
"stop_line": 328,
|
|
"stop_column": 49,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestParserRegistryGetParserForFile.test_highest_score_wins.LowScoreParser]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestParserRegistryGetParserForFile.test_highest_score_wins.LowScoreParser]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 329,
|
|
"column": 35,
|
|
"stop_line": 329,
|
|
"stop_column": 50,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestParserRegistryGetParserForFile.test_highest_score_wins.HighScoreParser]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestParserRegistryGetParserForFile.test_highest_score_wins.HighScoreParser]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 355,
|
|
"column": 35,
|
|
"stop_line": 355,
|
|
"stop_column": 50,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestParserRegistryGetParserForFile.test_parser_returning_none_score_is_skipped.DecliningParser]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestParserRegistryGetParserForFile.test_parser_returning_none_score_is_skipped.DecliningParser]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 381,
|
|
"column": 35,
|
|
"stop_line": 381,
|
|
"stop_column": 49,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestParserRegistryGetParserForFile.test_all_parsers_decline_returns_none.AlwaysDeclines]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestParserRegistryGetParserForFile.test_all_parsers_decline_returns_none.AlwaysDeclines]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 382,
|
|
"column": 35,
|
|
"stop_line": 382,
|
|
"stop_column": 49,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestParserRegistryGetParserForFile.test_all_parsers_decline_returns_none.AlwaysDeclines]` is not assignable to parameter `object` with type `type[ParserProtocol]` in function `list.append`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestParserRegistryGetParserForFile.test_all_parsers_decline_returns_none.AlwaysDeclines]` is not assignable to parameter `object` with type `type[ParserProtocol]` in function `list.append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 423,
|
|
"column": 35,
|
|
"stop_line": 423,
|
|
"stop_column": 48,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestParserRegistryGetParserForFile.test_external_parser_beats_builtin_same_score.BuiltinParser]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestParserRegistryGetParserForFile.test_external_parser_beats_builtin_same_score.BuiltinParser]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 424,
|
|
"column": 35,
|
|
"stop_line": 424,
|
|
"stop_column": 49,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestParserRegistryGetParserForFile.test_external_parser_beats_builtin_same_score.ExternalParser]` is not assignable to parameter `object` with type `type[ParserProtocol]` in function `list.append`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestParserRegistryGetParserForFile.test_external_parser_beats_builtin_same_score.ExternalParser]` is not assignable to parameter `object` with type `type[ParserProtocol]` in function `list.append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 465,
|
|
"column": 35,
|
|
"stop_line": 465,
|
|
"stop_column": 51,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestParserRegistryGetParserForFile.test_builtin_wins_when_external_declines.AcceptingBuiltin]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestParserRegistryGetParserForFile.test_builtin_wins_when_external_declines.AcceptingBuiltin]` is not assignable to parameter `parser_class` with type `type[ParserProtocol]` in function `paperless.parsers.registry.ParserRegistry.register_builtin`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 466,
|
|
"column": 35,
|
|
"stop_line": 466,
|
|
"stop_column": 52,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestParserRegistryGetParserForFile.test_builtin_wins_when_external_declines.DecliningExternal]` is not assignable to parameter `object` with type `type[ParserProtocol]` in function `list.append`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestParserRegistryGetParserForFile.test_builtin_wins_when_external_declines.DecliningExternal]` is not assignable to parameter `object` with type `type[ParserProtocol]` in function `list.append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 694,
|
|
"column": 35,
|
|
"stop_line": 694,
|
|
"stop_column": 44,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestLogSummary.test_log_summary_with_external_parsers.ExtParser]` is not assignable to parameter `object` with type `type[ParserProtocol]` in function `list.append`\n Protocol `ParserProtocol` requires attribute `can_produce_archive`",
|
|
"concise_description": "Argument `type[TestLogSummary.test_log_summary_with_external_parsers.ExtParser]` is not assignable to parameter `object` with type `type[ParserProtocol]` in function `list.append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 294,
|
|
"column": 23,
|
|
"stop_line": 294,
|
|
"stop_column": 47,
|
|
"path": "src/paperless/tests/test_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 301,
|
|
"column": 23,
|
|
"stop_line": 301,
|
|
"stop_column": 47,
|
|
"path": "src/paperless/tests/test_signals.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `get`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 21,
|
|
"column": 21,
|
|
"stop_line": 21,
|
|
"stop_column": 47,
|
|
"path": "src/paperless/tests/test_views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `streaming_content`",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `streaming_content`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 9,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless/urls.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `django.urls.conf.path` called with arguments: (Literal['ws/status/'], _ASGIApplicationProtocol)\n Possible overloads:\n (route: _StrOrPromise, view: (...) -> HttpResponseBase, kwargs: dict[str, Any] | None = None, name: str | None = None) -> URLPattern [closest match]\n (route: _StrOrPromise, view: (...) -> Coroutine[Any, Any, HttpResponseBase], kwargs: dict[str, Any] | None = None, name: str | None = None) -> URLPattern\n (route: _StrOrPromise, view: tuple[Sequence[URLPattern | URLResolver], str | None, str | None], kwargs: dict[str, Any] | None = None, name: str | None = None) -> URLResolver\n (route: _StrOrPromise, view: Sequence[URLResolver | str], kwargs: dict[str, Any] | None = None, name: str | None = None) -> URLResolver",
|
|
"concise_description": "No matching overload found for function `django.urls.conf.path` called with arguments: (Literal['ws/status/'], _ASGIApplicationProtocol)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 199,
|
|
"column": 20,
|
|
"stop_line": 199,
|
|
"stop_column": 60,
|
|
"path": "src/paperless/validators.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `EllipsisType` has no attribute `lower`",
|
|
"concise_description": "Object of class `EllipsisType` has no attribute `lower`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 199,
|
|
"column": 32,
|
|
"stop_line": 199,
|
|
"stop_column": 43,
|
|
"path": "src/paperless/validators.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Ellipsis | Unknown` is not assignable to parameter `text_or_uri_element` with type `_Element | bytes | str | None` in function `lxml.etree.QName.__init__`",
|
|
"concise_description": "Argument `Ellipsis | Unknown` is not assignable to parameter `text_or_uri_element` with type `_Element | bytes | str | None` in function `lxml.etree.QName.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 205,
|
|
"column": 38,
|
|
"stop_line": 205,
|
|
"stop_column": 58,
|
|
"path": "src/paperless/validators.py",
|
|
"code": -2,
|
|
"name": "no-matching-overload",
|
|
"description": "No matching overload found for function `str.join` called with arguments: (Iterator[_AnyStr] | Unknown)\n Possible overloads:\n (iterable: Iterable[LiteralString], /) -> LiteralString [closest match]\n (iterable: Iterable[str], /) -> str",
|
|
"concise_description": "No matching overload found for function `str.join` called with arguments: (Iterator[_AnyStr] | Unknown)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 214,
|
|
"column": 38,
|
|
"stop_line": 214,
|
|
"stop_column": 58,
|
|
"path": "src/paperless/validators.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `EllipsisType` has no attribute `items`",
|
|
"concise_description": "Object of class `EllipsisType` has no attribute `items`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 77,
|
|
"column": 23,
|
|
"stop_line": 77,
|
|
"stop_column": 42,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `paginator`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `paginator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 92,
|
|
"column": 17,
|
|
"stop_line": 92,
|
|
"stop_column": 36,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `paginator`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `paginator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 95,
|
|
"column": 16,
|
|
"stop_line": 95,
|
|
"stop_column": 35,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `paginator`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `paginator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 144,
|
|
"column": 9,
|
|
"stop_line": 144,
|
|
"stop_column": 15,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `UserViewSet.create` overrides parent class `ModelViewSet` in an inconsistent manner\n `UserViewSet.create` has type `(self: UserViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseForbidden | Response`, which is not assignable to `(self: UserViewSet, request: Request, *args: Any, **kwargs: Any) -> Response`, the type of `ModelViewSet.create`\n Signature mismatch:\n expected: def create(self: UserViewSet, request: Request, *args: Any, **kwargs: Any) -> Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ return type\n |\n parameters\n found: def create(self: UserViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseForbidden | Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ return type\n |\n parameters",
|
|
"concise_description": "Class member `UserViewSet.create` overrides parent class `ModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 163,
|
|
"column": 9,
|
|
"stop_line": 163,
|
|
"stop_column": 15,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `UserViewSet.update` overrides parent class `ModelViewSet` in an inconsistent manner\n `UserViewSet.update` has type `(self: UserViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseForbidden | Response`, which is not assignable to `(self: UserViewSet, request: Request, *args: Any, **kwargs: Any) -> Response`, the type of `ModelViewSet.update`\n Signature mismatch:\n expected: def update(self: UserViewSet, request: Request, *args: Any, **kwargs: Any) -> Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ return type\n |\n parameters\n found: def update(self: UserViewSet, request: Unknown, *args: Unknown, **kwargs: Unknown) -> HttpResponseForbidden | Response: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ return type\n |\n parameters",
|
|
"concise_description": "Class member `UserViewSet.update` overrides parent class `ModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 255,
|
|
"column": 13,
|
|
"stop_line": 255,
|
|
"stop_column": 30,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `set_password`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `set_password`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 256,
|
|
"column": 13,
|
|
"stop_line": 256,
|
|
"stop_column": 22,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `save`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `save`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 260,
|
|
"column": 9,
|
|
"stop_line": 260,
|
|
"stop_column": 18,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `save`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `save`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 337,
|
|
"column": 38,
|
|
"stop_line": 337,
|
|
"stop_column": 75,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`Authenticator | None` is not assignable to `Authenticator`",
|
|
"concise_description": "`Authenticator | None` is not assignable to `Authenticator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 339,
|
|
"column": 34,
|
|
"stop_line": 339,
|
|
"stop_column": 65,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `TOTP` has no attribute `get_unused_codes`\nObject of class `WebAuthn` has no attribute `get_unused_codes`",
|
|
"concise_description": "Object of class `TOTP` has no attribute `get_unused_codes`\nObject of class `WebAuthn` has no attribute `get_unused_codes`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 417,
|
|
"column": 13,
|
|
"stop_line": 417,
|
|
"stop_column": 36,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `ai_enabled`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `ai_enabled`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 417,
|
|
"column": 41,
|
|
"stop_line": 417,
|
|
"stop_column": 75,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `NoneType` has no attribute `llm_embedding_backend`",
|
|
"concise_description": "Object of class `NoneType` has no attribute `llm_embedding_backend`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 465,
|
|
"column": 23,
|
|
"stop_line": 465,
|
|
"stop_column": 45,
|
|
"path": "src/paperless/views.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `AbstractBaseUser` has no attribute `socialaccount_set`\nObject of class `AnonymousUser` has no attribute `socialaccount_set`",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `socialaccount_set`\nObject of class `AnonymousUser` has no attribute `socialaccount_set`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 102,
|
|
"column": 30,
|
|
"stop_line": 102,
|
|
"stop_column": 36,
|
|
"path": "src/paperless_ai/ai_classifier.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str` is not assignable to parameter `raw` with type `dict[Unknown, Unknown]` in function `parse_ai_response`",
|
|
"concise_description": "Argument `str` is not assignable to parameter `raw` with type `dict[Unknown, Unknown]` in function `parse_ai_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 102,
|
|
"column": 18,
|
|
"stop_line": 102,
|
|
"stop_column": 46,
|
|
"path": "src/paperless_ai/chat.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Response` has no attribute `response_gen`",
|
|
"concise_description": "Object of class `Response` has no attribute `response_gen`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 79,
|
|
"column": 16,
|
|
"stop_line": 79,
|
|
"stop_column": 35,
|
|
"path": "src/paperless_ai/client.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `dict[str, Any]` is not assignable to declared return type `str`",
|
|
"concise_description": "Returned type `dict[str, Any]` is not assignable to declared return type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 97,
|
|
"column": 21,
|
|
"stop_line": 97,
|
|
"stop_column": 38,
|
|
"path": "src/paperless_ai/embedding.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"concise_description": "Object of class `Document` has no attribute `custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 261,
|
|
"column": 46,
|
|
"stop_line": 261,
|
|
"stop_column": 51,
|
|
"path": "src/paperless_ai/indexing.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `BaseIndex[Unknown] | VectorStoreIndex` is not assignable to parameter `index` with type `VectorStoreIndex` in function `remove_document_docstore_nodes`",
|
|
"concise_description": "Argument `BaseIndex[Unknown] | VectorStoreIndex` is not assignable to parameter `index` with type `VectorStoreIndex` in function `remove_document_docstore_nodes`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 274,
|
|
"column": 46,
|
|
"stop_line": 274,
|
|
"stop_column": 51,
|
|
"path": "src/paperless_ai/indexing.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `BaseIndex[Unknown] | VectorStoreIndex` is not assignable to parameter `index` with type `VectorStoreIndex` in function `remove_document_docstore_nodes`",
|
|
"concise_description": "Argument `BaseIndex[Unknown] | VectorStoreIndex` is not assignable to parameter `index` with type `VectorStoreIndex` in function `remove_document_docstore_nodes`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 331,
|
|
"column": 15,
|
|
"stop_line": 331,
|
|
"stop_column": 20,
|
|
"path": "src/paperless_ai/indexing.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `BaseIndex[Unknown] | VectorStoreIndex` is not assignable to parameter `index` with type `VectorStoreIndex` in function `llama_index.core.indices.vector_store.retrievers.retriever.VectorIndexRetriever.__init__`",
|
|
"concise_description": "Argument `BaseIndex[Unknown] | VectorStoreIndex` is not assignable to parameter `index` with type `VectorStoreIndex` in function `llama_index.core.indices.vector_store.retrievers.retriever.VectorIndexRetriever.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 41,
|
|
"column": 9,
|
|
"stop_line": 41,
|
|
"stop_column": 30,
|
|
"path": "src/paperless_ai/tests/test_ai_indexing.py",
|
|
"code": -2,
|
|
"name": "bad-override",
|
|
"description": "Class member `FakeEmbedding._aget_query_embedding` overrides parent class `BaseEmbedding` in an inconsistent manner\n `FakeEmbedding._aget_query_embedding` has type `(self: FakeEmbedding, query: str) -> list[float]`, which is not assignable to `(self: FakeEmbedding, query: str) -> Coroutine[Unknown, Unknown, list[float]]`, the type of `BaseEmbedding._aget_query_embedding`\n Signature mismatch:\n expected: def _aget_query_embedding(self: FakeEmbedding, query: str) -> Coroutine[Unknown, Unknown, list[float]]: ...\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return type\n found: def _aget_query_embedding(self: FakeEmbedding, query: str) -> list[float]: ...\n ^^^^^^^^^^ return type",
|
|
"concise_description": "Class member `FakeEmbedding._aget_query_embedding` overrides parent class `BaseEmbedding` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 107,
|
|
"column": 12,
|
|
"stop_line": 107,
|
|
"stop_column": 27,
|
|
"path": "src/paperless_ai/tests/test_client.py",
|
|
"code": -2,
|
|
"name": "bad-index",
|
|
"description": "Cannot index into `str`\n No matching overload found for function `str.__getitem__` called with arguments: (Literal['title'])\n Possible overloads:\n (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | Unknown | None], /) -> LiteralString\n (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | Unknown | None], /) -> str [closest match]",
|
|
"concise_description": "Cannot index into `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 38,
|
|
"column": 49,
|
|
"stop_line": 38,
|
|
"stop_column": 53,
|
|
"path": "src/paperless_ai/tests/test_matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_tags_by_name`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_tags_by_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 46,
|
|
"column": 59,
|
|
"stop_line": 46,
|
|
"stop_column": 63,
|
|
"path": "src/paperless_ai/tests/test_matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_correspondents_by_name`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_correspondents_by_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 54,
|
|
"column": 59,
|
|
"stop_line": 54,
|
|
"stop_column": 63,
|
|
"path": "src/paperless_ai/tests/test_matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_document_types_by_name`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_document_types_by_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 62,
|
|
"column": 58,
|
|
"stop_line": 62,
|
|
"stop_column": 62,
|
|
"path": "src/paperless_ai/tests/test_matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_storage_paths_by_name`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_storage_paths_by_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 76,
|
|
"column": 37,
|
|
"stop_line": 76,
|
|
"stop_column": 42,
|
|
"path": "src/paperless_ai/tests/test_matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `list[str | None]` is not assignable to parameter `names` with type `list[str]` in function `paperless_ai.matching.match_tags_by_name`",
|
|
"concise_description": "Argument `list[str | None]` is not assignable to parameter `names` with type `list[str]` in function `paperless_ai.matching.match_tags_by_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 76,
|
|
"column": 49,
|
|
"stop_line": 76,
|
|
"stop_column": 53,
|
|
"path": "src/paperless_ai/tests/test_matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_tags_by_name`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_tags_by_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 83,
|
|
"column": 49,
|
|
"stop_line": 83,
|
|
"stop_column": 53,
|
|
"path": "src/paperless_ai/tests/test_matching.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_tags_by_name`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `user` with type `User` in function `paperless_ai.matching.match_tags_by_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 168,
|
|
"column": 26,
|
|
"stop_line": 168,
|
|
"stop_column": 30,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`None` is not assignable to attribute `color` with type `str`",
|
|
"concise_description": "`None` is not assignable to attribute `color` with type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 185,
|
|
"column": 64,
|
|
"stop_line": 185,
|
|
"stop_column": 76,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Unknown | None` is not assignable to parameter `*args` with type `str` in function `imaplib.IMAP4.uid`",
|
|
"concise_description": "Argument `Unknown | None` is not assignable to parameter `*args` with type `str` in function `imaplib.IMAP4.uid`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 197,
|
|
"column": 33,
|
|
"stop_line": 197,
|
|
"stop_column": 70,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `list[str] | list[Unknown] | None` is not assignable to parameter `flag_set` with type `Iterable[str] | str` in function `imap_tools.mailbox.BaseMailBox.flag`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Argument `list[str] | list[Unknown] | None` is not assignable to parameter `flag_set` with type `Iterable[str] | str` in function `imap_tools.mailbox.BaseMailBox.flag`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 275,
|
|
"column": 53,
|
|
"stop_line": 275,
|
|
"stop_column": 74,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `parameter` with type `str` in function `BaseMailAction.post_consume`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `parameter` with type `str` in function `BaseMailAction.post_consume`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 376,
|
|
"column": 13,
|
|
"stop_line": 376,
|
|
"stop_column": 34,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `parameter` with type `str` in function `TagMailAction.__init__`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `parameter` with type `str` in function `TagMailAction.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 393,
|
|
"column": 30,
|
|
"stop_line": 393,
|
|
"stop_column": 46,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "Cannot set item in `dict[str, date]`\n Argument `str` is not assignable to parameter `value` with type `date` in function `dict.__setitem__`",
|
|
"concise_description": "Cannot set item in `dict[str, date]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 395,
|
|
"column": 27,
|
|
"stop_line": 395,
|
|
"stop_column": 41,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "Cannot set item in `dict[str, date]`\n Argument `str` is not assignable to parameter `value` with type `date` in function `dict.__setitem__`",
|
|
"concise_description": "Cannot set item in `dict[str, date]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 397,
|
|
"column": 32,
|
|
"stop_line": 397,
|
|
"stop_column": 51,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "Cannot set item in `dict[str, date]`\n Argument `str` is not assignable to parameter `value` with type `date` in function `dict.__setitem__`",
|
|
"concise_description": "Cannot set item in `dict[str, date]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 399,
|
|
"column": 29,
|
|
"stop_line": 399,
|
|
"stop_column": 45,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "unsupported-operation",
|
|
"description": "Cannot set item in `dict[str, date]`\n Argument `str` is not assignable to parameter `value` with type `date` in function `dict.__setitem__`",
|
|
"concise_description": "Cannot set item in `dict[str, date]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `answered` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `answered` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `seen` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `seen` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `flagged` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `flagged` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `draft` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `draft` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `deleted` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `deleted` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `keyword` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `keyword` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `no_keyword` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `no_keyword` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `from_` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `from_` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `to` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `to` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `subject` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `subject` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `body` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `body` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `text` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `text` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `bcc` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `bcc` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `cc` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `cc` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `size_gt` with type `int | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `size_gt` with type `int | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `size_lt` with type `int | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `size_lt` with type `int | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `new` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `new` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `old` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `old` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `recent` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `recent` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `all` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `all` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `uid` with type `Iterable[str] | UidRange | str | None` in function `imap_tools.query.LogicOperator.__init__`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `uid` with type `Iterable[str] | UidRange | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `header` with type `Header | list[Header] | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `header` with type `Header | list[Header] | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 407,
|
|
"column": 38,
|
|
"stop_line": 407,
|
|
"stop_column": 49,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `gmail_label` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `gmail_label` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `answered` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `answered` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `seen` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `seen` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `flagged` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `flagged` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `draft` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `draft` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `deleted` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `deleted` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `keyword` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `keyword` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `no_keyword` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `no_keyword` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `from_` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `from_` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `to` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `to` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `subject` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `subject` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `body` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `body` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `text` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `text` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `bcc` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `bcc` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `cc` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `cc` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `size_gt` with type `int | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `size_gt` with type `int | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `size_lt` with type `int | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `size_lt` with type `int | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `new` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `new` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `old` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `old` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `recent` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `recent` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `all` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `all` with type `bool | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `uid` with type `Iterable[str] | UidRange | str | None` in function `imap_tools.query.LogicOperator.__init__`\n Protocol `Iterable` requires attribute `__iter__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `uid` with type `Iterable[str] | UidRange | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `header` with type `Header | list[Header] | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `header` with type `Header | list[Header] | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 32,
|
|
"stop_line": 411,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Unpacked keyword argument `date` is not assignable to parameter `gmail_label` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"concise_description": "Unpacked keyword argument `date` is not assignable to parameter `gmail_label` with type `list[str] | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 437,
|
|
"column": 12,
|
|
"stop_line": 437,
|
|
"stop_column": 19,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-return",
|
|
"description": "Returned type `MailBox | MailBoxStartTls | MailBoxUnencrypted` is not assignable to declared return type `MailBox`",
|
|
"concise_description": "Returned type `MailBox | MailBoxStartTls | MailBoxUnencrypted` is not assignable to declared return type `MailBox`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 577,
|
|
"column": 54,
|
|
"stop_line": 577,
|
|
"stop_column": 67,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccount` has no attribute `rules`",
|
|
"concise_description": "Object of class `MailAccount` has no attribute `rules`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 580,
|
|
"column": 29,
|
|
"stop_line": 580,
|
|
"stop_column": 42,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccount` has no attribute `rules`",
|
|
"concise_description": "Object of class `MailAccount` has no attribute `rules`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 626,
|
|
"column": 31,
|
|
"stop_line": 626,
|
|
"stop_column": 52,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `object` with type `str` in function `list.insert`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `object` with type `str` in function `list.insert`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 633,
|
|
"column": 44,
|
|
"stop_line": 633,
|
|
"stop_column": 50,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`folder` is uninitialized",
|
|
"concise_description": "`folder` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 966,
|
|
"column": 40,
|
|
"stop_line": 966,
|
|
"stop_column": 60,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Message` has no attribute `_headers`",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 970,
|
|
"column": 32,
|
|
"stop_line": 970,
|
|
"stop_column": 52,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Message` has no attribute `_headers`",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 971,
|
|
"column": 32,
|
|
"stop_line": 971,
|
|
"stop_column": 52,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Message` has no attribute `_headers`",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 972,
|
|
"column": 17,
|
|
"stop_line": 972,
|
|
"stop_column": 37,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Message` has no attribute `_headers`",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 986,
|
|
"column": 27,
|
|
"stop_line": 986,
|
|
"stop_column": 40,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str` is not assignable to parameter `original_file` with type `Path` in function `documents.data_models.ConsumableDocument.__init__`",
|
|
"concise_description": "Argument `str` is not assignable to parameter `original_file` with type `Path` in function `documents.data_models.ConsumableDocument.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 97,
|
|
"column": 39,
|
|
"stop_line": 97,
|
|
"stop_column": 60,
|
|
"path": "src/paperless_mail/oauth.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `refresh_token` with type `str` in function `httpx_oauth.oauth2.BaseOAuth2.refresh_token`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `refresh_token` with type `str` in function `httpx_oauth.oauth2.BaseOAuth2.refresh_token`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 103,
|
|
"column": 39,
|
|
"stop_line": 103,
|
|
"stop_column": 60,
|
|
"path": "src/paperless_mail/oauth.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `refresh_token` with type `str` in function `httpx_oauth.oauth2.BaseOAuth2.refresh_token`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `refresh_token` with type `str` in function `httpx_oauth.oauth2.BaseOAuth2.refresh_token`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 106,
|
|
"column": 35,
|
|
"stop_line": 106,
|
|
"stop_column": 41,
|
|
"path": "src/paperless_mail/oauth.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`result` may be uninitialized",
|
|
"concise_description": "`result` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 73,
|
|
"column": 71,
|
|
"stop_line": 73,
|
|
"stop_column": 99,
|
|
"path": "src/paperless_mail/preprocessor.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Crypt` has no attribute `stderr`",
|
|
"concise_description": "Object of class `Crypt` has no attribute `stderr`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 31,
|
|
"column": 17,
|
|
"stop_line": 31,
|
|
"stop_column": 28,
|
|
"path": "src/paperless_mail/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[MailAccount]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[MailAccount]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 78,
|
|
"column": 17,
|
|
"stop_line": 78,
|
|
"stop_column": 25,
|
|
"path": "src/paperless_mail/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[MailRule]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[MailRule]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 154,
|
|
"column": 17,
|
|
"stop_line": 154,
|
|
"stop_column": 30,
|
|
"path": "src/paperless_mail/serialisers.py",
|
|
"code": -2,
|
|
"name": "bad-assignment",
|
|
"description": "`type[ProcessedMail]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"concise_description": "`type[ProcessedMail]` is not assignable to attribute `model` with type `type[_MT]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 23,
|
|
"column": 11,
|
|
"stop_line": 23,
|
|
"stop_column": 18,
|
|
"path": "src/paperless_mail/tests/conftest.py",
|
|
"code": -2,
|
|
"name": "invalid-yield",
|
|
"description": "Yielded type `MailAccountFactory` is not assignable to declared yield type `MailAccount`",
|
|
"concise_description": "Yielded type `MailAccountFactory` is not assignable to declared yield type `MailAccount`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 24,
|
|
"column": 5,
|
|
"stop_line": 24,
|
|
"stop_column": 19,
|
|
"path": "src/paperless_mail/tests/conftest.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `delete`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 124,
|
|
"column": 31,
|
|
"stop_line": 124,
|
|
"stop_column": 42,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 144,
|
|
"column": 31,
|
|
"stop_line": 144,
|
|
"stop_column": 42,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 153,
|
|
"column": 56,
|
|
"stop_line": 153,
|
|
"stop_column": 67,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 158,
|
|
"column": 31,
|
|
"stop_line": 158,
|
|
"stop_column": 42,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 167,
|
|
"column": 56,
|
|
"stop_line": 167,
|
|
"stop_column": 67,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 243,
|
|
"column": 27,
|
|
"stop_line": 243,
|
|
"stop_column": 37,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 290,
|
|
"column": 52,
|
|
"stop_line": 290,
|
|
"stop_column": 60,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `MailAccountFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"concise_description": "Argument `MailAccountFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 340,
|
|
"column": 53,
|
|
"stop_line": 340,
|
|
"stop_column": 64,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 342,
|
|
"column": 57,
|
|
"stop_line": 342,
|
|
"stop_column": 74,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `filter_from`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `filter_from`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 343,
|
|
"column": 55,
|
|
"stop_line": 343,
|
|
"stop_column": 70,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `filter_to`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `filter_to`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 344,
|
|
"column": 60,
|
|
"stop_line": 344,
|
|
"stop_column": 80,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `filter_subject`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `filter_subject`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 345,
|
|
"column": 57,
|
|
"stop_line": 345,
|
|
"stop_column": 74,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `filter_body`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `filter_body`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 348,
|
|
"column": 13,
|
|
"stop_line": 348,
|
|
"stop_column": 53,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `filter_attachment_filename_include`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `filter_attachment_filename_include`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 377,
|
|
"column": 24,
|
|
"stop_line": 377,
|
|
"stop_column": 35,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 391,
|
|
"column": 29,
|
|
"stop_line": 391,
|
|
"stop_column": 35,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `TagFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `TagFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 392,
|
|
"column": 37,
|
|
"stop_line": 392,
|
|
"stop_column": 53,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `CorrespondentFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `CorrespondentFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 393,
|
|
"column": 37,
|
|
"stop_line": 393,
|
|
"stop_column": 53,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `DocumentTypeFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `DocumentTypeFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 411,
|
|
"column": 53,
|
|
"stop_line": 411,
|
|
"stop_column": 64,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 462,
|
|
"column": 31,
|
|
"stop_line": 462,
|
|
"stop_column": 39,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 483,
|
|
"column": 31,
|
|
"stop_line": 483,
|
|
"stop_column": 39,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 492,
|
|
"column": 50,
|
|
"stop_line": 492,
|
|
"stop_column": 58,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 504,
|
|
"column": 28,
|
|
"stop_line": 504,
|
|
"stop_column": 46,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 524,
|
|
"column": 54,
|
|
"stop_line": 524,
|
|
"stop_column": 69,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `MailAccountFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"concise_description": "Argument `MailAccountFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 530,
|
|
"column": 28,
|
|
"stop_line": 530,
|
|
"stop_column": 46,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 552,
|
|
"column": 31,
|
|
"stop_line": 552,
|
|
"stop_column": 39,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 553,
|
|
"column": 30,
|
|
"stop_line": 553,
|
|
"stop_column": 48,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 557,
|
|
"column": 9,
|
|
"stop_line": 557,
|
|
"stop_column": 30,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `refresh_from_db`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `refresh_from_db`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 576,
|
|
"column": 49,
|
|
"stop_line": 576,
|
|
"stop_column": 54,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `MailRuleFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"concise_description": "Argument `MailRuleFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 599,
|
|
"column": 24,
|
|
"stop_line": 599,
|
|
"stop_column": 34,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 651,
|
|
"column": 54,
|
|
"stop_line": 651,
|
|
"stop_column": 57,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `ProcessedMailFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"concise_description": "Argument `ProcessedMailFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 658,
|
|
"column": 44,
|
|
"stop_line": 658,
|
|
"stop_column": 50,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 658,
|
|
"column": 52,
|
|
"stop_line": 658,
|
|
"stop_column": 58,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 658,
|
|
"column": 60,
|
|
"stop_line": 658,
|
|
"stop_column": 66,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 676,
|
|
"column": 60,
|
|
"stop_line": 676,
|
|
"stop_column": 68,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 680,
|
|
"column": 44,
|
|
"stop_line": 680,
|
|
"stop_column": 50,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 680,
|
|
"column": 52,
|
|
"stop_line": 680,
|
|
"stop_column": 58,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 702,
|
|
"column": 56,
|
|
"stop_line": 702,
|
|
"stop_column": 66,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `ProcessedMailFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"concise_description": "Argument `ProcessedMailFactory` is not assignable to parameter `obj` with type `Model | None` in function `guardian.shortcuts.assign_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 709,
|
|
"column": 30,
|
|
"stop_line": 709,
|
|
"stop_column": 43,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 709,
|
|
"column": 45,
|
|
"stop_line": 709,
|
|
"stop_column": 56,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 709,
|
|
"column": 58,
|
|
"stop_line": 709,
|
|
"stop_column": 71,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 717,
|
|
"column": 14,
|
|
"stop_line": 717,
|
|
"stop_column": 27,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 717,
|
|
"column": 29,
|
|
"stop_line": 717,
|
|
"stop_column": 40,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 717,
|
|
"column": 42,
|
|
"stop_line": 717,
|
|
"stop_column": 55,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 719,
|
|
"column": 58,
|
|
"stop_line": 719,
|
|
"stop_column": 71,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 720,
|
|
"column": 58,
|
|
"stop_line": 720,
|
|
"stop_column": 69,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 721,
|
|
"column": 58,
|
|
"stop_line": 721,
|
|
"stop_column": 71,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 722,
|
|
"column": 57,
|
|
"stop_line": 722,
|
|
"stop_column": 72,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 728,
|
|
"column": 30,
|
|
"stop_line": 728,
|
|
"stop_column": 45,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 733,
|
|
"column": 57,
|
|
"stop_line": 733,
|
|
"stop_column": 72,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `ProcessedMailFactory` has no attribute `id`\n Did you mean `uid`?",
|
|
"concise_description": "Object of class `ProcessedMailFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 60,
|
|
"column": 44,
|
|
"stop_line": 60,
|
|
"stop_column": 48,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `None` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"concise_description": "Argument `None` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 79,
|
|
"column": 37,
|
|
"stop_line": 79,
|
|
"stop_column": 42,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['BAD']` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"concise_description": "Argument `Literal['BAD']` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 122,
|
|
"column": 37,
|
|
"stop_line": 122,
|
|
"stop_column": 42,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['BAD']` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"concise_description": "Argument `Literal['BAD']` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 127,
|
|
"column": 37,
|
|
"stop_line": 127,
|
|
"stop_column": 42,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['BAD']` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"concise_description": "Argument `Literal['BAD']` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 131,
|
|
"column": 37,
|
|
"stop_line": 131,
|
|
"stop_column": 42,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `Literal['BAD']` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"concise_description": "Argument `Literal['BAD']` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 177,
|
|
"column": 25,
|
|
"stop_line": 177,
|
|
"stop_column": 40,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailMessage` has no attribute `flagged`",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `flagged`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 179,
|
|
"column": 25,
|
|
"stop_line": 179,
|
|
"stop_column": 37,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailMessage` has no attribute `seen`",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `seen`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 265,
|
|
"column": 9,
|
|
"stop_line": 265,
|
|
"stop_column": 22,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailMessage` has no attribute `seen`",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `seen`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 266,
|
|
"column": 9,
|
|
"stop_line": 266,
|
|
"stop_column": 25,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailMessage` has no attribute `flagged`",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `flagged`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 439,
|
|
"column": 50,
|
|
"stop_line": 439,
|
|
"stop_column": 64,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Class `message2` has no class attribute `from_`",
|
|
"concise_description": "Class `message2` has no class attribute `from_`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 448,
|
|
"column": 54,
|
|
"stop_line": 448,
|
|
"stop_column": 61,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_correspondent.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"concise_description": "Argument `type[TestMail.test_get_correspondent.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 454,
|
|
"column": 40,
|
|
"stop_line": 454,
|
|
"stop_column": 47,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_correspondent.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"concise_description": "Argument `type[TestMail.test_get_correspondent.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 459,
|
|
"column": 40,
|
|
"stop_line": 459,
|
|
"stop_column": 48,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_correspondent.message2]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"concise_description": "Argument `type[TestMail.test_get_correspondent.message2]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 462,
|
|
"column": 32,
|
|
"stop_line": 462,
|
|
"stop_column": 47,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `CorrespondentFactory` has no attribute `id`",
|
|
"concise_description": "Object of class `CorrespondentFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 468,
|
|
"column": 40,
|
|
"stop_line": 468,
|
|
"stop_column": 47,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_correspondent.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"concise_description": "Argument `type[TestMail.test_get_correspondent.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 471,
|
|
"column": 40,
|
|
"stop_line": 471,
|
|
"stop_column": 48,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_correspondent.message2]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"concise_description": "Argument `type[TestMail.test_get_correspondent.message2]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 473,
|
|
"column": 32,
|
|
"stop_line": 473,
|
|
"stop_column": 47,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `CorrespondentFactory` has no attribute `id`",
|
|
"concise_description": "Object of class `CorrespondentFactory` has no attribute `id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 480,
|
|
"column": 40,
|
|
"stop_line": 480,
|
|
"stop_column": 47,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_correspondent.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"concise_description": "Argument `type[TestMail.test_get_correspondent.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 495,
|
|
"column": 45,
|
|
"stop_line": 495,
|
|
"stop_column": 52,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_title.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"concise_description": "Argument `type[TestMail.test_get_title.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 495,
|
|
"column": 54,
|
|
"stop_line": 495,
|
|
"stop_column": 57,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_title.att]` is not assignable to parameter `att` with type `MailAttachment` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"concise_description": "Argument `type[TestMail.test_get_title.att]` is not assignable to parameter `att` with type `MailAttachment` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 500,
|
|
"column": 45,
|
|
"stop_line": 500,
|
|
"stop_column": 52,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_title.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"concise_description": "Argument `type[TestMail.test_get_title.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 500,
|
|
"column": 54,
|
|
"stop_line": 500,
|
|
"stop_column": 57,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_title.att]` is not assignable to parameter `att` with type `MailAttachment` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"concise_description": "Argument `type[TestMail.test_get_title.att]` is not assignable to parameter `att` with type `MailAttachment` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 505,
|
|
"column": 45,
|
|
"stop_line": 505,
|
|
"stop_column": 52,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_title.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"concise_description": "Argument `type[TestMail.test_get_title.message]` is not assignable to parameter `message` with type `MailMessage` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 505,
|
|
"column": 54,
|
|
"stop_line": 505,
|
|
"stop_column": 57,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `type[TestMail.test_get_title.att]` is not assignable to parameter `att` with type `MailAttachment` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"concise_description": "Argument `type[TestMail.test_get_title.att]` is not assignable to parameter `att` with type `MailAttachment` in function `paperless_mail.mail.MailAccountHandler._get_title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1250,
|
|
"column": 9,
|
|
"stop_line": 1250,
|
|
"stop_column": 50,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"concise_description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1256,
|
|
"column": 9,
|
|
"stop_line": 1256,
|
|
"stop_column": 50,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"concise_description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1283,
|
|
"column": 9,
|
|
"stop_line": 1283,
|
|
"stop_column": 50,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"concise_description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1289,
|
|
"column": 9,
|
|
"stop_line": 1289,
|
|
"stop_column": 50,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"concise_description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1351,
|
|
"column": 13,
|
|
"stop_line": 1355,
|
|
"stop_column": 14,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `list[list[dict[str, int]]]` is not assignable to parameter `expected_call_args` with type `list[list[dict[str, str]]]` in function `MailMocker.assert_queue_consumption_tasks_call_args`",
|
|
"concise_description": "Argument `list[list[dict[str, int]]]` is not assignable to parameter `expected_call_args` with type `list[list[dict[str, str]]]` in function `MailMocker.assert_queue_consumption_tasks_call_args`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1370,
|
|
"column": 13,
|
|
"stop_line": 1374,
|
|
"stop_column": 14,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `list[list[dict[str, None]]]` is not assignable to parameter `expected_call_args` with type `list[list[dict[str, str]]]` in function `MailMocker.assert_queue_consumption_tasks_call_args`",
|
|
"concise_description": "Argument `list[list[dict[str, None]]]` is not assignable to parameter `expected_call_args` with type `list[list[dict[str, str]]]` in function `MailMocker.assert_queue_consumption_tasks_call_args`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1603,
|
|
"column": 21,
|
|
"stop_line": 1603,
|
|
"stop_column": 33,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1614,
|
|
"column": 13,
|
|
"stop_line": 1614,
|
|
"stop_column": 39,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `action_parameter`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `action_parameter`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1641,
|
|
"column": 25,
|
|
"stop_line": 1641,
|
|
"stop_column": 37,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailRuleFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 1652,
|
|
"column": 41,
|
|
"stop_line": 1652,
|
|
"stop_column": 61,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`\n Protocol `Container` requires attribute `__contains__`",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2045,
|
|
"column": 24,
|
|
"stop_line": 2045,
|
|
"stop_column": 39,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 2068,
|
|
"column": 24,
|
|
"stop_line": 2068,
|
|
"stop_column": 39,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"concise_description": "Object of class `MailAccountFactory` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 135,
|
|
"column": 42,
|
|
"stop_line": 135,
|
|
"stop_column": 54,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 146,
|
|
"column": 42,
|
|
"stop_line": 146,
|
|
"stop_column": 54,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 178,
|
|
"column": 46,
|
|
"stop_line": 178,
|
|
"stop_column": 58,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 188,
|
|
"column": 46,
|
|
"stop_line": 188,
|
|
"stop_column": 58,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 308,
|
|
"column": 55,
|
|
"stop_line": 308,
|
|
"stop_column": 67,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `MailAccountFactory` is not assignable to parameter `account` with type `MailAccount` in function `paperless_mail.mail.MailAccountHandler.handle_mail_account`",
|
|
"concise_description": "Argument `MailAccountFactory` is not assignable to parameter `account` with type `MailAccount` in function `paperless_mail.mail.MailAccountHandler.handle_mail_account`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 326,
|
|
"column": 55,
|
|
"stop_line": 326,
|
|
"stop_column": 75,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `MailAccountFactory` is not assignable to parameter `account` with type `MailAccount` in function `paperless_mail.mail.MailAccountHandler.handle_mail_account`",
|
|
"concise_description": "Argument `MailAccountFactory` is not assignable to parameter `account` with type `MailAccount` in function `paperless_mail.mail.MailAccountHandler.handle_mail_account`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 366,
|
|
"column": 63,
|
|
"stop_line": 366,
|
|
"stop_column": 75,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"code": -2,
|
|
"name": "bad-argument-type",
|
|
"description": "Argument `MailAccountFactory` is not assignable to parameter `account` with type `MailAccount` in function `paperless_mail.mail.MailAccountHandler.handle_mail_account`",
|
|
"concise_description": "Argument `MailAccountFactory` is not assignable to parameter `account` with type `MailAccount` in function `paperless_mail.mail.MailAccountHandler.handle_mail_account`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 70,
|
|
"column": 9,
|
|
"stop_line": 70,
|
|
"stop_column": 30,
|
|
"path": "src/paperless_mail/tests/test_preprocessor.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Message` has no attribute `_headers`",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 72,
|
|
"column": 27,
|
|
"stop_line": 72,
|
|
"stop_column": 48,
|
|
"path": "src/paperless_mail/tests/test_preprocessor.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Message` has no attribute `_headers`",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 85,
|
|
"column": 51,
|
|
"stop_line": 85,
|
|
"stop_column": 72,
|
|
"path": "src/paperless_mail/tests/test_preprocessor.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `Crypt` has no attribute `stderr`",
|
|
"concise_description": "Object of class `Crypt` has no attribute `stderr`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 100,
|
|
"column": 36,
|
|
"stop_line": 100,
|
|
"stop_column": 66,
|
|
"path": "src/paperless_mail/tests/test_preprocessor.py",
|
|
"code": -2,
|
|
"name": "missing-attribute",
|
|
"description": "Object of class `str` has no attribute `decode`\n Did you mean `encode`?",
|
|
"concise_description": "Object of class `str` has no attribute `decode`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 298,
|
|
"column": 28,
|
|
"stop_line": 298,
|
|
"stop_column": 34,
|
|
"path": "src/paperless_mail/views.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`result` may be uninitialized",
|
|
"concise_description": "`result` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 304,
|
|
"column": 29,
|
|
"stop_line": 304,
|
|
"stop_column": 40,
|
|
"path": "src/paperless_mail/views.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`imap_server` may be uninitialized",
|
|
"concise_description": "`imap_server` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"line": 308,
|
|
"column": 26,
|
|
"stop_line": 308,
|
|
"stop_column": 34,
|
|
"path": "src/paperless_mail/views.py",
|
|
"code": -2,
|
|
"name": "unbound-name",
|
|
"description": "`defaults` may be uninitialized",
|
|
"concise_description": "`defaults` may be uninitialized",
|
|
"severity": "error"
|
|
}
|
|
]
|
|
}
|