mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-05 07:40:31 +00:00
documents/views.py suffers the same problem as serialisers.py: a single 5,395-line file covering every REST resource in the app. Restructures it into a package, one module per domain area, matching the same layout used for documents/serialisers/. paperless/urls.py and paperless_mail/views.py are updated to import from the new submodules. Test files that imported or mock.patch'd documents.views or documents.serialisers symbols directly are updated to point at the correct submodule for both splits. The mypy and pyrefly baselines are updated to reference the new file paths, and a stale comment in chat_qa.j2 pointing at the old location of _get_llm_output_language is corrected.
6417 lines
251 KiB
JSON
6417 lines
251 KiB
JSON
{
|
|
"errors": [
|
|
{
|
|
"column": 5,
|
|
"path": "src/documents/admin.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `FunctionType` has no attribute `short_description`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/admin.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`LogEntry` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/documents/barcodes.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Image` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/bulk_download.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `OriginalsOnlyStrategy.add_document` overrides parent class `BulkArchiveStrategy` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/bulk_download.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `ArchiveOnlyStrategy.add_document` overrides parent class `BulkArchiveStrategy` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/bulk_download.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `OriginalAndArchiveStrategy.add_document` overrides parent class `BulkArchiveStrategy` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`list[tuple[int, Unknown]] | list[tuple[int, None]]` is not assignable to variable `add_custom_fields` with type `dict[Unknown, Unknown] | list[int]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "Type `int` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "Type `int` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `dict[CustomField.FieldDataType, str]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 5,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"name": "unexpected-keyword",
|
|
"concise_description": "Unexpected keyword argument `transaction_id` in function `django.db.models.query.QuerySet.delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 57,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[int]` is not assignable to parameter `args` with type `tuple[Any, ...] | None` in function `celery.app.task.Task.apply_async`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/bulk_edit.py",
|
|
"name": "missing-argument",
|
|
"concise_description": "Missing argument `p` in function `pikepdf._core.PageList.remove`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/caching.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `bytes | None` is not assignable to parameter `data` with type `Buffer` in function `binascii.hexlify`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MLPClassifier` has no attribute `_optimizer`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MLPClassifier` has no attribute `_best_coefs`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MLPClassifier` has no attribute `_best_intercepts`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "missing-module-attribute",
|
|
"concise_description": "Could not import `InconsistentVersionWarning` from `sklearn.exceptions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`>=` is not supported between `datetime` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 36,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`ndarray | spmatrix` is not assignable to `ndarray`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 44,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`None` is not assignable to attribute `stop_words_` with type `set[Unknown]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `spmatrix` has no attribute `ravel`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`ndarray | spmatrix` is not assignable to variable `labels_tags_vectorized` with type `ndarray`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "unexpected-keyword",
|
|
"concise_description": "Unexpected keyword argument `sample_weight` in function `sklearn.neural_network._multilayer_perceptron.BaseMultilayerPerceptron.fit`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "unexpected-keyword",
|
|
"concise_description": "Unexpected keyword argument `sample_weight` in function `sklearn.neural_network._multilayer_perceptron.BaseMultilayerPerceptron.fit`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "unexpected-keyword",
|
|
"concise_description": "Unexpected keyword argument `sample_weight` in function `sklearn.neural_network._multilayer_perceptron.BaseMultilayerPerceptron.fit`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `transform`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `transform`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `inverse_transform`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "Type `None` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Expected 0 positional arguments, got 5 in function `object.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `renew_logging_group`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `input_doc`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `status_mgr`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 48,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 30,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumerPluginMixin` has no attribute `metadata`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `logger` with type `Logger | None` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `logger` with type `Logger | None` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `ConsumerPlugin.run` overrides parent class `AlwaysRunPluginMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `ConsumerPlugin.run` overrides parent class `NoSetupPluginMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `ConsumerPlugin.run` overrides parent class `NoCleanupPluginMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `ConsumerPlugin.run` overrides parent class `ConsumeTaskPlugin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[Path | str]` is not assignable to parameter `arguments` with type `list[str]` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `logger` with type `Logger | None` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `LoggerAdapter[Logger]` is not assignable to parameter `log` with type `Logger | None` in function `should_produce_archive`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `original_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 30,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `object | Unknown` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 58,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `deleted_at`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/converters.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[Path | str | Any]` is not assignable to parameter `arguments` with type `list[str]` in function `documents.utils.run_subprocess`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/converters.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `bytes | None` is not assignable to parameter `buffer` with type `Buffer` in function `_io.BufferedWriter.write`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/data_models.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `list` has no attribute `values_list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/data_models.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `list` has no attribute `values_list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/data_models.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "Type `Group` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/documents/data_models.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `Group`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/data_models.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "Type `Group` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/documents/data_models.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `Group`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/data_models.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`None` is not assignable to `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/file_handling.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/file_handling.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `object` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 53,
|
|
"path": "src/documents/file_handling.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Document | None` is not assignable to parameter `document` with type `Document` in function `format_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/file_handling.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/documents/filters.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SharedByUser` has no attribute `model`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/filters.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `QuerySet[Model, dict[str, Any]]` is not assignable to parameter `expression` with type `Combinable | str` in function `django.db.models.aggregates.Count.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/filters.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `QuerySet[Model, dict[str, Any]]` is not assignable to parameter `expression` with type `Combinable | str` in function `django.db.models.aggregates.Count.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/filters.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/filters.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 48,
|
|
"path": "src/documents/filters.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Unknown | None` is not assignable to dict key type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 5,
|
|
"path": "src/documents/filters.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `FunctionType` has no attribute `__signature__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/filters.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ForeignObjectRel` has no attribute `deconstruct`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/filters.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/filters.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/loggers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `LoggingMixin` has no attribute `logging_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/documents/management/commands/document_exporter.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | str` is not assignable to parameter `element` with type `str` in function `set.add`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/management/commands/document_importer.py",
|
|
"name": "bad-override-mutable-attribute",
|
|
"concise_description": "Class member `Command.salt` overrides parent class `CryptMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/matching.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/matching.py",
|
|
"name": "bad-argument-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"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/matching.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/documents/matching.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `content` with type `str` in function `documents.classifier.DocumentClassifier.predict_storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/matching.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `WorkflowTrigger` is not assignable to parameter `matching_model` with type `MatchingModel` in function `matches`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/matching.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`&` is not supported between `None` and `set[Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/matching.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `set[Any] | None` is not assignable to parameter `s` with type `Iterable[object]` in function `set.issubset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/matching.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`&` is not supported between `None` and `set[Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/matching.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `ConsumableDocument` in function `consumable_document_matches_workflow`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/matching.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `ConsumableDocument | Document` is not assignable to parameter `document` with type `Document` in function `existing_document_matches_workflow`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 11,
|
|
"path": "src/documents/models.py",
|
|
"name": "inconsistent-inheritance",
|
|
"concise_description": "Field `ordering` has inconsistent types inherited from multiple base classes",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/models.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/models.py",
|
|
"name": "unexpected-keyword",
|
|
"concise_description": "Unexpected keyword argument `transaction_id` in function `django.db.models.query.QuerySet.delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/models.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `UUID | Unknown` is not assignable to parameter `transaction_id` with type `str` in function `django_softdelete.models.SoftDeleteModel.delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/models.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `ShareLinkBundle.delete` overrides parent class `Model` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 54,
|
|
"path": "src/documents/models.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str` is not assignable to parameter `data_type` with type `CustomField.FieldDataType` in function `CustomFieldInstance.get_value_field_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 5,
|
|
"path": "src/documents/models.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`auditlog` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/parsers.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `list` has no attribute `exists`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `list` has no attribute `exclude`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `list` has no attribute `exists`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 6,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "bad-specialization",
|
|
"concise_description": "`int` is not assignable to upper bound `Model` of type variable `_Model`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Literal['global_objects']` is not assignable to parameter `name` with type `Literal['objects']` in function `django.db.models.base.ModelBase.__getattr__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `QuerySet[Model, Any]` is not assignable to declared return type `QuerySet[int, int]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `QuerySet[Model, Any]` is not assignable to declared return type `QuerySet[int, int]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `QuerySet[Model, Any]` is not assignable to declared return type `QuerySet[int, int]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `QuerySet[Model, Any]` is not assignable to declared return type `QuerySet[int, int]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 6,
|
|
"path": "src/documents/permissions.py",
|
|
"name": "bad-specialization",
|
|
"concise_description": "`int` is not assignable to upper bound `Model` of type variable `_Model`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/documents/plugins/helpers.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`BaseChannelLayer | None` is not assignable to attribute `_channel` with type `RedisPubSubChannelLayer | None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/regex.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `error` has no attribute `msg`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/search/_backend.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`correspondent` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/search/_backend.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`document_type` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/documents/search/_backend.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[int]` is not assignable to parameter `args` with type `tuple[Any, ...] | None` in function `celery.app.task.Task.apply_async`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 57,
|
|
"path": "src/documents/search/_backend.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[int]` is not assignable to parameter `args` with type `tuple[Any, ...] | None` in function `celery.app.task.Task.apply_async`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/search/_backend.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `_DocumentViewerStream.__iter__` overrides parent class `QuerySetStream` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/search/_query.py",
|
|
"name": "unexpected-keyword",
|
|
"concise_description": "Unexpected keyword argument `children` in function `whoosh_compat.ast.Node.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/search/_query.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Unpacked keyword argument `int | None` is not assignable to parameter `analyzed` with type `bool` in function `whoosh_compat.ast.Term.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 74,
|
|
"path": "src/documents/search/_query.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Unpacked keyword argument `int | None` is not assignable to parameter `analyzed` with type `bool` in function `whoosh_compat.ast.Term.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/search/_query.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `FieldRef | None` is not assignable to parameter `field` with type `FieldRef` in function `whoosh_compat.ast.Fuzzy.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/base.py",
|
|
"name": "bad-override-param-name",
|
|
"concise_description": "Class member `MatchingModelSerializer.validate` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 62,
|
|
"path": "src/documents/serialisers/base.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `dict[str, QuerySet[User, User]]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/serialisers/base.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `list` has no attribute `values_list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/base.py",
|
|
"name": "bad-override-param-name",
|
|
"concise_description": "Class member `OwnedObjectListSerializer.to_representation` overrides parent class `ListSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/base.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `context`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/documents/serialisers/base.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `BaseSerializer[Unknown] | Field[Unknown, Unknown, Unknown, Unknown] | None` has no attribute `get_shared_object_pks`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/serialisers/base.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Unknown | None` is not assignable to attribute `method_name` with type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 7,
|
|
"path": "src/documents/serialisers/bulk_edit.py",
|
|
"name": "invalid-inheritance",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 30,
|
|
"path": "src/documents/serialisers/documents.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/documents.py",
|
|
"name": "bad-override-param-name",
|
|
"concise_description": "Class member `SearchResultListSerializer.to_representation` overrides parent class `ListSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/serialisers/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `BaseSerializer[Unknown] | Field[Unknown, Unknown, Unknown, Unknown] | None` has no attribute `fetch_documents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `context`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `context`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/documents/serialisers/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `BaseSerializer[Unknown] | Field[Unknown, Unknown, Unknown, Unknown] | None` has no attribute `get_shared_object_pks`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/documents.py",
|
|
"name": "bad-override-param-name",
|
|
"concise_description": "Class member `SearchResultSerializer.to_representation` overrides parent class `DocumentSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/documents.py",
|
|
"name": "bad-override-mutable-attribute",
|
|
"concise_description": "Class member `Meta.list_serializer_class` overrides parent class `Meta` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/serialisers/metadata.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`ManyRelatedField | RelatedField[@_, @_, Any]` is not assignable to attribute `parent` with type `BaseSerializer[Unknown]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/serialisers/metadata.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `Mapping[str, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/metadata.py",
|
|
"name": "bad-override-param-name",
|
|
"concise_description": "Class member `TagSerializer.validate` overrides parent class `MatchingModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/serialisers/metadata.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/serialisers/metadata.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/metadata.py",
|
|
"name": "bad-override-param-name",
|
|
"concise_description": "Class member `CustomFieldInstanceSerializer.get_value` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/metadata.py",
|
|
"name": "bad-override-param-name",
|
|
"concise_description": "Class member `CustomFieldInstanceSerializer.validate` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 34,
|
|
"path": "src/documents/serialisers/metadata.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/serialisers/saved_views.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`Literal[SavedView.DisplayFields.CUSTOM_FIELD]` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 36,
|
|
"path": "src/documents/serialisers/saved_views.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 73,
|
|
"path": "src/documents/serialisers/sharing.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`address` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/serialisers/system.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `UiSettingsViewSerializer.create` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 46,
|
|
"path": "src/documents/serialisers/tasks.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `dict.get` called with arguments: (str, str)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/documents/serialisers/tasks.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `dict.get` called with arguments: (str, str)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/documents/serialisers/tasks.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `dict.get` called with arguments: (str, Literal['manual_task'])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 52,
|
|
"path": "src/documents/serialisers/workflows.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`triggers` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 62,
|
|
"path": "src/documents/serialisers/workflows.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`actions` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 72,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_correspondents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 72,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_document_types`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 70,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_storage_paths`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 46,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 49,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Any | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `is_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 43,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`str` is not assignable to dict key `filename` with type `datetime`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Any | None` is not assignable to dict key `archive_filename` with type `datetime`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `old_path` with type `Path` in function `validate_move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `new_path` with type `Path` in function `validate_move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 46,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-specialization",
|
|
"concise_description": "`Path | None` is not assignable to upper bound `PathLike[str] | str` of type variable `_StrPathT`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `src` with type `PathLike[str] | str` in function `shutil.move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`move_original` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 55,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`old_source_path` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`move_archive` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `is_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-specialization",
|
|
"concise_description": "`Path | None` is not assignable to upper bound `PathLike[str] | str` of type variable `_StrPathT`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `src` with type `PathLike[str] | str` in function `shutil.move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 56,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`old_archive_path` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`old_filename` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`old_archive_filename` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 49,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `is_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "`in` is not supported between `str` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `remove`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `source_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 60,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Document` has no attribute `original_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `original_file` with type `Path` in function `documents.workflows.actions.execute_email_action`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `original_file` with type `Path` in function `documents.workflows.actions.execute_webhook_action`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Task` has no attribute `delay_on_commit`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 34,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `save`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 49,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `dict.get` called with arguments: (Unknown | None, Literal[PaperlessTask.Status.FAILURE])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BaseDatabaseWrapper` has no attribute `close_pool`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/signals/handlers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BaseDatabaseWrapper` has no attribute `close_pool`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tasks.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `task_id` with type `str` in function `documents.plugins.base.ConsumeTaskPlugin.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tasks.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `str | None` is not assignable to declared return type `ConsumeFileDuplicateResult | ConsumeFileStoppedResult | ConsumeFileSuccessResult | None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 49,
|
|
"path": "src/documents/tasks.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `Path` in function `documents.utils.compute_checksum`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/documents/tasks.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `src` with type `PathLike[str] | str` in function `shutil.move`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/tasks.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `run_at`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 1,
|
|
"path": "src/documents/templating/filepath.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `dict[str, ((obj: Sized, /) -> int) | ((s: Any, /) -> Markup) | ((s: Any, /) -> str) | ((env: Environment, s: str, length: int = 255, killwords: bool = False, end: str = '...', leeway: int | None = None) -> str) | ((environment: Environment, obj: Any, name: str) -> Undefined | Any) | ((environment: Environment, s: str, width: int = 79, break_long_words: bool = True, wrapstring: str | None = None, break_on_hyphens: bool = True) -> str) | ((eval_ctx: EvalContext, d: Mapping[str, Any], autospace: bool = True) -> str) | ((eval_ctx: EvalContext, s: str, old: str, new: str, count: int | None = None) -> str) | ((eval_ctx: EvalContext, value: str, trim_url_limit: int | None = None, nofollow: bool = False, target: str | None = None, rel: str | None = None, extra_schemes: Iterable[str] | None = None) -> str) | ((eval_ctx: EvalContext, value: Any, indent: int | None = None) -> Markup) | ((s: str) -> int) | ((s: str) -> str) | ((s: str, width: int | str = 4, first: bool = False, blank: bool = False) -> str) | ((value: HasHTML | str) -> Markup) | ((value: HasHTML | str) -> str) | ((value: Iterable[tuple[str, Any]] | Mapping[str, Any] | str) -> str) | ((value: float | int | str, binary: bool = False) -> str) | ((value: float, precision: int = 0, method: Literal['ceil', 'common', 'floor'] = 'common') -> float) | ((value: str) -> Markup) | ((value: str, chars: str | None = None) -> str) | ((value: str, width: int = 80) -> str) | ((value: str, *args: Any, **kwargs: Any) -> str) | ((value: Any) -> str) | ((value: Any, default: float = 0.0) -> float) | ((value: Any, default: int = 0, base: int = 10) -> int) | ((*args: Unknown, **kwargs: Unknown) -> Unknown) | Overload[(context: Context, value: AsyncIterable[Any] | Iterable[Any], name: str, *args: Any, **kwargs: Any) -> Iterable[Any], (context: Context, value: AsyncIterable[Any] | Iterable[Any], *, attribute: str = ..., default: Any | None = None) -> Iterable[Any]] | Overload[(value: str) -> str, [V](value: Iterable[V]) -> Iterable[V]] | [_T](x: SupportsAbs[_T], /) -> _T | [K, V](value: Mapping[K, V] | Undefined) -> Iterator[tuple[K, V]] | [K, V](value: Mapping[K, V], case_sensitive: bool = False, by: Literal['key', 'value'] = 'key', reverse: bool = False) -> list[tuple[K, V]] | [V](environment: Environment, value: Iterable[V], reverse: bool = False, case_sensitive: bool = False, attribute: int | str | None = None) -> list[V] | [V](environment: Environment, value: Iterable[V], case_sensitive: bool = False, attribute: int | str | None = None) -> Undefined | V | [V](value: V, default_value: V = '', boolean: bool = False) -> V | [V](environment: Environment, seq: Reversible[V]) -> Undefined | V | [V](context: Context, seq: Sequence[V]) -> Undefined | V | [V](value: Iterable[V], linecount: int, fill_with: V | None = None) -> Iterator[list[V]]]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/templating/filepath.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/templating/filepath.py",
|
|
"name": "bad-return",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/templating/filters.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`datetime | None` is not assignable to variable `value` with type `date | datetime | str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/templating/filters.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`date | None` is not assignable to variable `value` with type `datetime | str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/templating/filters.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `str` has no attribute `strftime`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 1,
|
|
"path": "src/documents/templating/workflows.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `dict[str, ((obj: Sized, /) -> int) | ((s: Any, /) -> Markup) | ((s: Any, /) -> str) | ((env: Environment, s: str, length: int = 255, killwords: bool = False, end: str = '...', leeway: int | None = None) -> str) | ((environment: Environment, obj: Any, name: str) -> Undefined | Any) | ((environment: Environment, s: str, width: int = 79, break_long_words: bool = True, wrapstring: str | None = None, break_on_hyphens: bool = True) -> str) | ((eval_ctx: EvalContext, d: Mapping[str, Any], autospace: bool = True) -> str) | ((eval_ctx: EvalContext, s: str, old: str, new: str, count: int | None = None) -> str) | ((eval_ctx: EvalContext, value: str, trim_url_limit: int | None = None, nofollow: bool = False, target: str | None = None, rel: str | None = None, extra_schemes: Iterable[str] | None = None) -> str) | ((eval_ctx: EvalContext, value: Any, indent: int | None = None) -> Markup) | ((s: str) -> int) | ((s: str) -> str) | ((s: str, width: int | str = 4, first: bool = False, blank: bool = False) -> str) | ((value: HasHTML | str) -> Markup) | ((value: HasHTML | str) -> str) | ((value: Iterable[tuple[str, Any]] | Mapping[str, Any] | str) -> str) | ((value: float | int | str, binary: bool = False) -> str) | ((value: float, precision: int = 0, method: Literal['ceil', 'common', 'floor'] = 'common') -> float) | ((value: str) -> Markup) | ((value: str, chars: str | None = None) -> str) | ((value: str, width: int = 80) -> str) | ((value: str, *args: Any, **kwargs: Any) -> str) | ((value: Any) -> str) | ((value: Any, default: float = 0.0) -> float) | ((value: Any, default: int = 0, base: int = 10) -> int) | ((*args: Unknown, **kwargs: Unknown) -> Unknown) | Overload[(context: Context, value: AsyncIterable[Any] | Iterable[Any], name: str, *args: Any, **kwargs: Any) -> Iterable[Any], (context: Context, value: AsyncIterable[Any] | Iterable[Any], *, attribute: str = ..., default: Any | None = None) -> Iterable[Any]] | Overload[(value: str) -> str, [V](value: Iterable[V]) -> Iterable[V]] | [_T](x: SupportsAbs[_T], /) -> _T | [K, V](value: Mapping[K, V] | Undefined) -> Iterator[tuple[K, V]] | [K, V](value: Mapping[K, V], case_sensitive: bool = False, by: Literal['key', 'value'] = 'key', reverse: bool = False) -> list[tuple[K, V]] | [V](environment: Environment, value: Iterable[V], reverse: bool = False, case_sensitive: bool = False, attribute: int | str | None = None) -> list[V] | [V](environment: Environment, value: Iterable[V], case_sensitive: bool = False, attribute: int | str | None = None) -> Undefined | V | [V](value: V, default_value: V = '', boolean: bool = False) -> V | [V](environment: Environment, seq: Reversible[V]) -> Undefined | V | [V](context: Context, seq: Sequence[V]) -> Undefined | V | [V](value: Iterable[V], linecount: int, fill_with: V | None = None) -> Iterator[list[V]]]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/templating/workflows.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `None` is not assignable to declared return type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stdout` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/management/test_management_base_cmd.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`StringIO` is not assignable to attribute `stderr` with type `OutputWrapper`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/tests/search/test_cjk_clause.py",
|
|
"name": "missing-module-attribute",
|
|
"concise_description": "Could not import `SettingsWrapper` from `pytest_django.fixtures`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/documents/tests/search/test_cjk_clause.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `TestCjkParseFailureDegradesGracefully.test_a_cjk_run_tantivy_cannot_parse_drops_the_clause_only._RaisingIndex` is not assignable to parameter `index` with type `Index` in function `documents.search._query._parse_cjk_text`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/tests/search/test_cjk_clause.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `index` with type `Index` in function `documents.search._query._build_cjk_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 18,
|
|
"path": "src/documents/tests/search/test_cjk_emit_registry.py",
|
|
"name": "not-callable",
|
|
"concise_description": "Expected a callable, got `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/documents/tests/search/test_cjk_emit_registry.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/documents/tests/search/test_cjk_leaf_rewrite.py",
|
|
"name": "not-callable",
|
|
"concise_description": "Expected a callable, got `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/tests/search/test_cjk_widening.py",
|
|
"name": "missing-module-attribute",
|
|
"concise_description": "Could not import `SettingsWrapper` from `pytest_django.fixtures`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/tests/search/test_date_keyword_timezone.py",
|
|
"name": "missing-module-attribute",
|
|
"concise_description": "Could not import `SettingsWrapper` from `pytest_django.fixtures`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/tests/search/test_fuzzy_scoring.py",
|
|
"name": "missing-module-attribute",
|
|
"concise_description": "Could not import `SettingsWrapper` from `pytest_django.fixtures`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/tests/search/test_fuzzy_widening.py",
|
|
"name": "missing-module-attribute",
|
|
"concise_description": "Could not import `SettingsWrapper` from `pytest_django.fixtures`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/tests/search/test_fuzzy_widening.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `object` is not assignable to parameter `node` with type `Node` in function `whoosh_compat.emitters.tantivy_.emit`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/documents/tests/search/test_fuzzy_widening.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Unpacked keyword argument `object` is not assignable to parameter `index` with type `Index` in function `whoosh_compat.emitters.tantivy_.emit`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/documents/tests/search/test_fuzzy_widening.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Unpacked keyword argument `object` is not assignable to parameter `registry` with type `FieldRegistry` in function `whoosh_compat.emitters.tantivy_.emit`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/documents/tests/search/test_fuzzy_widening.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Unpacked keyword argument `object` is not assignable to parameter `rewrite_leaf` with type `((Phrase | Term) -> Node) | None` in function `whoosh_compat.emitters.tantivy_.emit`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/search/test_permission_field_isolation.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Group | None` is not assignable to parameter `target` with type `Group | User` in function `paperless_testing.permissions.grant_object`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser` is not assignable to parameter `user` with type `AbstractUser` in function `documents.search._backend.build_permission_filter`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser` is not assignable to parameter `user` with type `AbstractUser` in function `documents.search._backend.build_permission_filter`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser` is not assignable to parameter `user` with type `AbstractUser` in function `documents.search._backend.build_permission_filter`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser` is not assignable to parameter `user` with type `AbstractUser` in function `documents.search._backend.build_permission_filter`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser` is not assignable to parameter `user` with type `AbstractUser` in function `documents.search._backend.build_permission_filter`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_query.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 47,
|
|
"path": "src/documents/tests/search/test_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/tests/search/test_schema_fingerprint.py",
|
|
"name": "missing-module-attribute",
|
|
"concise_description": "Could not import `SettingsWrapper` from `pytest_django.fixtures`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/tests/search/test_schema_fingerprint.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_schema_fingerprint.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `typing.MutableMapping.update` called with arguments: (dict[str, object])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_tokenizer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_tokenizer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_tokenizer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/search/test_tokenizer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `SearchResult` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/documents/tests/search/test_widen_leaf.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Node | None` is not assignable to parameter `child` with type `Node` in function `whoosh_compat.ast.Boosted.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/search/test_widen_leaf.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `tuple[Term, Node | None]` is not assignable to parameter `children` with type `tuple[Node, ...]` in function `whoosh_compat.ast.Or.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/documents/tests/search/test_widen_leaf.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `tuple[Term, Node | None]` is not assignable to parameter `children` with type `tuple[Node, ...]` in function `whoosh_compat.ast.Or.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/search/test_widen_leaf.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `tuple[Term, Node | None]` is not assignable to parameter `children` with type `tuple[Node, ...]` in function `whoosh_compat.ast.Or.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ModelForm` has no attribute `request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ModelForm` has no attribute `request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_admin.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ModelForm` has no attribute `request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 30,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/tests/test_api_app_config.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ImageFile` has no attribute `text`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_api_bulk_download.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_api_bulk_download.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_api_bulk_download.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_api_bulk_download.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_api_bulk_download.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_api_bulk_download.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_api_bulk_download.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_api_bulk_download.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_api_chat.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedResponse` has no attribute `streaming_content`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_document_versions.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_document_versions.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_document_versions.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_document_versions.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_document_versions.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `bytes` is not assignable to parameter `data` with type `str` in function `rest_framework.test.APIClient.generic`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[int] | None` is not assignable to parameter `first` with type `Iterable[Any]` in function `unittest.case.TestCase.assertCountEqual`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "Type `None` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `User` has no attribute `ui_settings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `User` has no attribute `ui_settings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `value`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_api_documents.py",
|
|
"name": "bad-unpacking",
|
|
"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] | list[Unknown] | str in function `django.db.models.manager.Manager.create`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/documents/tests/test_api_filter_by_custom_fields.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `urllib.parse.quote` called with arguments: (str | None, safe=Literal[''])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_api_objects.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 34,
|
|
"path": "src/documents/tests/test_api_objects.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `Group | dict[Unknown, Unknown]` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `owner`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `owner`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 55,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Tag | None` is not assignable to parameter `obj` with type `Model` in function `guardian.core.ObjectPermissionChecker.has_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 53,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Tag | None` is not assignable to parameter `obj` with type `Model` in function `guardian.shortcuts.get_perms`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `owner`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 53,
|
|
"path": "src/documents/tests/test_api_permissions.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Tag | None` is not assignable to parameter `obj` with type `Model` in function `guardian.shortcuts.get_perms`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 49,
|
|
"path": "src/documents/tests/test_api_post_document_nfc.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `unistr` with type `str` in function `unicodedata.is_normalized`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 49,
|
|
"path": "src/documents/tests/test_api_post_document_nfc.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `unistr` with type `str` in function `unicodedata.is_normalized`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `provider_id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `User` has no attribute `socialaccount_set`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `key`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `User` has no attribute `socialaccount_set`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/tests/test_api_profile.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `User` has no attribute `socialaccount_set`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 34,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_api_schema.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `SchemaGenerator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_api_uisettings.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `User` has no attribute `ui_settings`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_api_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_api_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `ai_suggestion_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/tests/test_api_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `ai_create_missing`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/tests/test_api_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `ai_overwrite_existing`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `GetReaderPluginMixin` has no attribute `dirs`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 5,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `contextlib.contextmanager` called with arguments: ((self: Self@TestAsnBarcode, filepath: Path) -> BarcodePlugin)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Generator function should return `Generator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 5,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `contextlib.contextmanager` called with arguments: ((self: Self@TestTagBarcode, filepath: Path) -> BarcodePlugin)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/documents/tests/test_barcodes.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Generator function should return `Generator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `correspondent` with type `Correspondent` in function `documents.bulk_edit.set_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 81,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `correspondent` with type `Correspondent` in function `documents.bulk_edit.set_correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-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"
|
|
},
|
|
{
|
|
"column": 81,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-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"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `storage_path` with type `StoragePath` in function `documents.bulk_edit.set_storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `storage_path` with type `StoragePath` in function `documents.bulk_edit.set_storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `storage_path` with type `StoragePath` in function `documents.bulk_edit.set_storage_path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 48,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `Group | dict[Unknown, Unknown]` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 48,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `Group | dict[Unknown, Unknown]` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 34,
|
|
"path": "src/documents/tests/test_bulk_edit.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `Group | dict[Unknown, Unknown]` has no attribute `count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 18,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `classes_`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 18,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `classes_`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `transform`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"name": "missing-module-attribute",
|
|
"concise_description": "Could not import `InconsistentVersionWarning` from `sklearn.exceptions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_classifier.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `classes_`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `Path | None` is not assignable to declared return type `Path`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentUpdatedData` does not have key `current_progress`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentsDeletedData` does not have key `current_progress`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentUpdatedData` does not have key `max_progress`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentsDeletedData` does not have key `max_progress`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentUpdatedData` does not have key `status`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentsDeletedData` does not have key `status`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentUpdatedData` does not have key `current_progress`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentsDeletedData` does not have key `current_progress`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentUpdatedData` does not have key `max_progress`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentsDeletedData` does not have key `max_progress`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentUpdatedData` does not have key `status`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "TypedDict `DocumentsDeletedData` does not have key `status`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `archive_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `archive_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_consumer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `archive_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_document_list_effective_content_annotation.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`SimpleNamespace` is not assignable to attribute `request` with type `Request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_document_list_effective_content_annotation.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`SimpleNamespace` is not assignable to attribute `request` with type `Request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_document_list_effective_content_annotation.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Document` has no attribute `effective_content`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_document_list_effective_content_annotation.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Document` has no attribute `_prefetched_objects_cache`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/tests/test_file_handling.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `path` with type `PathLike[str] | str` in function `paperless_testing.assertions.FileSystemAssertsMixin.assertIsFile`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/tests/test_filters.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_management_exporter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Model` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Model` has no attribute `correspondent_id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_management_importer.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Model` has no attribute `correspondent_id`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_migration_sha256_checksums.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `TestMigrations` has no attribute `_fixture_teardown`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_models.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_models.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_parsers.py",
|
|
"name": "not-callable",
|
|
"concise_description": "Expected a callable, got `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_parsers.py",
|
|
"name": "not-callable",
|
|
"concise_description": "Expected a callable, got `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_parsers.py",
|
|
"name": "not-callable",
|
|
"concise_description": "Expected a callable, got `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 36,
|
|
"path": "src/documents/tests/test_permission_filtering_security.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AnonymousUser` is not assignable to parameter `user` with type `User | None` in function `documents.permissions.permitted_document_ids`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 46,
|
|
"path": "src/documents/tests/test_permission_filtering_security.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 56,
|
|
"path": "src/documents/tests/test_permission_filtering_security.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_correspondents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 56,
|
|
"path": "src/documents/tests/test_permission_filtering_security.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_document_types`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 55,
|
|
"path": "src/documents/tests/test_permission_filtering_security.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_storage_paths`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_sanity_check.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_sanity_check.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/tests/test_sanity_check.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/tests/test_share_link_bundles.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedResponse` has no attribute `streaming_content`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_tag_hierarchy.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_tag_hierarchy.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "`in` is not supported between `Literal['traceback']` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/documents/tests/test_task_signals.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `app_logo`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `save`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `app_logo`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedWSGIResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `render`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `render`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `_MonkeyPatchedWSGIResponse` is not assignable to parameter `response` with type `StreamingHttpResponse` in function `paperless_testing.http.read_streaming_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `suggestions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `suggestions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `suggestions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `str` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 39,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 43,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`list[str] | Any` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`list[str] | Any` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Group | dict[Unknown, Unknown]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `list.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Missing positional argument `value` in function `list.count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Group | dict[Unknown, Unknown]` is not assignable to `QuerySet[Any, Any]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | str` is not assignable to parameter `original_file` with type `Path` in function `documents.data_models.ConsumableDocument.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `int` is not assignable to parameter `trigger_type` with type `WorkflowTrigger.WorkflowTriggerType` in function `documents.signals.handlers.run_workflows`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `files` with type `dict[Unknown, Unknown]` in function `celery.app.task.Task.__call__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | str` is not assignable to parameter `original_file` with type `Path` in function `documents.data_models.ConsumableDocument.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/documents/tests/test_workflows.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | str` is not assignable to parameter `original_file` with type `Path` in function `documents.data_models.ConsumableDocument.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/utils.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `object` has no attribute `setUp`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/tests/utils.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `object` has no attribute `tearDown`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/utils.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `GetConsumerMixin` has no attribute `dirs`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/utils.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `GetConsumerMixin` has no attribute `dirs`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/tests/utils.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `GetConsumerMixin` has no attribute `dirs`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 34,
|
|
"path": "src/documents/utils.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`float | int | None` is not assignable to attribute `MAX_IMAGE_PIXELS` with type `int | None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/views/base.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BulkPermissionMixin` has no attribute `queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/documents/views/base.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `object` has no attribute `get_serializer_context`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/views/base.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BulkPermissionMixin` has no attribute `filter_queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/documents/views/base.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BulkPermissionMixin` has no attribute `get_queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/views/base.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BulkPermissionMixin` has no attribute `queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/views/base.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "Type `None` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 18,
|
|
"path": "src/documents/views/base.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentSelectionMixin._resolve_document_ids`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 18,
|
|
"path": "src/documents/views/base.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `DocumentOperationPermissionMixin._has_document_permissions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 18,
|
|
"path": "src/documents/views/bulk_edit.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `documents.views.base.DocumentSelectionMixin._resolve_document_ids`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 18,
|
|
"path": "src/documents/views/bulk_edit.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User` in function `documents.views.base.DocumentOperationPermissionMixin._has_document_permissions`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/views/bulk_edit.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`old_values` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/views/bulk_edit.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BaseSerializer` has no attribute `get_object_class`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/documents/views/bulk_edit.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User | None` in function `documents.permissions.permitted_object_ids`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/views/bulk_edit.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/views/bulk_edit.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `has_perm`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 48,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Correspondent` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 48,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `DocumentType` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 48,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `StoragePath` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Class `DocumentFilterSet` has no class attribute `declared_filters`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `DocumentViewSet.destroy` overrides parent class `DestroyModelMixin` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 57,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_correspondents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 52,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_document_types`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 58,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `DocumentClassifier | None` is not assignable to parameter `classifier` with type `DocumentClassifier` in function `documents.matching.match_storage_paths`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `ClassificationSuggestions` is not assignable to parameter `suggestions` with type `dict[Unknown, Unknown]` in function `documents.caching.set_llm_suggestions_cache`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 5,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-specialization",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 36,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "missing-argument",
|
|
"concise_description": "Missing argument `request` in function `DocumentViewSet.email_documents`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `UnifiedSearchViewSet.list` overrides parent class `DocumentViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `BasePagination | None` has no attribute `get_page_size`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 58,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `BasePagination | None` has no attribute `page_size`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "Type `None` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 43,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `TantivyRelevanceList` is not assignable to parameter `queryset` with type `QuerySet[Any, @_] | Sequence[@_]` in function `rest_framework.generics.GenericAPIView.paginate_queryset`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/views/documents.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`+` is not supported between `None` and `Literal[1]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/views/index.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `username`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/documents/views/index.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `AbstractBaseUser | AnonymousUser` has no attribute `get_full_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/views/index.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `app_logo`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/documents/views/metadata.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Self@CorrespondentViewSet` is not assignable to parameter `instance` with type `Options[Any] | None` in function `django.db.models.manager.BaseManager.__get__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/documents/views/metadata.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `annotate`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/views/metadata.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Self@CorrespondentViewSet` is not assignable to parameter `instance` with type `Options[Any] | None` in function `django.db.models.manager.BaseManager.__get__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/views/metadata.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `annotate`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 52,
|
|
"path": "src/documents/views/search.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Correspondent` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 52,
|
|
"path": "src/documents/views/search.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Tag` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 52,
|
|
"path": "src/documents/views/search.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `DocumentType` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 52,
|
|
"path": "src/documents/views/search.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `StoragePath` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 52,
|
|
"path": "src/documents/views/search.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `CustomField` has no attribute `document_count`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/documents/views/search.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser | None` is not assignable to parameter `user` with type `AbstractUser | None` in function `documents.search._backend.TantivyBackend.autocomplete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/views/sharing.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Sequence` has no attribute `append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/documents/views/system.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`all_migrations` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/views/system.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `User | None` in function `documents.permissions.permitted_document_ids`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/views/tasks.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `TasksViewSet.get_serializer_class` overrides parent class `ReadOnlyModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/views/tasks.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `is_staff`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 44,
|
|
"path": "src/documents/views/tasks.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/views/workflows.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `WorkflowTriggerViewSet.partial_update` overrides parent class `ModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/views/workflows.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `WorkflowActionViewSet.partial_update` overrides parent class `ModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `title`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 80,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 30,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `object` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `correspondent`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 30,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `object` has no attribute `name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `document_type`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `object` has no attribute `username`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 58,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `owner`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `original_filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `filename`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `added`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `created`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `ConsumableDocument` has no attribute `pk`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Document` has no attribute `original_file`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `subject`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `body`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `include_document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `to`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `to`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `use_params`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `params`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 39,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `object` has no attribute `items`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `body`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 55,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `object` has no attribute `items`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `include_document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `as_json`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 43,
|
|
"path": "src/documents/workflows/actions.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Unknown | None` is not assignable to `Document`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 8,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_view_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_view_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_change_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_change_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 8,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 8,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_tags`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_view_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_view_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_change_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_change_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 8,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_assign_custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_view_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_view_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_change_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_change_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 10,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `QuerySet` has no attribute `hard_delete`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_view_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_view_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_change_users`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_change_groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 10,
|
|
"path": "src/documents/workflows/mutations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `WorkflowAction` has no attribute `has_remove_custom_fields`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/paperless/adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get_host`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/paperless/adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get_host`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/paperless/adapter.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`AbstractBaseUser` is not assignable to `User`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/paperless/adapter.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`AbstractBaseUser` is not assignable to `User`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/paperless/admin.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/paperless/admin.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `PaperlessUserForm` has no attribute `request`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless/auth.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `Awaitable[HttpResponseBase] | HttpResponseBase` is not assignable to declared return type `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/auth.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `Awaitable[HttpResponseBase] | HttpResponseBase` is not assignable to declared return type `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 5,
|
|
"path": "src/paperless/celery.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `(obj: object) -> bytes` is not assignable to parameter `encoder` with type `((Any) -> str) | None` in function `kombu.serialization.register`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 5,
|
|
"path": "src/paperless/celery.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `(payload: bytes) -> Any` is not assignable to parameter `decoder` with type `((str) -> Any) | None` in function `kombu.serialization.register`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/paperless/checks.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless/checks.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `list[Error]` is not assignable to declared return type `list[Error | Warning]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/paperless/checks.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/paperless/checks.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `subprocess.run` called with arguments: (list[str | None], capture_output=Literal[True])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/checks.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/paperless/checks.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Error` is not assignable to parameter `object` with type `Warning` in function `list.append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/paperless/checks.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `list[Warning]` is not assignable to declared return type `list[Error]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/config.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `ApplicationConfiguration | None` is not assignable to declared return type `ApplicationConfiguration`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/paperless/config.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`OutputTypeChoices | str` is not assignable to attribute `output_type` with type `OutputTypeChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/paperless/config.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`ModeChoices | str` is not assignable to attribute `mode` with type `ModeChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless/config.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`ArchiveFileGenerationChoices | str` is not assignable to attribute `archive_file_generation` with type `ArchiveFileGenerationChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/paperless/config.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`CleanChoices | str` is not assignable to attribute `clean` with type `CleanChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless/config.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`ColorConvertChoices | str` is not assignable to attribute `color_conversion_strategy` with type `ColorConvertChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/paperless/config.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`str | None` is not assignable to attribute `app_title` with type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/paperless/config.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Unknown | None` is not assignable to attribute `app_logo` with type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless/config.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`RemoteOCRMode | str` is not assignable to attribute `remote_ocr_mode` with type `RemoteOCRMode`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/paperless/consumers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 22,
|
|
"path": "src/paperless/consumers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/consumers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `ProgressUpdateData` is not assignable to parameter `data` with type `PermissionsData` in function `StatusConsumer._can_view`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/consumers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `DocumentUpdatedData` is not assignable to parameter `data` with type `PermissionsData` in function `StatusConsumer._can_view`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/paperless/network.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `list[int | str]` is not assignable to declared return type `list[str]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/paperless/parsers/tesseract.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `bytes | None` is not assignable to parameter `data` with type `Buffer` in function `pathlib.Path.write_bytes`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/serialisers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `PasswordValidationMixin` has no attribute `instance`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless/serialisers.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `ApplicationConfigurationSerializer.run_validation` overrides parent class `ModelSerializer` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/paperless/serialisers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `UploadedFile` has no attribute `field_name`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 43,
|
|
"path": "src/paperless/settings/__init__.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`dict[str, int | list[str] | str]` is not assignable to dict key `CONFIG` with type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 30,
|
|
"path": "src/paperless/settings/__init__.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `object` with type `str` in function `list.append`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 39,
|
|
"path": "src/paperless/settings/__init__.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/paperless/settings/custom.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | dict[str, float]` is not assignable to parameter `key` with type `str` in function `os.getenv`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 52,
|
|
"path": "src/paperless/settings/custom.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `dict` has no attribute `split`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/paperless/settings/custom.py",
|
|
"name": "invalid-argument",
|
|
"concise_description": "Expected a mapping, got str | dict[str, float]",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/paperless/tests/parsers/conftest.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `(**django_settings_overrides: Unknown) -> _GeneratorContextManager[RasterisedDocumentParser]` is not assignable to declared return type `(...) -> Generator[RasterisedDocumentParser]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 47,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser_live.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `subprocess.run` called with arguments: (list[str | None], check=Literal[True])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/paperless/tests/parsers/test_mail_parser_live.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `pdf_path` with type `Path` in function `extract_text`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/paperless/tests/parsers/test_parse_modes.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`str` is not assignable to attribute `mode` with type `ModeChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 34,
|
|
"path": "src/paperless/tests/parsers/test_remote_parser.py",
|
|
"name": "bad-argument-count",
|
|
"concise_description": "Expected 1 more positional argument",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 30,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_custom_settings.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str` is not assignable to parameter `image` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.get_dpi`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str` is not assignable to parameter `image` with type `Path` in function `paperless.parsers.tesseract.RasterisedDocumentParser.calculate_a4_dpi`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`str` is not assignable to attribute `mode` with type `ModeChoices`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 14,
|
|
"path": "src/paperless/tests/parsers/test_tesseract_parser.py",
|
|
"name": "bad-context-manager",
|
|
"concise_description": "Cannot use `Generator[RasterisedDocumentParser]` as a context manager",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 19,
|
|
"path": "src/paperless/tests/parsers/test_tika_parser.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Path | None` is not assignable to parameter `*args` with type `PathLike[str] | str` in function `pathlib.Path.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 43,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `request` with type `HttpRequest` in function `allauth.account.adapter.DefaultAccountAdapter.is_open_for_signup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 43,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `request` with type `HttpRequest` in function `allauth.account.adapter.DefaultAccountAdapter.is_open_for_signup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 47,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `request` with type `HttpRequest` in function `allauth.account.adapter.DefaultAccountAdapter.is_open_for_signup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `is_superuser`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 43,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `request` with type `HttpRequest` in function `allauth.socialaccount.adapter.DefaultSocialAccountAdapter.is_open_for_signup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 49,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `sociallogin` with type `SocialLogin` in function `allauth.socialaccount.adapter.DefaultSocialAccountAdapter.is_open_for_signup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 47,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `request` with type `HttpRequest` in function `allauth.socialaccount.adapter.DefaultSocialAccountAdapter.is_open_for_signup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 53,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `sociallogin` with type `SocialLogin` in function `allauth.socialaccount.adapter.DefaultSocialAccountAdapter.is_open_for_signup`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 49,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `request` with type `HttpRequest` in function `allauth.socialaccount.adapter.DefaultSocialAccountAdapter.get_connect_redirect_url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless/tests/test_adapter.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `AbstractBaseUser` has no attribute `groups`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/paperless/tests/test_api_auth.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `FunctionType` has no attribute `view_class`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/paperless/tests/test_api_auth.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `FunctionType` has no attribute `view_class`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 47,
|
|
"path": "src/paperless/tests/test_auth_middleware.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `(request: HttpRequest) -> None` is not assignable to parameter `get_response` with type `_AnyGetResponseCallable` in function `django.utils.deprecation.MiddlewareMixin.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "`in` is not supported between `str` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "`in` is not supported between `str` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `str.join` called with arguments: (Generator[str | None])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "`in` is not supported between `Literal['PAPERLESS_DB_TIMEOUT']` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "`not in` is not supported between `str` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "`in` is not supported between `Literal['PAPERLESS_DB_OPTIONS']` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/tests/test_checks.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "`in` is not supported between `Literal['v2.20.15']` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless/tests/test_registry.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/paperless/tests/test_signals.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/paperless/tests/test_signals.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/paperless/tests/test_views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `streaming_content`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless/urls.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`((request: HttpRequest, *args: Unknown, **kwargs: Unknown) -> HttpResponseRedirect | Unknown) | ((view_func: Unknown) -> (request: HttpRequest, *args: Unknown, **kwargs: Unknown) -> HttpResponseRedirect | Unknown)` is not assignable to attribute `login` with type `(request: HttpRequest, extra_context: dict[str, Any] | None = ...) -> HttpResponse`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless/urls.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `django.urls.conf.path` called with arguments: (Literal['ws/status/'], _ASGIApplicationProtocol)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless/validators.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `EllipsisType` has no attribute `lower`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless/validators.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `EllipsisType | Unknown` is not assignable to parameter `text_or_uri_element` with type `_Element | bytes | str | None` in function `lxml.etree.QName.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless/validators.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `str.join` called with arguments: (Iterator[_AnyStr] | Unknown)",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless/validators.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `EllipsisType` has no attribute `items`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `paginator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `paginator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `paginator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless/views.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `UserViewSet.create` overrides parent class `ModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless/views.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `UserViewSet.update` overrides parent class `ModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless/views.py",
|
|
"name": "bad-override",
|
|
"concise_description": "Class member `UserViewSet.destroy` overrides parent class `ModelViewSet` in an inconsistent manner",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `set_password`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `save`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `save`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/paperless/views.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AbstractBaseUser | AnonymousUser` is not assignable to parameter `user` with type `AbstractBaseUser` in function `allauth.mfa.adapter.DefaultMFAAdapter.build_totp_url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless/views.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`Authenticator | None` is not assignable to `Authenticator`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 34,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `RecoveryCodes | TOTP | WebAuthn` has no attribute `get_unused_codes`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `llm_embedding_backend`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `llm_embedding_chunk_size`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `llm_embedding_endpoint`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `llm_embedding_model`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `llm_context_size`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of type `AbstractBaseUser | AnonymousUser` has no attribute `socialaccount_set`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/paperless/views.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Provider` has no attribute `get_brands`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/paperless_ai/ai_classifier.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `ClassificationSuggestions` is not assignable to parameter `raw` with type `dict[Unknown, Unknown]` in function `parse_ai_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 55,
|
|
"path": "src/paperless_ai/ai_classifier.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `ClassificationSuggestions` is not assignable to parameter `raw` with type `dict[Unknown, Unknown]` in function `parse_ai_response`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 46,
|
|
"path": "src/paperless_ai/ai_classifier.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "Invalid key for TypedDict `ClassificationSuggestions`, got `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 53,
|
|
"path": "src/paperless_ai/ai_classifier.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "Invalid key for TypedDict `ClassificationSuggestions`, got `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 36,
|
|
"path": "src/paperless_ai/ai_classifier.py",
|
|
"name": "bad-typed-dict-key",
|
|
"concise_description": "Invalid key for TypedDict `ClassificationSuggestions`, got `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 65,
|
|
"path": "src/paperless_ai/base_model.py",
|
|
"name": "bad-index",
|
|
"concise_description": "Cannot index into `dict[str, FieldInfo]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 18,
|
|
"path": "src/paperless_ai/chat.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`str | Any | None` is not assignable to dict value type `int | str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/paperless_ai/chat.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Response` has no attribute `response_gen`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 60,
|
|
"path": "src/paperless_ai/client.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | Unknown | None` is not assignable to parameter `s` with type `bytearray | bytes | str` in function `json.loads`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless_ai/embedding.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str` is not assignable to parameter `key` with type `LLMEmbeddingBackend` in function `dict.get`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 59,
|
|
"path": "src/paperless_ai/taxonomy.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "Type `object` is not iterable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless_ai/tests/test_ai_classifier.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `dict[str, list[dict[str, float | int | str]] | list[Unknown]]` is not assignable to parameter `candidates` with type `TaxonomyCandidates | None` in function `paperless_ai.ai_classifier.build_prompt_without_rag`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/paperless_ai/tests/test_matching.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[float] | None` is not assignable to parameter `embedding` with type `list[float]` in function `_query`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "`None` is not subscriptable",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[str] | None` is not assignable to parameter `iterable` with type `Iterable[str]` in function `sorted`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 20,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "no-matching-overload",
|
|
"concise_description": "No matching overload found for function `sorted` called with arguments: (list[float] | None, reverse=Literal[True])",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[str] | None` is not assignable to parameter `iterable` with type `Iterable[str]` in function `sorted`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[str] | None` is not assignable to parameter `iterable` with type `Iterable[str]` in function `sorted`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 36,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Literal['1']` is not assignable to parameter `document_id` with type `int` in function `make_node`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 58,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `Literal['2']` is not assignable to parameter `document_id` with type `int` in function `make_node`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 23,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[str] | None` is not assignable to parameter `iterable` with type `Iterable[str]` in function `sorted`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "not-iterable",
|
|
"concise_description": "`in` is not supported between `Literal['c1']` and `None`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`int` is not assignable to attribute `SCHEMA_VERSION` with type `Literal[2]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`int` is not assignable to attribute `SCHEMA_VERSION` with type `Literal[2]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/paperless_ai/tests/test_vector_store.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`int` is not assignable to attribute `SCHEMA_VERSION` with type `Literal[2]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/paperless_ai/vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `float | int | list[float] | list[int] | list[str] | str | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | str` in function `int.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/paperless_ai/vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `float | int | list[float] | list[int] | list[str] | str | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | str` in function `int.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/paperless_ai/vector_store.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | Any | None` is not assignable to parameter `x` with type `Buffer | SupportsIndex | SupportsInt | str` in function `int.__new__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 64,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | Unknown | None` is not assignable to parameter `*args` with type `str` in function `imaplib.IMAP4.uid`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 33,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[str] | None` is not assignable to parameter `flag_set` with type `Iterable[str] | str` in function `imap_tools.mailbox.BaseMailBox.flag`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 53,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `parameter` with type `str` in function `BaseMailAction.post_consume`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `parameter` with type `str` in function `TagMailAction.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 30,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `dict[str, date]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `dict[str, date]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `dict[str, date]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `dict[str, date]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 38,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `PinnedClientMixin` has no attribute `_host`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 13,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `PinnedClientMixin` has no attribute `_port`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 21,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `PinnedClientMixin` has no attribute `_timeout`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 12,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `PinnedMailBox | PinnedMailBoxStartTls | PinnedMailBoxUnencrypted` is not assignable to declared return type `MailBox`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 31,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `object` with type `str` in function `list.insert`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 44,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`folder` is uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 32,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 17,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/paperless_mail/mail.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str` is not assignable to parameter `original_file` with type `Path` in function `documents.data_models.ConsumableDocument.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 39,
|
|
"path": "src/paperless_mail/oauth.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 39,
|
|
"path": "src/paperless_mail/oauth.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 35,
|
|
"path": "src/paperless_mail/oauth.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`result` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 71,
|
|
"path": "src/paperless_mail/preprocessor.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Crypt` has no attribute `stderr`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 44,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `None` is not assignable to parameter `command_result` with type `tuple[Unknown, ...]` in function `imap_tools.errors.UnexpectedCommandStatusError.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 37,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "bad-return",
|
|
"concise_description": "Returned type `list[str | None]` is not assignable to declared return type `list[str]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `seen`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `flagged`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `flagged`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 25,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `seen`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `seen`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless_mail/tests/helpers.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `flagged`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/paperless_mail/tests/test_api.py",
|
|
"name": "unsupported-operation",
|
|
"concise_description": "Cannot set item in `dict[str, MailAccount.ImapSecurity | str]`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 50,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Class `message2` has no class attribute `from_`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 54,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 40,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 54,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 54,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 45,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 54,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"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"
|
|
},
|
|
{
|
|
"column": 49,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `MailMessage` has no attribute `seen`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `list[str | None]` is not assignable to parameter `uid` with type `Iterable[str] | UidRange | str | None` in function `imap_tools.query.LogicOperator.__init__`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `BogusFolderManager` has no attribute `list`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`int` is not assignable to dict value type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-assignment",
|
|
"concise_description": "`None` is not assignable to dict value type `str`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 41,
|
|
"path": "src/paperless_mail/tests/test_mail.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `str | None` is not assignable to parameter `container` with type `Container | Iterable[Any]` in function `unittest.case.TestCase.assertIn`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 42,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 46,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 46,
|
|
"path": "src/paperless_mail/tests/test_mail_oauth.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `_MonkeyPatchedWSGIResponse` has no attribute `url`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 9,
|
|
"path": "src/paperless_mail/tests/test_preprocessor.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 27,
|
|
"path": "src/paperless_mail/tests/test_preprocessor.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Message` has no attribute `_headers`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 51,
|
|
"path": "src/paperless_mail/tests/test_preprocessor.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `Crypt` has no attribute `stderr`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 36,
|
|
"path": "src/paperless_mail/tests/test_preprocessor.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `str` has no attribute `decode`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 28,
|
|
"path": "src/paperless_mail/views.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`result` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 29,
|
|
"path": "src/paperless_mail/views.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`imap_server` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 26,
|
|
"path": "src/paperless_mail/views.py",
|
|
"name": "unbound-name",
|
|
"concise_description": "`defaults` may be uninitialized",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 24,
|
|
"path": "src/paperless_testing/http.py",
|
|
"name": "bad-argument-type",
|
|
"concise_description": "Argument `AsyncIterator[bytes] | Iterator[bytes]` is not assignable to parameter `iterable_of_bytes` with type `Iterable[Buffer]` in function `bytes.join`",
|
|
"severity": "error"
|
|
},
|
|
{
|
|
"column": 16,
|
|
"path": "src/paperless_testing/migrations.py",
|
|
"name": "missing-attribute",
|
|
"concise_description": "Object of class `NoneType` has no attribute `name`",
|
|
"severity": "error"
|
|
}
|
|
]
|
|
}
|