From fb7abf7a6e313e0a6637af4f85d36fdd018a3fb0 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 3 Feb 2026 16:02:33 -0800 Subject: [PATCH] Chore: Enable mypy checking in CI (#11991) --- .dockerignore | 1 + .github/workflows/ci-backend.yml | 44 + .mypy-baseline.txt | 2499 ++++++++++++++++++++++++++++++ pyproject.toml | 33 +- uv.lock | 20 +- 5 files changed, 2569 insertions(+), 28 deletions(-) create mode 100644 .mypy-baseline.txt diff --git a/.dockerignore b/.dockerignore index 8c39dd615..b9c7d2f84 100644 --- a/.dockerignore +++ b/.dockerignore @@ -28,3 +28,4 @@ ./resources # Other stuff **/*.drawio.png +.mypy_baseline diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index a619f01c1..aca81a97d 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -99,3 +99,47 @@ jobs: run: | docker compose --file docker/compose/docker-compose.ci-test.yml logs docker compose --file docker/compose/docker-compose.ci-test.yml down + typing: + name: Check project typing + runs-on: ubuntu-24.04 + env: + DEFAULT_PYTHON: "3.12" + steps: + - name: Checkout + uses: actions/checkout@v6.0.1 + - name: Set up Python + id: setup-python + uses: actions/setup-python@v6.2.0 + with: + python-version: "${{ env.DEFAULT_PYTHON }}" + - name: Install uv + uses: astral-sh/setup-uv@v7.2.1 + with: + version: ${{ env.DEFAULT_UV_VERSION }} + enable-cache: true + python-version: ${{ steps.setup-python.outputs.python-version }} + - name: Install Python dependencies + run: | + uv sync \ + --python ${{ steps.setup-python.outputs.python-version }} \ + --group testing \ + --group typing \ + --frozen + - name: List installed Python dependencies + run: | + uv pip list + - name: Cache Mypy + uses: actions/cache@v5.0.3 + with: + path: .mypy_cache + # Keyed by OS, Python version, and dependency hashes + key: ${{ runner.os }}-mypy-py${{ env.DEFAULT_PYTHON }}-${{ hashFiles('pyproject.toml', 'uv.lock') }} + restore-keys: | + ${{ runner.os }}-mypy-py${{ env.DEFAULT_PYTHON }}- + ${{ runner.os }}-mypy- + - name: Check typing + run: | + uv run mypy \ + --show-error-codes \ + --warn-unused-configs \ + src/ | uv run mypy-baseline filter diff --git a/.mypy-baseline.txt b/.mypy-baseline.txt new file mode 100644 index 000000000..7114b8a6b --- /dev/null +++ b/.mypy-baseline.txt @@ -0,0 +1,2499 @@ +src/documents/admin.py:0: error: "Callable[[DocumentAdmin, Any], Any]" has no attribute "short_description" [attr-defined] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/admin.py:0: error: Missing type parameters for generic type "ModelAdmin" [type-arg] +src/documents/admin.py:0: error: Missing type parameters for generic type "TabularInline" [type-arg] +src/documents/admin.py:0: error: Missing type parameters for generic type "TabularInline" [type-arg] +src/documents/admin.py:0: error: Skipping analyzing "auditlog.admin": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/admin.py:0: error: Skipping analyzing "auditlog.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/admin.py:0: error: Skipping analyzing "treenode.admin": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/barcodes.py:0: error: "Image" has no attribute "filename" [attr-defined] +src/documents/barcodes.py:0: error: Cannot find implementation or library stub for module named "zxingcpp" [import-not-found] +src/documents/barcodes.py:0: error: Skipping analyzing "pyzbar": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/bulk_download.py:0: error: Return type "None" of "add_document" incompatible with return type "Never" in supertype "BulkArchiveStrategy" [override] +src/documents/bulk_download.py:0: error: Return type "None" of "add_document" incompatible with return type "Never" in supertype "BulkArchiveStrategy" [override] +src/documents/bulk_download.py:0: error: Return type "None" of "add_document" incompatible with return type "Never" in supertype "BulkArchiveStrategy" [override] +src/documents/bulk_edit.py:0: error: "int" object is not iterable [misc] +src/documents/bulk_edit.py:0: error: "int" object is not iterable [misc] +src/documents/bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/bulk_edit.py:0: error: Incompatible return value type (got "Literal['ERROR']", expected "Literal['OK']") [return-value] +src/documents/bulk_edit.py:0: error: Incompatible type for lookup 'id': (got "Correspondent", expected "str | int") [misc] +src/documents/bulk_edit.py:0: error: Incompatible type for lookup 'id': (got "DocumentType", expected "str | int") [misc] +src/documents/bulk_edit.py:0: error: Incompatible type for lookup 'id': (got "StoragePath", expected "str | int") [misc] +src/documents/bulk_edit.py:0: error: Incompatible types in assignment (expression has type "dict_items[Any, Any] | list[tuple[int, None]]", variable has type "list[int] | dict[Any, Any]") [assignment] +src/documents/bulk_edit.py:0: error: Invalid index type "str" for "dict[FieldDataType, str]"; expected type "FieldDataType" [index] +src/documents/bulk_edit.py:0: error: List comprehension has incompatible type List[tuple[int, None]]; expected List[int] [misc] +src/documents/bulk_edit.py:0: error: Missing named argument "p" for "remove" of "PageList" [call-arg] +src/documents/bulk_edit.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/bulk_edit.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/bulk_edit.py:0: error: Need type annotation for "to_create" (hint: "to_create: list[] = ...") [var-annotated] +src/documents/caching.py:0: error: Argument 1 to "hexlify" has incompatible type "bytes | None"; expected "Buffer" [arg-type] +src/documents/caching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/caching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/caching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/caching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/caching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/caching.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/caching.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/caching.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/caching.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/caching.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/caching.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/caching.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/caching.py:0: error: Need type annotation for "_data" [var-annotated] +src/documents/checks.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/checks.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/classifier.py:0: error: "None" has no attribute "fit" [attr-defined] +src/documents/classifier.py:0: error: "None" has no attribute "fit" [attr-defined] +src/documents/classifier.py:0: error: "None" has no attribute "fit" [attr-defined] +src/documents/classifier.py:0: error: "None" has no attribute "fit" [attr-defined] +src/documents/classifier.py:0: error: "None" has no attribute "fit_transform" [attr-defined] +src/documents/classifier.py:0: error: "None" has no attribute "fit_transform" [attr-defined] +src/documents/classifier.py:0: error: "None" has no attribute "fit_transform" [attr-defined] +src/documents/classifier.py:0: error: "None" has no attribute "stem" [attr-defined] +src/documents/classifier.py:0: error: "None" has no attribute "stop_words_" [attr-defined] +src/documents/classifier.py:0: error: "None" has no attribute "transform" [attr-defined] +src/documents/classifier.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/classifier.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/classifier.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/classifier.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/classifier.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/classifier.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/classifier.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "CountVectorizer", variable has type "None") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "LabelBinarizer", variable has type "None") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "MLPClassifier", variable has type "None") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "MLPClassifier", variable has type "None") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "MLPClassifier", variable has type "None") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "MLPClassifier", variable has type "None") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "MultiLabelBinarizer", variable has type "None") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "DocumentClassifier") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "DocumentClassifier") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "DocumentClassifier") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "DocumentClassifier") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "frozenset[Any]", variable has type "None") [assignment] +src/documents/classifier.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] +src/documents/classifier.py:0: error: List comprehension has incompatible type List[int]; expected List[list[int]] [misc] +src/documents/classifier.py:0: error: Module "sklearn.exceptions" has no attribute "InconsistentVersionWarning" [attr-defined] +src/documents/classifier.py:0: error: Skipping analyzing "nltk": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/classifier.py:0: error: Skipping analyzing "nltk.corpus": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/classifier.py:0: error: Skipping analyzing "nltk.stem": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/classifier.py:0: error: Skipping analyzing "nltk.tokenize": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/classifier.py:0: error: Unsupported right operand type for in ("None") [operator] +src/documents/classifier.py:0: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports +src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "input_doc" [attr-defined] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "log" [attr-defined] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "metadata" [attr-defined] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "metadata" [attr-defined] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "metadata" [attr-defined] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "metadata" [attr-defined] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "metadata" [attr-defined] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "metadata" [attr-defined] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "renew_logging_group" [attr-defined] +src/documents/consumer.py:0: error: "ConsumerPluginMixin" has no attribute "status_mgr" [attr-defined] +src/documents/consumer.py:0: error: "None" not callable [misc] +src/documents/consumer.py:0: error: "None" object is not iterable [misc] +src/documents/consumer.py:0: error: "get_page_count" of "DocumentParser" does not return a value (it only ever returns None) [func-returns-value] +src/documents/consumer.py:0: error: Argument "data_type" to "get_value_field_name" of "CustomFieldInstance" has incompatible type "str"; expected "FieldDataType" [arg-type] +src/documents/consumer.py:0: error: Argument "logger" to "run_subprocess" has incompatible type "LoggerAdapter[Logger]"; expected "Logger | None" [arg-type] +src/documents/consumer.py:0: error: Argument "text" to "_store" of "ConsumerPlugin" has incompatible type "Any | None"; expected "str" [arg-type] +src/documents/consumer.py:0: error: Argument 1 to "create_source_path_directory" has incompatible type "Path | None"; expected "Path" [arg-type] +src/documents/consumer.py:0: error: Argument 2 to "parse_w_workflow_placeholders" has incompatible type "str | None"; expected "str" [arg-type] +src/documents/consumer.py:0: error: Argument 3 to "parse_w_workflow_placeholders" has incompatible type "str | None"; expected "str" [arg-type] +src/documents/consumer.py:0: error: Argument 3 to "run_subprocess" has incompatible type "LoggerAdapter[Logger]"; expected "Logger | None" [arg-type] +src/documents/consumer.py:0: error: Argument 3 to "run_subprocess" has incompatible type "LoggerAdapter[Logger]"; expected "Logger | None" [arg-type] +src/documents/consumer.py:0: error: Argument 4 to "parse_w_workflow_placeholders" has incompatible type "str | None"; expected "str" [arg-type] +src/documents/consumer.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/consumer.py:0: error: Item "None" of "Document | None" has no attribute "deleted_at" [union-attr] +src/documents/consumer.py:0: error: Item "None" of "Document | None" has no attribute "filename" [union-attr] +src/documents/consumer.py:0: error: Item "None" of "Document | None" has no attribute "original_filename" [union-attr] +src/documents/consumer.py:0: error: Item "None" of "Document | None" has no attribute "pk" [union-attr] +src/documents/consumer.py:0: error: Item "None" of "Document | None" has no attribute "pk" [union-attr] +src/documents/consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/consumer.py:0: error: List item 2 has incompatible type "Path"; expected "str" [list-item] +src/documents/consumer.py:0: error: Too many arguments for "__init__" of "object" [call-arg] +src/documents/context_processors.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/converters.py:0: error: List item 3 has incompatible type "Path"; expected "str" [list-item] +src/documents/converters.py:0: error: List item 4 has incompatible type "Path"; expected "str" [list-item] +src/documents/converters.py:0: error: Skipping analyzing "img2pdf": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/data_models.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/data_models.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] +src/documents/data_models.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "__iter__" (not iterable) [union-attr] +src/documents/data_models.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "__iter__" (not iterable) [union-attr] +src/documents/data_models.py:0: error: Item "list[str]" of "Any | list[str]" has no attribute "values_list" [union-attr] +src/documents/data_models.py:0: error: Item "list[str]" of "Any | list[str]" has no attribute "values_list" [union-attr] +src/documents/data_models.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/data_models.py:0: error: Value of type "Group | dict[Any, Any]" is not indexable [index] +src/documents/data_models.py:0: error: Value of type "Group | dict[Any, Any]" is not indexable [index] +src/documents/file_handling.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/file_handling.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/filters.py:0: error: "SharedByUser" has no attribute "model" [attr-defined] +src/documents/filters.py:0: error: "def wrapper(*args: Any, validation_prefix: Any = ..., **kwargs: Any) -> Any" has no attribute "__signature__" [attr-defined] +src/documents/filters.py:0: error: "type[Model]" has no attribute "objects" [attr-defined] +src/documents/filters.py:0: error: "type[Model]" has no attribute "objects" [attr-defined] +src/documents/filters.py:0: error: Argument "child" to "ListField" has incompatible type "BooleanField | None"; expected "Field[Any, Any, Any, Any]" [arg-type] +src/documents/filters.py:0: error: Argument "child" to "ListField" has incompatible type "BooleanField | None"; expected "Field[Any, Any, Any, Any]" [arg-type] +src/documents/filters.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/filters.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/filters.py:0: error: Incompatible types in assignment (expression has type "CharField", variable has type "BooleanField | None") [assignment] +src/documents/filters.py:0: error: Incompatible types in assignment (expression has type "Field[Any, Any, Any, Any]", variable has type "BooleanField | None") [assignment] +src/documents/filters.py:0: error: Incompatible types in assignment (expression has type "IntegerField", variable has type "BooleanField | None") [assignment] +src/documents/filters.py:0: error: Incompatible types in assignment (expression has type "ListField", variable has type "BooleanField | None") [assignment] +src/documents/filters.py:0: error: Incompatible types in assignment (expression has type "ListField", variable has type "BooleanField | None") [assignment] +src/documents/filters.py:0: error: Incompatible types in assignment (expression has type "ListField", variable has type "BooleanField | None") [assignment] +src/documents/filters.py:0: error: Incompatible types in assignment (expression has type "SelectField", variable has type "BooleanField | None") [assignment] +src/documents/filters.py:0: error: Incompatible types in assignment (expression has type "Sum", variable has type "Subquery | None") [assignment] +src/documents/filters.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "list[str]") [assignment] +src/documents/filters.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/filters.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/filters.py:0: error: Item "None" of "BooleanField | None" has no attribute "allow_null" [union-attr] +src/documents/filters.py:0: error: Missing type parameters for generic type "Callable" [type-arg] +src/documents/filters.py:0: error: Need type annotation for "_annotations" (hint: "_annotations: dict[, ] = ...") [var-annotated] +src/documents/filters.py:0: error: Need type annotation for "_model_serializer" [var-annotated] +src/documents/filters.py:0: error: Skipping analyzing "rest_framework_guardian.filters": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/filters.py:0: error: Value of type "Any | None" is not indexable [index] +src/documents/index.py:0: error: "ManualResults" has no attribute "formatter" [attr-defined] +src/documents/index.py:0: error: "ManualResults" has no attribute "fragmenter" [attr-defined] +src/documents/index.py:0: error: "ManualResults" has no attribute "top_n" [attr-defined] +src/documents/index.py:0: error: "ManualResults" has no attribute "top_n" [attr-defined] +src/documents/index.py:0: error: Argument 1 to "len" has incompatible type "ManualResults"; expected "Sized" [arg-type] +src/documents/index.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/index.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/index.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/index.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/index.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/index.py:0: error: Item "str" of "Any | str" has no attribute "id" [union-attr] +src/documents/index.py:0: error: Missing type parameters for generic type "QuerySet" [type-arg] +src/documents/index.py:0: error: Missing type parameters for generic type "QuerySet" [type-arg] +src/documents/index.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/index.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/index.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/index.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/index.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/index.py:0: error: Missing type parameters for generic type "set" [type-arg] +src/documents/index.py:0: error: Missing type parameters for generic type "tuple" [type-arg] +src/documents/index.py:0: error: Missing type parameters for generic type "tuple" [type-arg] +src/documents/index.py:0: error: Name "page" already defined on line 0 [no-redef] +src/documents/index.py:0: error: Need type annotation for "saved_results" (hint: "saved_results: dict[, ] = ...") [var-annotated] +src/documents/index.py:0: error: Need type annotation for "termCounts" [var-annotated] +src/documents/index.py:0: error: Skipping analyzing "whoosh": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.fields": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.highlight": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.idsets": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.index": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.qparser": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.qparser.dateparse": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.qparser.plugins": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.reading": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.scoring": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.searching": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.util.times": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Skipping analyzing "whoosh.writing": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/index.py:0: error: Value of type "ManualResults" is not indexable [index] +src/documents/index.py:0: note: Use "-> None" if function does not return a value +src/documents/loggers.py:0: error: "LoggingMixin" has no attribute "logging_name" [attr-defined] +src/documents/mail.py:0: error: Incompatible types in assignment (expression has type "Message[str, str]", variable has type "bytes") [assignment] +src/documents/management/commands/convert_mariadb_uuid.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/convert_mariadb_uuid.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/convert_mariadb_uuid.py:0: error: Need type annotation for "new_field" [var-annotated] +src/documents/management/commands/convert_mariadb_uuid.py:0: error: Need type annotation for "old_field" [var-annotated] +src/documents/management/commands/document_archiver.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_archiver.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_consumer.py:0: error: "str" has no attribute "is_file" [attr-defined] +src/documents/management/commands/document_consumer.py:0: error: Argument 1 to "track" of "FileStabilityTracker" has incompatible type "str"; expected "Path" [arg-type] +src/documents/management/commands/document_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/document_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/document_consumer.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str") [assignment] +src/documents/management/commands/document_create_classifier.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_exporter.py:0: error: Argument 1 to "add" of "set" has incompatible type "Path"; expected "str" [arg-type] +src/documents/management/commands/document_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/document_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/document_exporter.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "Path") [assignment] +src/documents/management/commands/document_exporter.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/management/commands/document_exporter.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/management/commands/document_exporter.py:0: error: Missing type parameters for generic type "QuerySet" [type-arg] +src/documents/management/commands/document_exporter.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/management/commands/document_exporter.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/management/commands/document_exporter.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/management/commands/document_exporter.py:0: error: Skipping analyzing "allauth.mfa.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/management/commands/document_exporter.py:0: error: Skipping analyzing "allauth.socialaccount.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/management/commands/document_exporter.py:0: error: Skipping analyzing "auditlog.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/management/commands/document_exporter.py:0: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports +src/documents/management/commands/document_fuzzy_match.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_fuzzy_match.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_importer.py:0: error: Argument 1 to "create_source_path_directory" has incompatible type "Path | None"; expected "Path" [arg-type] +src/documents/management/commands/document_importer.py:0: error: Argument 2 to "copy_file_with_basic_stats" has incompatible type "Path | None"; expected "Path | str" [arg-type] +src/documents/management/commands/document_importer.py:0: error: Attribute "version" already defined on line 0 [no-redef] +src/documents/management/commands/document_importer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/document_importer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/document_importer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/document_importer.py:0: error: Incompatible types in assignment (expression has type "str | None", base class "CryptMixin" defined the type as "str") [assignment] +src/documents/management/commands/document_importer.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/management/commands/document_importer.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/management/commands/document_importer.py:0: error: Missing type parameters for generic type "Generator" [type-arg] +src/documents/management/commands/document_importer.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/management/commands/document_importer.py:0: error: Need type annotation for "manifest_paths" (hint: "manifest_paths: list[] = ...") [var-annotated] +src/documents/management/commands/document_importer.py:0: error: Skipping analyzing "auditlog.registry": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/management/commands/document_index.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_index.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_llmindex.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_llmindex.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_renamer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_renamer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_retagger.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_retagger.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_sanity_checker.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_sanity_checker.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_thumbnails.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/document_thumbnails.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/document_thumbnails.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/loaddata_stdin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/loaddata_stdin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/loaddata_stdin.py:0: error: Incompatible types in assignment (expression has type "tuple[Callable[[Any, Any], TextIO | Any], None]", target has type "tuple[Callable[[str, Literal['r', 'rb']], BufferedReader[_BufferedReaderStream]]]") [assignment] +src/documents/management/commands/manage_superuser.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/manage_superuser.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/mixins.py:0: error: Attribute "kdf_algorithm" already defined on line 0 [no-redef] +src/documents/management/commands/mixins.py:0: error: Attribute "key_iterations" already defined on line 0 [no-redef] +src/documents/management/commands/mixins.py:0: error: Attribute "key_size" already defined on line 0 [no-redef] +src/documents/management/commands/mixins.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/mixins.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/management/commands/mixins.py:0: error: Incompatible types in assignment (expression has type "list[dict[str, Sequence[str]]]", variable has type "CryptFields") [assignment] +src/documents/management/commands/mixins.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/management/commands/mixins.py:0: error: Unsupported operand types for // ("None" and "int") [operator] +src/documents/management/commands/mixins.py:0: note: Left operand is of type "int | None" +src/documents/management/commands/prune_audit_logs.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/prune_audit_logs.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/management/commands/prune_audit_logs.py:0: error: Skipping analyzing "auditlog.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/matching.py:0: error: Argument 1 to "existing_document_matches_workflow" has incompatible type "ConsumableDocument | Document"; expected "Document" [arg-type] +src/documents/matching.py:0: error: Argument 1 to "issubset" of "set" has incompatible type "set[int] | None"; expected "Iterable[Any]" [arg-type] +src/documents/matching.py:0: error: Argument 1 to "matches" has incompatible type "WorkflowTrigger"; expected "MatchingModel" [arg-type] +src/documents/matching.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/matching.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/matching.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/matching.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/matching.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/matching.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/matching.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +src/documents/matching.py:0: error: Incompatible types in assignment (expression has type "tuple[str]", variable has type "str") [assignment] +src/documents/matching.py:0: error: Incompatible types in assignment (expression has type "tuple[str]", variable has type "str") [assignment] +src/documents/matching.py:0: error: Incompatible types in assignment (expression has type "tuple[str]", variable has type "str") [assignment] +src/documents/matching.py:0: error: Incompatible types in assignment (expression has type "tuple[str]", variable has type "str") [assignment] +src/documents/matching.py:0: error: Unsupported left operand type for & ("None") [operator] +src/documents/matching.py:0: error: Unsupported left operand type for & ("None") [operator] +src/documents/matching.py:0: error: Value of type variable "AnyStr" of "fnmatch" cannot be "object" [type-var] +src/documents/matching.py:0: note: Left operand is of type "set[int] | None" +src/documents/matching.py:0: note: Left operand is of type "set[int] | None" +src/documents/migrations/0001_initial.py:0: error: Skipping analyzing "multiselectfield": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/migrations/0001_initial.py:0: error: Skipping analyzing "multiselectfield.db": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/migrations/0001_initial.py:0: error: Skipping analyzing "multiselectfield.db.fields": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/migrations/0008_sharelinkbundle.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/migrations/0008_sharelinkbundle.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]" [arg-type] +src/documents/models.py:0: error: Could not resolve manager type for "documents.models.Document.deleted_objects" [django-manager-missing] +src/documents/models.py:0: error: Could not resolve manager type for "documents.models.Document.global_objects" [django-manager-missing] +src/documents/models.py:0: error: Could not resolve manager type for "documents.models.Document.objects" [django-manager-missing] +src/documents/models.py:0: error: Couldn't resolve related manager 'custom_fields' for relation 'documents.models.CustomFieldInstance.document'. [django-manager-missing] +src/documents/models.py:0: error: Couldn't resolve related manager 'documents' for relation 'documents.models.Document.correspondent'. [django-manager-missing] +src/documents/models.py:0: error: Couldn't resolve related manager 'documents' for relation 'documents.models.Document.document_type'. [django-manager-missing] +src/documents/models.py:0: error: Couldn't resolve related manager 'documents' for relation 'documents.models.Document.storage_path'. [django-manager-missing] +src/documents/models.py:0: error: Couldn't resolve related manager 'fields' for relation 'documents.models.CustomFieldInstance.field'. [django-manager-missing] +src/documents/models.py:0: error: Couldn't resolve related manager 'notes' for relation 'documents.models.Note.document'. [django-manager-missing] +src/documents/models.py:0: error: Couldn't resolve related manager 'runs' for relation 'documents.models.WorkflowRun.workflow'. [django-manager-missing] +src/documents/models.py:0: error: Couldn't resolve related manager 'share_links' for relation 'documents.models.ShareLink.document'. [django-manager-missing] +src/documents/models.py:0: error: Couldn't resolve related manager 'workflow_runs' for relation 'documents.models.WorkflowRun.document'. [django-manager-missing] +src/documents/models.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/models.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/models.py:0: error: Need type annotation for "created" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "created" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "created" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "document" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "document" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "document" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "document" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "expiration" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "field" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "file_version" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "note" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "owner" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "run_at" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "slug" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "type" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "user" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "value_bool" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "value_date" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "value_float" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "value_int" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "value_long_text" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "value_monetary" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "value_select" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "value_text" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "value_url" [var-annotated] +src/documents/models.py:0: error: Need type annotation for "workflow" [var-annotated] +src/documents/models.py:0: error: Signature of "delete" incompatible with supertype "django.db.models.base.Model" [override] +src/documents/models.py:0: error: Skipping analyzing "auditlog.registry": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/models.py:0: error: Skipping analyzing "django_softdelete.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/models.py:0: error: Skipping analyzing "multiselectfield": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/models.py:0: error: Skipping analyzing "treenode.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/models.py:0: note: Subclass: +src/documents/models.py:0: note: Superclass: +src/documents/models.py:0: note: def delete(self, using: Any = ..., *, keep_parents: Any = ...) -> Any +src/documents/models.py:0: note: def delete(self, using: Any | None = ..., keep_parents: bool = ...) -> tuple[int, dict[str, int]] +src/documents/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/parsers.py:0: error: Incompatible return value type (got "str | Any", expected "type[DocumentParser] | None") [return-value] +src/documents/parsers.py:0: error: Invalid index type "str | Any" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/parsers.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/parsers.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/parsers.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/parsers.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/parsers.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/parsers.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/documents/parsers.py:0: error: Value of type "str | None" is not indexable [index] +src/documents/parsers.py:0: error: Value of type "str | None" is not indexable [index] +src/documents/parsers.py:0: error: Value of type "str | None" is not indexable [index] +src/documents/parsers.py:0: error: Value of type "str | None" is not indexable [index] +src/documents/parsers.py:0: error: Value of type "str | None" is not indexable [index] +src/documents/parsers.py:0: note: Use "-> None" if function does not return a value +src/documents/permissions.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/permissions.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/permissions.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/permissions.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/permissions.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/permissions.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/permissions.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/permissions.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/permissions.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/permissions.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/permissions.py:0: error: Item "list[str]" of "Any | list[str] | QuerySet[User, User]" has no attribute "exclude" [union-attr] +src/documents/permissions.py:0: error: Item "list[str]" of "Any | list[str] | QuerySet[User, User]" has no attribute "exists" [union-attr] +src/documents/permissions.py:0: error: Item "list[str]" of "Any | list[str] | QuerySet[User, User]" has no attribute "exists" [union-attr] +src/documents/permissions.py:0: error: Missing type parameters for generic type "QuerySet" [type-arg] +src/documents/permissions.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/plugins/helpers.py:0: error: "Collection[str]" has no attribute "update" [attr-defined] +src/documents/plugins/helpers.py:0: error: Argument 1 to "send" of "BaseStatusManager" has incompatible type "dict[str, Collection[str]]"; expected "dict[str, str | int | None]" [arg-type] +src/documents/plugins/helpers.py:0: error: Argument 1 to "send" of "BaseStatusManager" has incompatible type "dict[str, Collection[str]]"; expected "dict[str, str | int | None]" [arg-type] +src/documents/plugins/helpers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/plugins/helpers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/plugins/helpers.py:0: error: Library stubs not installed for "channels.layers" [import-untyped] +src/documents/plugins/helpers.py:0: error: Skipping analyzing "channels_redis.pubsub": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/plugins/helpers.py:0: note: (or run "mypy --install-types" to install all missing stub packages) +src/documents/plugins/helpers.py:0: note: Hint: "python3 -m pip install types-channels" +src/documents/regex.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/regex.py:0: error: Library stubs not installed for "regex" [import-untyped] +src/documents/regex.py:0: note: Hint: "python3 -m pip install types-regex" +src/documents/sanity_checker.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]" [arg-type] +src/documents/sanity_checker.py:0: error: Cannot use Final inside a loop [misc] +src/documents/sanity_checker.py:0: error: Cannot use Final inside a loop [misc] +src/documents/sanity_checker.py:0: error: Cannot use Final inside a loop [misc] +src/documents/sanity_checker.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/sanity_checker.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/sanity_checker.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/sanity_checker.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/sanity_checker.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/sanity_checker.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/sanity_checker.py:0: error: Incompatible type for "task_id" of "PaperlessTask" (got "UUID", expected "str | int | Combinable") [misc] +src/documents/sanity_checker.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/schema.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/schema.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/schema.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: "type[_MT?]" has no attribute "objects" [attr-defined] +src/documents/serialisers.py:0: error: "type[_MT?]" has no attribute "objects" [attr-defined] +src/documents/serialisers.py:0: error: "type[_MT?]" has no attribute "objects" [attr-defined] +src/documents/serialisers.py:0: error: Argument "choices" to "ChoiceField" has incompatible type "type[FieldDataType]"; expected "Sequence[Any]" [arg-type] +src/documents/serialisers.py:0: error: Argument "default" to "MultipleChoiceField" has incompatible type "set[DocumentSource]"; expected "set[str | int] | set[str] | set[int] | Callable[[], set[str | int] | set[str] | set[int]] | _Empty | None" [arg-type] +src/documents/serialisers.py:0: error: Argument 1 of "get_value" is incompatible with supertype "rest_framework.fields.Field"; supertype defines the argument type as "Mapping[Any, Any]" [override] +src/documents/serialisers.py:0: error: Argument 1 to "get_value_field_name" of "CustomFieldInstance" has incompatible type "str"; expected "FieldDataType" [arg-type] +src/documents/serialisers.py:0: error: Argument 1 to "int" has incompatible type "Any | Sequence[str]"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +src/documents/serialisers.py:0: error: Argument 1 to "int" has incompatible type "Any | Sequence[str]"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +src/documents/serialisers.py:0: error: Argument 1 to "int" has incompatible type "Any | Sequence[str]"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +src/documents/serialisers.py:0: error: Argument 1 to "int" has incompatible type "Any | Sequence[str]"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +src/documents/serialisers.py:0: error: Argument 1 to "len" has incompatible type "list[Any] | None"; expected "Sized" [arg-type] +src/documents/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/serialisers.py:0: error: Incompatible type for lookup 'pk': (got "str | None", expected "str | int") [misc] +src/documents/serialisers.py:0: error: Incompatible types in assignment (expression has type "PrimaryKeyRelatedField[Tag]", base class "Field" defined the type as "BaseSerializer[Any]") [assignment] +src/documents/serialisers.py:0: error: Incompatible types in assignment (expression has type "Sequence[str] | tuple[Lower]", variable has type "Sequence[str] | None") [assignment] +src/documents/serialisers.py:0: error: Incompatible types in assignment (expression has type "WorkflowActionWebhookSerializer", variable has type "WorkflowActionEmailSerializer") [assignment] +src/documents/serialisers.py:0: error: Incompatible types in assignment (expression has type "type[Correspondent]", variable has type "type[Tag] | None") [assignment] +src/documents/serialisers.py:0: error: Incompatible types in assignment (expression has type "type[DocumentType]", variable has type "type[Tag] | None") [assignment] +src/documents/serialisers.py:0: error: Incompatible types in assignment (expression has type "type[SearchResultListSerializer]", base class "Meta" defined the type as "type[OwnedObjectListSerializer]") [assignment] +src/documents/serialisers.py:0: error: Incompatible types in assignment (expression has type "type[StoragePath]", variable has type "type[Tag] | None") [assignment] +src/documents/serialisers.py:0: error: Item "Field[Any, Any, Any, Any]" of "Field[Any, Any, Any, Any] | None" has no attribute "fetch_documents" [union-attr] +src/documents/serialisers.py:0: error: Item "Field[Any, Any, Any, Any]" of "Field[Any, Any, Any, Any] | None" has no attribute "get_shared_object_pks" [union-attr] +src/documents/serialisers.py:0: error: Item "Field[Any, Any, Any, Any]" of "Field[Any, Any, Any, Any] | None" has no attribute "get_shared_object_pks" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Any | None" has no attribute "name" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Any | None" has no attribute "name" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Any | None" has no attribute "pk" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Any | None" has no attribute "version" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Field[Any, Any, Any, Any] | None" has no attribute "context" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Field[Any, Any, Any, Any] | None" has no attribute "context" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Field[Any, Any, Any, Any] | None" has no attribute "context" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Field[Any, Any, Any, Any] | None" has no attribute "fetch_documents" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Field[Any, Any, Any, Any] | None" has no attribute "get_shared_object_pks" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Field[Any, Any, Any, Any] | None" has no attribute "get_shared_object_pks" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr] +src/documents/serialisers.py:0: error: Item "None" of "ObjectPermissionChecker | None" has no attribute "has_perm" [union-attr] +src/documents/serialisers.py:0: error: Item "list[str]" of "Any | list[str]" has no attribute "values_list" [union-attr] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "Field" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "Iterable" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ListSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ListSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "PrimaryKeyRelatedField" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "PrimaryKeyRelatedField" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "PrimaryKeyRelatedField" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "PrimaryKeyRelatedField" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "Serializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "Serializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "Serializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "Serializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "Serializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "Serializer" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/serialisers.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/serialisers.py:0: error: Need type annotation for "document" [var-annotated] +src/documents/serialisers.py:0: error: Need type annotation for "documents" [var-annotated] +src/documents/serialisers.py:0: error: Need type annotation for "permissions_dict" [var-annotated] +src/documents/serialisers.py:0: error: Skipping analyzing "auditlog.context": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/serialisers.py:0: error: Value of type "Any | None" is not indexable [index] +src/documents/serialisers.py:0: error: Value of type "Any | None" is not indexable [index] +src/documents/serialisers.py:0: error: Value of type "Match[str] | None" is not indexable [index] +src/documents/serialisers.py:0: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides +src/documents/serialisers.py:0: note: This violates the Liskov substitution principle +src/documents/signals/handlers.py:0: error: "BaseDatabaseWrapper" has no attribute "close_pool" [attr-defined] +src/documents/signals/handlers.py:0: error: Argument 1 to "Path" has incompatible type "Any | None"; expected "str | PathLike[str]" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 1 to "Path" has incompatible type "Any | None"; expected "str | PathLike[str]" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 1 to "Path" has incompatible type "Path | Any | None"; expected "str | PathLike[str]" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 1 to "create_source_path_directory" has incompatible type "Path | Any | None"; expected "Path" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 1 to "move" has incompatible type "Path | Any | None"; expected "str | PathLike[str]" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 1 to "move" has incompatible type "Path | Any | None"; expected "str | PathLike[str]" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 2 to "apply_assignment_to_document" has incompatible type "Document | ConsumableDocument"; expected "Document" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 2 to "apply_removal_to_document" has incompatible type "Document | ConsumableDocument"; expected "Document" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 2 to "match_correspondents" has incompatible type "DocumentClassifier | None"; expected "DocumentClassifier" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 2 to "match_document_types" has incompatible type "DocumentClassifier | None"; expected "DocumentClassifier" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 2 to "match_storage_paths" has incompatible type "DocumentClassifier | None"; expected "DocumentClassifier" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 2 to "match_tags" has incompatible type "DocumentClassifier | None"; expected "DocumentClassifier" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 2 to "validate_move" has incompatible type "Path | Any | None"; expected "Path" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 3 to "validate_move" has incompatible type "Path | Any | None"; expected "Path" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 5 to "_suggestion_printer" has incompatible type "Any | None"; expected "MatchingModel" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 5 to "_suggestion_printer" has incompatible type "Any | None"; expected "MatchingModel" [arg-type] +src/documents/signals/handlers.py:0: error: Argument 5 to "_suggestion_printer" has incompatible type "Any | None"; expected "MatchingModel" [arg-type] +src/documents/signals/handlers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/signals/handlers.py:0: error: Incompatible return value type (got "tuple[DocumentMetadataOverrides | None, str]", expected "tuple[DocumentMetadataOverrides, str] | None") [return-value] +src/documents/signals/handlers.py:0: error: Incompatible types in assignment (expression has type "list[Tag]", variable has type "set[Tag]") [assignment] +src/documents/signals/handlers.py:0: error: Incompatible types in assignment (expression has type "tuple[Any, Any, Any]", variable has type "tuple[Any, Any]") [assignment] +src/documents/signals/handlers.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "refresh_from_db" [union-attr] +src/documents/signals/handlers.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "save" [union-attr] +src/documents/signals/handlers.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "source_path" [union-attr] +src/documents/signals/handlers.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "tags" [union-attr] +src/documents/signals/handlers.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "tags" [union-attr] +src/documents/signals/handlers.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "title" [union-attr] +src/documents/signals/handlers.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/signals/handlers.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/signals/handlers.py:0: error: Item "None" of "Any | None" has no attribute "remove" [union-attr] +src/documents/signals/handlers.py:0: error: Item "None" of "Path | Any | None" has no attribute "is_file" [union-attr] +src/documents/signals/handlers.py:0: error: Item "None" of "Path | Any | None" has no attribute "is_file" [union-attr] +src/documents/signals/handlers.py:0: error: Missing return statement [return] +src/documents/signals/handlers.py:0: error: Unsupported right operand type for in ("Any | None") [operator] +src/documents/signals/handlers.py:0: error: Unsupported target for indexed assignment ("Any | None") [index] +src/documents/signals/handlers.py:0: error: Value of type variable "_StrPathT" of "move" cannot be "Path | Any | None" [type-var] +src/documents/signals/handlers.py:0: error: Value of type variable "_StrPathT" of "move" cannot be "Path | Any | None" [type-var] +src/documents/tasks.py:0: error: Argument 1 to "create_source_path_directory" has incompatible type "Path | None"; expected "Path" [arg-type] +src/documents/tasks.py:0: error: Argument 4 to "ConsumeTaskPlugin" has incompatible type "str"; expected "Path" [arg-type] +src/documents/tasks.py:0: error: Argument 5 to "ConsumeTaskPlugin" has incompatible type "str | None"; expected "str" [arg-type] +src/documents/tasks.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tasks.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tasks.py:0: error: Incompatible type for "task_id" of "PaperlessTask" (got "UUID", expected "str | int | Combinable") [misc] +src/documents/tasks.py:0: error: Incompatible type for "task_id" of "PaperlessTask" (got "UUID", expected "str | int | Combinable") [misc] +src/documents/tasks.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str") [assignment] +src/documents/tasks.py:0: error: Incompatible types in assignment (expression has type "QuerySet[Document, Document]", variable has type "UnknownQuerySet[Document, Document]") [assignment] +src/documents/tasks.py:0: error: Incompatible types in assignment (expression has type "type[DocumentParser] | None", variable has type "type[DocumentParser]") [assignment] +src/documents/tasks.py:0: error: Missing type parameters for generic type "Task" [type-arg] +src/documents/tasks.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/tasks.py:0: error: Skipping analyzing "auditlog.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tasks.py:0: error: Skipping analyzing "whoosh.writing": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tasks.py:0: error: Value of type variable "_StrPathT" of "move" cannot be "Path | None" [type-var] +src/documents/templating/environment.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/templating/environment.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/templating/filepath.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/templating/filepath.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/templating/filepath.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/templating/filepath.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/templating/filepath.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/templating/filepath.py:0: error: Incompatible types in assignment (expression has type "QuerySet[Tag, Tag]", variable has type "list[Tag]") [assignment] +src/documents/templating/filepath.py:0: error: Need type annotation for "field_data" [var-annotated] +src/documents/templating/filters.py:0: error: Incompatible types in assignment (expression has type "date | None", variable has type "str | datetime") [assignment] +src/documents/templating/filters.py:0: error: Incompatible types in assignment (expression has type "datetime | None", variable has type "date | datetime | str") [assignment] +src/documents/templating/filters.py:0: error: Item "str" of "str | datetime" has no attribute "strftime" [union-attr] +src/documents/templating/utils.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/templating/workflows.py:0: error: Incompatible return value type (got "None", expected "str") [return-value] +src/documents/tests/conftest.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/conftest.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/factories.py:0: error: Missing type parameters for generic type "DjangoModelFactory" [type-arg] +src/documents/tests/factories.py:0: error: Missing type parameters for generic type "DjangoModelFactory" [type-arg] +src/documents/tests/test_admin.py:0: error: "PaperlessUserForm" has no attribute "request" [attr-defined] +src/documents/tests/test_admin.py:0: error: "PaperlessUserForm" has no attribute "request" [attr-defined] +src/documents/tests/test_admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_admin.py:0: error: Module "django.utils.timezone" does not explicitly export attribute "datetime" [attr-defined] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "ai_enabled" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "app_logo" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "app_logo" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "app_logo" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "app_title" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "app_title" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "barcode_tag_mapping" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "color_conversion_strategy" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "language" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "llm_api_key" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "llm_api_key" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "llm_api_key" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "llm_embedding_backend" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "refresh_from_db" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "refresh_from_db" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/documents/tests/test_api_app_config.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "user_args" [union-attr] +src/documents/tests/test_api_bulk_download.py:0: error: Value of type variable "_StrPathT" of "copy" cannot be "Path | None" [type-var] +src/documents/tests/test_api_bulk_edit.py:0: error: "type[MatchingModel]" has no attribute "objects" [attr-defined] +src/documents/tests/test_api_bulk_edit.py:0: error: "type[MatchingModel]" has no attribute "objects" [attr-defined] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_bulk_edit.py:0: error: Skipping analyzing "auditlog.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_api_custom_fields.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_custom_fields.py:0: error: Value of type "Any | None" is not indexable [index] +src/documents/tests/test_api_documents.py:0: error: "None" object is not iterable [misc] +src/documents/tests/test_api_documents.py:0: error: "object" has no attribute "get" [attr-defined] +src/documents/tests/test_api_documents.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]" [arg-type] +src/documents/tests/test_api_documents.py:0: error: Argument 1 to "assertCountEqual" of "TestCase" has incompatible type "list[int] | None"; expected "Iterable[Any]" [arg-type] +src/documents/tests/test_api_documents.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_api_documents.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_api_documents.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_api_documents.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_documents.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_documents.py:0: error: Item "None" of "SavedViewFilterRule | None" has no attribute "value" [union-attr] +src/documents/tests/test_api_documents.py:0: error: Value of type "object" is not indexable [index] +src/documents/tests/test_api_documents.py:0: error: Value of type "object" is not indexable [index] +src/documents/tests/test_api_documents.py:0: error: Value of type variable "_StrPathT" of "copy" cannot be "Path | None" [type-var] +src/documents/tests/test_api_documents.py:0: error: Value of type variable "_StrPathT" of "copy" cannot be "Path | None" [type-var] +src/documents/tests/test_api_email.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_email.py:0: error: Item "None" of "Path | None" has no attribute "stat" [union-attr] +src/documents/tests/test_api_email.py:0: error: Value of type variable "_StrPathT" of "copy" cannot be "Path | None" [type-var] +src/documents/tests/test_api_filter_by_custom_fields.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_api_filter_by_custom_fields.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_api_filter_by_custom_fields.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_filter_by_custom_fields.py:0: error: List item 1 has incompatible type "list[str]"; expected "str" [list-item] +src/documents/tests/test_api_filter_by_custom_fields.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/tests/test_api_filter_by_custom_fields.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/tests/test_api_filter_by_custom_fields.py:0: error: Need type annotation for "documents" (hint: "documents: list[] = ...") [var-annotated] +src/documents/tests/test_api_objects.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_objects.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_permissions.py:0: error: Argument 2 to "get_perms" has incompatible type "Tag | None"; expected "Model" [arg-type] +src/documents/tests/test_api_permissions.py:0: error: Argument 2 to "get_perms" has incompatible type "Tag | None"; expected "Model" [arg-type] +src/documents/tests/test_api_permissions.py:0: error: Argument 2 to "has_perm" of "ObjectPermissionChecker" has incompatible type "Tag | None"; expected "Model" [arg-type] +src/documents/tests/test_api_permissions.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_permissions.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_permissions.py:0: error: Item "None" of "Tag | None" has no attribute "owner" [union-attr] +src/documents/tests/test_api_permissions.py:0: error: Item "None" of "Tag | None" has no attribute "owner" [union-attr] +src/documents/tests/test_api_permissions.py:0: error: Item "None" of "Tag | None" has no attribute "owner" [union-attr] +src/documents/tests/test_api_permissions.py:0: error: Skipping analyzing "allauth.mfa.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_api_permissions.py:0: error: Skipping analyzing "allauth.mfa.totp.internal": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_api_profile.py:0: error: "User" has no attribute "socialaccount_set"; maybe "mailaccount_set"? [attr-defined] +src/documents/tests/test_api_profile.py:0: error: "User" has no attribute "socialaccount_set"; maybe "mailaccount_set"? [attr-defined] +src/documents/tests/test_api_profile.py:0: error: "User" has no attribute "socialaccount_set"; maybe "mailaccount_set"? [attr-defined] +src/documents/tests/test_api_profile.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_profile.py:0: error: Item "None" of "Token | None" has no attribute "key" [union-attr] +src/documents/tests/test_api_profile.py:0: error: Skipping analyzing "allauth.mfa.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_api_profile.py:0: error: Skipping analyzing "allauth.socialaccount.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_api_search.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_api_search.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_api_search.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_search.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_search.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_search.py:0: error: Need type annotation for "seen_ids" (hint: "seen_ids: list[] = ...") [var-annotated] +src/documents/tests/test_api_search.py:0: error: Skipping analyzing "whoosh.writing": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_api_status.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_status.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_status.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_status.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_api_uisettings.py:0: error: Argument 1 to "assertDictEqual" of "TestCase" has incompatible type "Any | None"; expected "Mapping[Any, object]" [arg-type] +src/documents/tests/test_api_workflows.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_api_workflows.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "Correspondent | None" has no attribute "pk" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowAction | None" has no attribute "assign_title" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowAction | None" has no attribute "id" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_custom_field_query" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_custom_field_query" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_all_tags" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_all_tags" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_any_correspondents" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_any_correspondents" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_any_document_types" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_any_document_types" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_any_storage_paths" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_any_storage_paths" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_not_correspondents" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_not_correspondents" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_not_document_types" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_not_document_types" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_not_storage_paths" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_not_storage_paths" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_not_tags" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_not_tags" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_tags" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "filter_has_tags" [union-attr] +src/documents/tests/test_api_workflows.py:0: error: Item "None" of "WorkflowTrigger | None" has no attribute "id" [union-attr] +src/documents/tests/test_api_workflows.py:0: note: Use "-> None" if function does not return a value +src/documents/tests/test_api_workflows.py:0: note: Use "-> None" if function does not return a value +src/documents/tests/test_barcodes.py:0: error: "GetReaderPluginMixin" has no attribute "dirs" [attr-defined] +src/documents/tests/test_barcodes.py:0: error: Argument 1 to "contextmanager" has incompatible type "Callable[[TestAsnBarcode, Path], BarcodePlugin]"; expected "Callable[[TestAsnBarcode, Path], Iterator[Never]]" [arg-type] +src/documents/tests/test_barcodes.py:0: error: Argument 1 to "contextmanager" has incompatible type "Callable[[TestTagBarcode, Path], BarcodePlugin]"; expected "Callable[[TestTagBarcode, Path], Iterator[Never]]" [arg-type] +src/documents/tests/test_barcodes.py:0: error: Argument 1 to "get_reader" of "GetReaderPluginMixin" has incompatible type "str"; expected "Path" [arg-type] +src/documents/tests/test_barcodes.py:0: error: Argument 3 to "BarcodePlugin" has incompatible type "DummyProgressManager"; expected "ProgressManager" [arg-type] +src/documents/tests/test_barcodes.py:0: error: Argument 3 to "BarcodePlugin" has incompatible type "DummyProgressManager"; expected "ProgressManager" [arg-type] +src/documents/tests/test_barcodes.py:0: error: Argument 3 to "BarcodePlugin" has incompatible type "DummyProgressManager"; expected "ProgressManager" [arg-type] +src/documents/tests/test_barcodes.py:0: error: Cannot find implementation or library stub for module named "zxingcpp" [import-not-found] +src/documents/tests/test_barcodes.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_barcodes.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str") [assignment] +src/documents/tests/test_barcodes.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "barcode_string" [union-attr] +src/documents/tests/test_barcodes.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "barcodes_enabled" [union-attr] +src/documents/tests/test_barcodes.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/documents/tests/test_barcodes.py:0: error: Item "None" of "Document | None" has no attribute "archive_serial_number" [union-attr] +src/documents/tests/test_barcodes.py:0: error: Item "None" of "Tag | None" has no attribute "name" [union-attr] +src/documents/tests/test_barcodes.py:0: error: Item "None" of "Tag | None" has no attribute "name" [union-attr] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: Need type annotation for "reader" [var-annotated] +src/documents/tests/test_barcodes.py:0: error: The return type of a generator function should be "Generator" or one of its supertypes [misc] +src/documents/tests/test_barcodes.py:0: error: The return type of a generator function should be "Generator" or one of its supertypes [misc] +src/documents/tests/test_barcodes.py:0: note: Use "-> None" if function does not return a value +src/documents/tests/test_bulk_edit.py:0: error: Argument 2 to "set_correspondent" has incompatible type "None"; expected "Correspondent" [arg-type] +src/documents/tests/test_bulk_edit.py:0: error: Argument 2 to "set_correspondent" has incompatible type "int"; expected "Correspondent" [arg-type] +src/documents/tests/test_bulk_edit.py:0: error: Argument 2 to "set_document_type" has incompatible type "None"; expected "DocumentType" [arg-type] +src/documents/tests/test_bulk_edit.py:0: error: Argument 2 to "set_document_type" has incompatible type "int"; expected "DocumentType" [arg-type] +src/documents/tests/test_bulk_edit.py:0: error: Argument 2 to "set_storage_path" has incompatible type "None"; expected "StoragePath" [arg-type] +src/documents/tests/test_bulk_edit.py:0: error: Argument 2 to "set_storage_path" has incompatible type "int"; expected "StoragePath" [arg-type] +src/documents/tests/test_bulk_edit.py:0: error: Argument 2 to "set_storage_path" has incompatible type "int"; expected "StoragePath" [arg-type] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_bulk_edit.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_bulk_edit.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_bulk_edit.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_bulk_edit.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_bulk_edit.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_bulk_edit.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_bulk_edit.py:0: error: Item "None" of "CustomFieldInstance | None" has no attribute "value" [union-attr] +src/documents/tests/test_bulk_edit.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_bulk_edit.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_bulk_edit.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_bulk_edit.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_bulk_edit.py:0: error: Unsupported operand types for - ("None" and "int") [operator] +src/documents/tests/test_bulk_edit.py:0: note: Left operand is of type "int | None" +src/documents/tests/test_caching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_classifier.py:0: error: "None" has no attribute "classes_" [attr-defined] +src/documents/tests/test_classifier.py:0: error: "None" has no attribute "classes_" [attr-defined] +src/documents/tests/test_classifier.py:0: error: "None" has no attribute "transform" [attr-defined] +src/documents/tests/test_classifier.py:0: error: Cannot assign to a method [method-assign] +src/documents/tests/test_classifier.py:0: error: Cannot assign to a method [method-assign] +src/documents/tests/test_classifier.py:0: error: Cannot assign to a method [method-assign] +src/documents/tests/test_classifier.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | Any | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_consumer.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | Any | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_consumer.py:0: error: Argument 2 to "has_perm" of "ObjectPermissionChecker" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_consumer.py:0: error: Argument 2 to "has_perm" of "ObjectPermissionChecker" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_consumer.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_consumer.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment] +src/documents/tests/test_consumer.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] +src/documents/tests/test_consumer.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Correspondent | Any | None" has no attribute "id" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "archive_checksum" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "archive_filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "archive_filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "archive_filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "archive_filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "archive_filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "archive_path" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "archive_path" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "archive_serial_number" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "checksum" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "content" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "created" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "created" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "created" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "created" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "created" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "created" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "created" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "custom_fields" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "custom_fields" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "custom_fields" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "delete" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "delete" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "filename" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "owner" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "pk" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "pk" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "source_path" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "source_path" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "source_path" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "thumbnail_path" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "DocumentType | Any | None" has no attribute "id" [union-attr] +src/documents/tests/test_consumer.py:0: error: Item "None" of "StoragePath | Any | None" has no attribute "id" [union-attr] +src/documents/tests/test_consumer.py:0: error: No overload variant of "copy" matches argument types "Any", "None" [call-overload] +src/documents/tests/test_consumer.py:0: note: Possible overload variants: +src/documents/tests/test_consumer.py:0: note: def [_BytesPathT: bytes | PathLike[bytes]] copy(src: bytes | PathLike[bytes], dst: _BytesPathT, *, follow_symlinks: bool = ...) -> _BytesPathT | bytes +src/documents/tests/test_consumer.py:0: note: def [_StrPathT: str | PathLike[str]] copy(src: str | PathLike[str], dst: _StrPathT, *, follow_symlinks: bool = ...) -> _StrPathT | str +src/documents/tests/test_delayedquery.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_delayedquery.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_delayedquery.py:0: error: Need type annotation for "tests" [var-annotated] +src/documents/tests/test_delayedquery.py:0: error: Skipping analyzing "whoosh": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_double_sided.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_double_sided.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_double_sided.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "Path" has incompatible type "Any | None"; expected "str | PathLike[str]" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "Path" has incompatible type "Any | None"; expected "str | PathLike[str]" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsNotFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Argument 1 to "assertIsNotFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_file_handling.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_file_handling.py:0: error: Skipping analyzing "auditlog.context": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_filters.py:0: error: Argument 1 to "localize_date" has incompatible type "list[object] | dict[Any, Any] | Literal[1698330605] | None"; expected "date | datetime | str" [arg-type] +src/documents/tests/test_filters.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_filters.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_filters.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_filters.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_filters.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_index.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_index.py:0: error: Module "django.utils.timezone" does not explicitly export attribute "timezone" [attr-defined] +src/documents/tests/test_management.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]" [arg-type] +src/documents/tests/test_management.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_management.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_management.py:0: error: Argument 1 to "assertIsNotFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[Any] | str" [arg-type] +src/documents/tests/test_management.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_management.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_management.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_management.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_management.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_management.py:0: error: Skipping analyzing "auditlog.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_management_consumer.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_management_exporter.py:0: error: Argument 1 to "call_command" has incompatible type "*list[object]"; expected "BaseCommand | str" [arg-type] +src/documents/tests/test_management_exporter.py:0: error: Argument 1 to "call_command" has incompatible type "*list[object]"; expected "BaseCommand | str" [arg-type] +src/documents/tests/test_management_exporter.py:0: error: Argument 1 to "call_command" has incompatible type "*list[object]"; expected "BaseCommand | str" [arg-type] +src/documents/tests/test_management_exporter.py:0: error: Argument 1 to "call_command" has incompatible type "*list[object]"; expected "BaseCommand | str" [arg-type] +src/documents/tests/test_management_exporter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_management_exporter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_management_exporter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_management_exporter.py:0: error: Item "None" of "MailAccount | None" has no attribute "password" [union-attr] +src/documents/tests/test_management_exporter.py:0: error: Skipping analyzing "allauth.socialaccount.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/tests/test_management_fuzzy.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_management_retagger.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_management_superuser.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_migration_share_link_bundle.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_migration_share_link_bundle.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_migration_share_link_bundle.py:0: error: Incompatible types in assignment (expression has type "str", base class "TestMigrations" defined the type as "None") [assignment] +src/documents/tests/test_migration_share_link_bundle.py:0: error: Incompatible types in assignment (expression has type "str", base class "TestMigrations" defined the type as "None") [assignment] +src/documents/tests/test_migration_share_link_bundle.py:0: error: Incompatible types in assignment (expression has type "str", base class "TestMigrations" defined the type as "None") [assignment] +src/documents/tests/test_migration_share_link_bundle.py:0: error: Incompatible types in assignment (expression has type "str", base class "TestMigrations" defined the type as "None") [assignment] +src/documents/tests/test_models.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_models.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_parsers.py:0: error: "None" not callable [misc] +src/documents/tests/test_parsers.py:0: error: "None" not callable [misc] +src/documents/tests/test_parsers.py:0: error: "None" not callable [misc] +src/documents/tests/test_parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_sanity_check.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_sanity_check.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_sanity_check.py:0: error: Invalid index type "None" for "dict[int, list[dict[Any, Any]]]"; expected type "int" [index] +src/documents/tests/test_share_link_bundles.py:0: error: "_MonkeyPatchedResponse" has no attribute "streaming_content" [attr-defined] +src/documents/tests/test_share_link_bundles.py:0: error: Argument 1 to "ZipFile" has incompatible type "Path | None"; expected "str | PathLike[str] | IO[bytes]" [arg-type] +src/documents/tests/test_share_link_bundles.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_share_link_bundles.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_share_link_bundles.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_share_link_bundles.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/tests/test_share_link_bundles.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/tests/test_share_link_bundles.py:0: error: Item "None" of "Path | None" has no attribute "exists" [union-attr] +src/documents/tests/test_share_link_bundles.py:0: error: Item "None" of "Path | None" has no attribute "exists" [union-attr] +src/documents/tests/test_share_link_bundles.py:0: error: Item "None" of "Path | None" has no attribute "read_bytes" [union-attr] +src/documents/tests/test_share_link_bundles.py:0: error: Item "None" of "Path | None" has no attribute "resolve" [union-attr] +src/documents/tests/test_tag_hierarchy.py:0: error: Argument 1 to "run_workflows" has incompatible type "int"; expected "WorkflowTriggerType" [arg-type] +src/documents/tests/test_tag_hierarchy.py:0: error: Argument 1 to "run_workflows" has incompatible type "int"; expected "WorkflowTriggerType" [arg-type] +src/documents/tests/test_tag_hierarchy.py:0: error: Argument 2 to "get" of "APIClient" has incompatible type "dict[str, object]"; expected "Mapping[str, str | bytes | float | Iterable[str | bytes | float]] | Iterable[tuple[str, str | bytes | float | Iterable[str | bytes | float]]] | None" [arg-type] +src/documents/tests/test_tag_hierarchy.py:0: error: Need type annotation for "context" (hint: "context: dict[, ] = ...") [var-annotated] +src/documents/tests/test_task_signals.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "str"; expected "Path" [arg-type] +src/documents/tests/test_task_signals.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "str"; expected "Path" [arg-type] +src/documents/tests/test_task_signals.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "str"; expected "Path" [arg-type] +src/documents/tests/test_task_signals.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "str"; expected "Path" [arg-type] +src/documents/tests/test_task_signals.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_task_signals.py:0: error: Need type annotation for "body" [var-annotated] +src/documents/tests/test_task_signals.py:0: error: Need type annotation for "body" [var-annotated] +src/documents/tests/test_task_signals.py:0: error: Need type annotation for "body" [var-annotated] +src/documents/tests/test_task_signals.py:0: error: Need type annotation for "body" [var-annotated] +src/documents/tests/test_tasks.py:0: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]" [arg-type] +src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_views.py:0: error: "_MonkeyPatchedWSGIResponse" has no attribute "render" [attr-defined] +src/documents/tests/test_views.py:0: error: "_MonkeyPatchedWSGIResponse" has no attribute "render" [attr-defined] +src/documents/tests/test_views.py:0: error: "_MonkeyPatchedWSGIResponse" has no attribute "url" [attr-defined] +src/documents/tests/test_views.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_views.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_views.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_views.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_views.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_views.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "app_logo" [union-attr] +src/documents/tests/test_views.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "app_logo" [union-attr] +src/documents/tests/test_views.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/documents/tests/test_views.py:0: error: Item "None" of "SuggestionCacheData | None" has no attribute "suggestions" [union-attr] +src/documents/tests/test_views.py:0: error: Value of type "dict[str, Any] | None" is not indexable [index] +src/documents/tests/test_views.py:0: error: Value of type "dict[str, Any] | None" is not indexable [index] +src/documents/tests/test_views.py:0: error: Value of type "dict[str, Any] | None" is not indexable [index] +src/documents/tests/test_views.py:0: error: Value of type "dict[str, Any] | None" is not indexable [index] +src/documents/tests/test_views.py:0: error: Value of type "dict[str, Any] | None" is not indexable [index] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "files" to "__call__" of "Task" has incompatible type "None"; expected "dict[Any, Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Any | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "Path | str"; expected "Path" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_groups_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "get_users_with_perms" has incompatible type "Document | None"; expected "Model" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "list" has incompatible type "Group | dict[Any, Any]"; expected "Iterable[Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "list" has incompatible type "Group | dict[Any, Any]"; expected "Iterable[Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "list" has incompatible type "Group | dict[Any, Any]"; expected "Iterable[Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "list" has incompatible type "Group | dict[Any, Any]"; expected "Iterable[Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "list" has incompatible type "Group | dict[Any, Any]"; expected "Iterable[Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "list" has incompatible type "Group | dict[Any, Any]"; expected "Iterable[Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "run_workflows" has incompatible type "int"; expected "WorkflowTriggerType" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "run_workflows" has incompatible type "int"; expected "WorkflowTriggerType" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 1 to "run_workflows" has incompatible type "int"; expected "WorkflowTriggerType" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]" [arg-type] +src/documents/tests/test_workflows.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/test_workflows.py:0: error: Incompatible types in assignment (expression has type "Any | list[str]", variable has type "QuerySet[Any, Any]") [assignment] +src/documents/tests/test_workflows.py:0: error: Incompatible types in assignment (expression has type "Any | list[str]", variable has type "QuerySet[Any, Any]") [assignment] +src/documents/tests/test_workflows.py:0: error: Incompatible types in assignment (expression has type "Group | dict[Any, Any]", variable has type "QuerySet[Any, Any]") [assignment] +src/documents/tests/test_workflows.py:0: error: Incompatible types in assignment (expression has type "Group | dict[Any, Any]", variable has type "QuerySet[Any, Any]") [assignment] +src/documents/tests/test_workflows.py:0: error: Incompatible types in assignment (expression has type "Group | dict[Any, Any]", variable has type "QuerySet[Any, Any]") [assignment] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "Group" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "correspondent" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "custom_fields" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "custom_fields" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "custom_fields" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "custom_fields" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "custom_fields" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "document_type" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "owner" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "owner" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "owner" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "owner" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "owner" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "owner" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "owner" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "owner" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "storage_path" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "tags" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Document | None" has no attribute "title" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Request | None" has no attribute "headers" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Request | None" has no attribute "headers" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Request | None" has no attribute "headers" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Request | None" has no attribute "headers" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Request | None" has no attribute "headers" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "None" of "Request | None" has no attribute "url" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "dict[Any, Any]" of "Group | dict[Any, Any]" has no attribute "count" [union-attr] +src/documents/tests/test_workflows.py:0: error: Item "str" of "Any | str" has no attribute "name" [union-attr] +src/documents/tests/test_workflows.py:0: error: Missing type parameters for generic type "QuerySet" [type-arg] +src/documents/tests/test_workflows.py:0: error: Missing type parameters for generic type "QuerySet" [type-arg] +src/documents/tests/test_workflows.py:0: error: Missing type parameters for generic type "QuerySet" [type-arg] +src/documents/tests/test_workflows.py:0: error: Missing type parameters for generic type "QuerySet" [type-arg] +src/documents/tests/test_workflows.py:0: error: Missing type parameters for generic type "QuerySet" [type-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/test_workflows.py:0: error: Too few arguments for "count" of "list" [call-arg] +src/documents/tests/utils.py:0: error: "Collection[str]" has no attribute "update" [attr-defined] +src/documents/tests/utils.py:0: error: "FileSystemAssertsMixin" has no attribute "assertEqual"; maybe "assertFilesEqual"? [attr-defined] +src/documents/tests/utils.py:0: error: "FileSystemAssertsMixin" has no attribute "assertEqual"; maybe "assertFilesEqual"? [attr-defined] +src/documents/tests/utils.py:0: error: "FileSystemAssertsMixin" has no attribute "assertFalse"; maybe "assertIsFile"? [attr-defined] +src/documents/tests/utils.py:0: error: "FileSystemAssertsMixin" has no attribute "assertFalse"; maybe "assertIsFile"? [attr-defined] +src/documents/tests/utils.py:0: error: "FileSystemAssertsMixin" has no attribute "assertTrue" [attr-defined] +src/documents/tests/utils.py:0: error: "FileSystemAssertsMixin" has no attribute "assertTrue" [attr-defined] +src/documents/tests/utils.py:0: error: "FileSystemAssertsMixin" has no attribute "assertTrue" [attr-defined] +src/documents/tests/utils.py:0: error: "GetConsumerMixin" has no attribute "dirs" [attr-defined] +src/documents/tests/utils.py:0: error: "GetConsumerMixin" has no attribute "dirs" [attr-defined] +src/documents/tests/utils.py:0: error: "GetConsumerMixin" has no attribute "dirs" [attr-defined] +src/documents/tests/utils.py:0: error: "setUp" undefined in superclass [misc] +src/documents/tests/utils.py:0: error: "setUp" undefined in superclass [misc] +src/documents/tests/utils.py:0: error: "setUp" undefined in superclass [misc] +src/documents/tests/utils.py:0: error: "tearDown" undefined in superclass [misc] +src/documents/tests/utils.py:0: error: "tearDown" undefined in superclass [misc] +src/documents/tests/utils.py:0: error: "tearDown" undefined in superclass [misc] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "archive_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "archive_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "archive_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "consumption_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "consumption_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "data_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "data_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "data_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "data_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "data_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "index_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "index_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "index_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "logging_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "logging_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "logging_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "media_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "media_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "media_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "media_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "media_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "media_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "originals_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "originals_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "originals_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "scratch_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "scratch_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "settings_override" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "settings_override" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "static_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "static_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "thumbnail_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "thumbnail_dir" [attr-defined] +src/documents/tests/utils.py:0: error: "type[dirs@34]" has no attribute "thumbnail_dir" [attr-defined] +src/documents/tests/utils.py:0: error: Cannot determine type of "apps" [has-type] +src/documents/tests/utils.py:0: error: First argument to namedtuple() should be "dirs", not "Dirs" [name-match] +src/documents/tests/utils.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/utils.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/utils.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/tests/utils.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/tests/utils.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/utils.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/utils.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/utils.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/tests/utils.py:0: error: Item "None" of "AppConfig | None" has no attribute "name" [union-attr] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "Callable" [type-arg] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "PathLike" [type-arg] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "PathLike" [type-arg] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "PathLike" [type-arg] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "PathLike" [type-arg] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "PathLike" [type-arg] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "PathLike" [type-arg] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "PathLike" [type-arg] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/tests/utils.py:0: error: Missing type parameters for generic type "tuple" [type-arg] +src/documents/tests/utils.py:0: error: Need type annotation for "payloads" (hint: "payloads: list[] = ...") [var-annotated] +src/documents/utils.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "float | int") [assignment] +src/documents/utils.py:0: error: Incompatible types in assignment (expression has type "float | int", variable has type "int | None") [assignment] +src/documents/utils.py:0: error: Missing type parameters for generic type "CompletedProcess" [type-arg] +src/documents/validators.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/views.py:0: error: "BulkPermissionMixin" has no attribute "filter_queryset" [attr-defined] +src/documents/views.py:0: error: "BulkPermissionMixin" has no attribute "get_queryset" [attr-defined] +src/documents/views.py:0: error: "BulkPermissionMixin" has no attribute "queryset" [attr-defined] +src/documents/views.py:0: error: "BulkPermissionMixin" has no attribute "queryset" [attr-defined] +src/documents/views.py:0: error: "BulkPermissionMixin" has no attribute "request" [attr-defined] +src/documents/views.py:0: error: "get_serializer_context" undefined in superclass [misc] +src/documents/views.py:0: error: "object" not callable [operator] +src/documents/views.py:0: error: "type[Model]" has no attribute "objects" [attr-defined] +src/documents/views.py:0: error: Argument "path" to "EmailAttachment" has incompatible type "Path | None"; expected "Path" [arg-type] +src/documents/views.py:0: error: Argument 1 to "int" has incompatible type "str | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +src/documents/views.py:0: error: Argument 2 to "match_correspondents" has incompatible type "DocumentClassifier | None"; expected "DocumentClassifier" [arg-type] +src/documents/views.py:0: error: Argument 2 to "match_document_types" has incompatible type "DocumentClassifier | None"; expected "DocumentClassifier" [arg-type] +src/documents/views.py:0: error: Argument 2 to "match_storage_paths" has incompatible type "DocumentClassifier | None"; expected "DocumentClassifier" [arg-type] +src/documents/views.py:0: error: Argument 2 to "match_tags" has incompatible type "DocumentClassifier | None"; expected "DocumentClassifier" [arg-type] +src/documents/views.py:0: error: Argument 4 to "autocomplete" has incompatible type "User | AnonymousUser | None"; expected "User | None" [arg-type] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/views.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/views.py:0: error: Incompatible type for lookup 'owner': (got "User | AnonymousUser", expected "User | int | None") [misc] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "Any | None", variable has type "dict[Any, Any]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "QuerySet[Any, Any]", variable has type "list[Any]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "QuerySet[Any, Any]", variable has type "list[Document]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "bool", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "bool", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "bool", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "int", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "str | None", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "str | None", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "str", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "str", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "str", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "str", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "str", target has type "dict[str, str]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "tuple[type[IsAuthenticated]]", variable has type "tuple[type[IsAuthenticated], type[PaperlessObjectPermissions]]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "type[ArchiveOnlyStrategy]", variable has type "type[OriginalAndArchiveStrategy]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "type[DelayedMoreLikeThisQuery]", variable has type "type[DelayedFullTextQuery]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "type[DocumentSerializer]", variable has type "type[TrashSerializer]") [assignment] +src/documents/views.py:0: error: Incompatible types in assignment (expression has type "type[OriginalsOnlyStrategy]", variable has type "type[OriginalAndArchiveStrategy]") [assignment] +src/documents/views.py:0: error: Item "AnonymousUser" of "User | AnonymousUser" has no attribute "get_full_name" [union-attr] +src/documents/views.py:0: error: Item "BasePagination" of "BasePagination | None" has no attribute "get_page_size" [union-attr] +src/documents/views.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/views.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/views.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "app_logo" [union-attr] +src/documents/views.py:0: error: Item "None" of "BasePagination | None" has no attribute "get_page_size" [union-attr] +src/documents/views.py:0: error: Item "None" of "dict[str, _PingReply] | None" has no attribute "keys" [union-attr] +src/documents/views.py:0: error: Missing positional argument "request" in call to "email_documents" [call-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "GenericViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "ReadOnlyModelViewSet" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "Serializer" [type-arg] +src/documents/views.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/documents/views.py:0: error: Need type annotation for "authentication_classes" (hint: "authentication_classes: list[] = ...") [var-annotated] +src/documents/views.py:0: error: Need type annotation for "children_map" (hint: "children_map: dict[, ] = ...") [var-annotated] +src/documents/views.py:0: error: Need type annotation for "doc" [var-annotated] +src/documents/views.py:0: error: Need type annotation for "docs" (hint: "docs: list[] = ...") [var-annotated] +src/documents/views.py:0: error: Need type annotation for "permission_classes" (hint: "permission_classes: list[] = ...") [var-annotated] +src/documents/views.py:0: error: Need type annotation for "ui_settings" (hint: "ui_settings: dict[, ] = ...") [var-annotated] +src/documents/views.py:0: error: Skipping analyzing "auditlog.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/views.py:0: error: Skipping analyzing "langdetect": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/documents/views.py:0: error: TypedDict key must be a string literal; expected one of ("pk", "correspondent", "document_type", "storage_path", "tags", ...) [literal-required] +src/documents/views.py:0: error: Unsupported operand types for + ("None" and "int") [operator] +src/documents/views.py:0: error: Value of type "Iterable[Any]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[Any]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[Any]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[Any]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[CustomField]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[Group]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[MailAccount]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[MailRule]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[SavedView]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[User]" is not indexable [index] +src/documents/views.py:0: error: Value of type "Iterable[Workflow]" is not indexable [index] +src/documents/views.py:0: error: Value of type "dict[str, _PingReply] | None" is not indexable [index] +src/documents/views.py:0: note: "__call__" is considered instance variable, to make it class variable use ClassVar[...] +src/documents/views.py:0: note: Left operand is of type "Any | None" +src/documents/workflows/actions.py:0: error: Argument "files" to "delay" of "Task" has incompatible type "dict[str, tuple[str, bytes, str]] | None"; expected "dict[Any, Any]" [arg-type] +src/documents/workflows/actions.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/workflows/actions.py:0: error: Function is missing a type annotation [no-untyped-def] +src/documents/workflows/actions.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/workflows/actions.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/workflows/actions.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/workflows/actions.py:0: error: Incompatible types in assignment (expression has type "Any | None", variable has type "Document") [assignment] +src/documents/workflows/actions.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "dict[Any, str]") [assignment] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "added" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "correspondent" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "correspondent" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "created" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "document_type" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "document_type" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "filename" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "original_filename" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "owner" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "pk" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "pk" [union-attr] +src/documents/workflows/actions.py:0: error: Item "ConsumableDocument" of "Document | ConsumableDocument" has no attribute "title" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionEmail | None" has no attribute "body" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionEmail | None" has no attribute "body" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionEmail | None" has no attribute "include_document" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionEmail | None" has no attribute "subject" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionEmail | None" has no attribute "subject" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionEmail | None" has no attribute "to" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionEmail | None" has no attribute "to" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "as_json" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "body" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "body" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "headers" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "headers" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "include_document" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "params" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "params" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "url" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "url" [union-attr] +src/documents/workflows/actions.py:0: error: Item "None" of "WorkflowActionWebhook | None" has no attribute "use_params" [union-attr] +src/documents/workflows/actions.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/workflows/actions.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/workflows/actions.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_change_groups"; maybe "assign_change_groups"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_change_groups"; maybe "assign_change_groups"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_change_users"; maybe "assign_change_users"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_change_users"; maybe "assign_change_users"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_custom_fields"; maybe "assign_custom_fields" or "assign_custom_fields_values"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_custom_fields"; maybe "assign_custom_fields" or "assign_custom_fields_values"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_tags"; maybe "assign_tags"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_tags"; maybe "assign_tags"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_view_groups"; maybe "assign_view_groups"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_view_groups"; maybe "assign_view_groups"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_view_users"; maybe "assign_view_users"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_assign_view_users"; maybe "assign_view_users"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_change_groups"; maybe "remove_change_groups"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_change_groups"; maybe "remove_change_groups"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_change_users"; maybe "remove_change_users"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_change_users"; maybe "remove_change_users"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_custom_fields"; maybe "remove_custom_fields" or "remove_all_custom_fields"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_custom_fields"; maybe "remove_custom_fields" or "remove_all_custom_fields"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_view_groups"; maybe "remove_view_groups"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_view_groups"; maybe "remove_view_groups"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_view_users"; maybe "remove_view_users"? [attr-defined] +src/documents/workflows/mutations.py:0: error: "WorkflowAction" has no attribute "has_remove_view_users"; maybe "remove_view_users"? [attr-defined] +src/documents/workflows/mutations.py:0: error: Argument "data_type" to "get_value_field_name" of "CustomFieldInstance" has incompatible type "str"; expected "FieldDataType" [arg-type] +src/documents/workflows/mutations.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/workflows/mutations.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/workflows/mutations.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/workflows/mutations.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/workflows/mutations.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/workflows/mutations.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/workflows/mutations.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/documents/workflows/mutations.py:0: error: Need type annotation for "permissions" [var-annotated] +src/documents/workflows/utils.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/workflows/webhooks.py:0: error: Argument 1 to "_format_ip_for_url" of "WebhookTransport" has incompatible type "str | int"; expected "str" [arg-type] +src/documents/workflows/webhooks.py:0: error: Argument 1 to "post" of "Client" has incompatible type "**dict[str, str | dict[Any, Any] | None]"; expected "Cookies | CookieJar | dict[str, str] | list[tuple[str, str]] | None" [arg-type] +src/documents/workflows/webhooks.py:0: error: Argument 1 to "post" of "Client" has incompatible type "**dict[str, str | dict[Any, Any] | None]"; expected "Headers | Mapping[str, str] | Mapping[bytes, bytes] | Sequence[tuple[str, str]] | Sequence[tuple[bytes, bytes]] | None" [arg-type] +src/documents/workflows/webhooks.py:0: error: Argument 1 to "post" of "Client" has incompatible type "**dict[str, str | dict[Any, Any] | None]"; expected "Mapping[str, Any] | None" [arg-type] +src/documents/workflows/webhooks.py:0: error: Argument 1 to "post" of "Client" has incompatible type "**dict[str, str | dict[Any, Any] | None]"; expected "Mapping[str, IO[bytes] | bytes | str | tuple[str | None, IO[bytes] | bytes | str] | tuple[str | None, IO[bytes] | bytes | str, str | None] | tuple[str | None, IO[bytes] | bytes | str, str | None, Mapping[str, str]]] | Sequence[tuple[str, IO[bytes] | bytes | str | tuple[str | None, IO[bytes] | bytes | str] | tuple[str | None, IO[bytes] | bytes | str, str | None] | tuple[str | None, IO[bytes] | bytes | str, str | None, Mapping[str, str]]]] | None" [arg-type] +src/documents/workflows/webhooks.py:0: error: Argument 1 to "post" of "Client" has incompatible type "**dict[str, str | dict[Any, Any] | None]"; expected "URL | str" [arg-type] +src/documents/workflows/webhooks.py:0: error: Argument 1 to "post" of "Client" has incompatible type "**dict[str, str | dict[Any, Any] | None]"; expected "bool | UseClientDefault" [arg-type] +src/documents/workflows/webhooks.py:0: error: Argument 1 to "post" of "Client" has incompatible type "**dict[str, str | dict[Any, Any] | None]"; expected "float | tuple[float | None, float | None, float | None, float | None] | Timeout | None | UseClientDefault" [arg-type] +src/documents/workflows/webhooks.py:0: error: Argument 1 to "post" of "Client" has incompatible type "**dict[str, str | dict[Any, Any] | None]"; expected "tuple[str | bytes, str | bytes] | Callable[[Request], Request] | Auth | UseClientDefault" [arg-type] +src/documents/workflows/webhooks.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/documents/workflows/webhooks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/documents/workflows/webhooks.py:0: error: Incompatible return value type (got "str | int | None", expected "str | None") [return-value] +src/documents/workflows/webhooks.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/workflows/webhooks.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/documents/workflows/webhooks.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/paperless/adapter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/adapter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/adapter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/adapter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/adapter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/adapter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/adapter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/adapter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/adapter.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/adapter.py:0: error: Name "user" already defined on line 0 [no-redef] +src/paperless/adapter.py:0: error: Skipping analyzing "allauth.account.adapter": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/adapter.py:0: error: Skipping analyzing "allauth.core": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/adapter.py:0: error: Skipping analyzing "allauth.headless.tokens.strategies.sessions": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/adapter.py:0: error: Skipping analyzing "allauth.socialaccount.adapter": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/admin.py:0: error: "PaperlessUserForm" has no attribute "request" [attr-defined] +src/paperless/admin.py:0: error: "type[ModelForm[Any]]" has no attribute "request" [attr-defined] +src/paperless/admin.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/admin.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/admin.py:0: error: Item "None" of "dict[str, Any] | None" has no attribute "get" [union-attr] +src/paperless/admin.py:0: error: Missing type parameters for generic type "ModelForm" [type-arg] +src/paperless/admin.py:0: error: Missing type parameters for generic type "UserAdmin" [type-arg] +src/paperless/admin.py:0: error: Signature of "get_form" incompatible with supertype "django.contrib.admin.options.ModelAdmin" [override] +src/paperless/admin.py:0: note: Subclass: +src/paperless/admin.py:0: note: Superclass: +src/paperless/admin.py:0: note: def get_form(self, request: Any, obj: Any = ..., **kwargs: Any) -> Any +src/paperless/admin.py:0: note: def get_form(self, request: HttpRequest, obj: Any | None = ..., change: bool = ..., **kwargs: Any) -> type[ModelForm[Any]] +src/paperless/apps.py:0: error: Skipping analyzing "allauth.socialaccount.signals": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/asgi.py:0: error: Library stubs not installed for "channels.auth" [import-untyped] +src/paperless/asgi.py:0: error: Library stubs not installed for "channels.routing" [import-untyped] +src/paperless/auth.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/auth.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/auth.py:0: error: No return value expected [return-value] +src/paperless/auth.py:0: error: No return value expected [return-value] +src/paperless/auth.py:0: error: Return type "None" of "__call__" incompatible with return type "HttpResponseBase | Awaitable[HttpResponseBase]" in supertype "django.contrib.auth.middleware.RemoteUserMiddleware" [override] +src/paperless/auth.py:0: error: Skipping analyzing "allauth.mfa.adapter": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/checks.py:0: error: Argument 1 to "append" of "list" has incompatible type "Warning"; expected "Error" [arg-type] +src/paperless/checks.py:0: error: Argument 2 to "path_check" has incompatible type "Path | None"; expected "Path" [arg-type] +src/paperless/checks.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/checks.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/checks.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/checks.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/checks.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/checks.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/checks.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/checks.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/checks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/checks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/config.py:0: error: Incompatible return value type (got "ApplicationConfiguration | None", expected "ApplicationConfiguration") [return-value] +src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "Any | None", variable has type "str") [assignment] +src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +src/paperless/consumers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/consumers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/consumers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/consumers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/consumers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/consumers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/consumers.py:0: error: Item "None" of "Any | None" has no attribute "groups" [union-attr] +src/paperless/consumers.py:0: error: Item "None" of "Any | None" has no attribute "id" [union-attr] +src/paperless/consumers.py:0: error: Item "None" of "Any | None" has no attribute "id" [union-attr] +src/paperless/consumers.py:0: error: Item "None" of "Any | None" has no attribute "is_superuser" [union-attr] +src/paperless/consumers.py:0: error: Library stubs not installed for "channels.exceptions" [import-untyped] +src/paperless/consumers.py:0: error: Library stubs not installed for "channels.generic.websocket" [import-untyped] +src/paperless/consumers.py:0: note: Use "-> None" if function does not return a value +src/paperless/db_cache.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/db_cache.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/db_cache.py:0: error: Skipping analyzing "cachalot.api": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/db_cache.py:0: error: Skipping analyzing "cachalot.utils": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/middleware.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/middleware.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/migrations/0001_initial.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/serialisers.py:0: error: "PasswordValidationMixin" has no attribute "instance" [attr-defined] +src/paperless/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/serialisers.py:0: error: Item "None" of "str | None" has no attribute "replace" [union-attr] +src/paperless/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/paperless/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/paperless/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/paperless/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/paperless/serialisers.py:0: error: Missing type parameters for generic type "ModelSerializer" [type-arg] +src/paperless/serialisers.py:0: error: Need type annotation for "auth_token" [var-annotated] +src/paperless/serialisers.py:0: error: Signature of "run_validation" incompatible with supertype "rest_framework.fields.Field" [override] +src/paperless/serialisers.py:0: error: Skipping analyzing "allauth.mfa.adapter": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/serialisers.py:0: error: Skipping analyzing "allauth.mfa.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/serialisers.py:0: error: Skipping analyzing "allauth.mfa.totp.internal.auth": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/serialisers.py:0: error: Skipping analyzing "allauth.socialaccount.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/serialisers.py:0: note: Subclass: +src/paperless/serialisers.py:0: note: Superclass: +src/paperless/serialisers.py:0: note: def run_validation(self, data: Any = ...) -> Any +src/paperless/serialisers.py:0: note: def run_validation(self, data: Any) -> Any +src/paperless/settings.py:0: error: "Sequence[str]" has no attribute "append" [attr-defined] +src/paperless/settings.py:0: error: "Sequence[str]" has no attribute "insert" [attr-defined] +src/paperless/settings.py:0: error: "object" has no attribute "update" [attr-defined] +src/paperless/settings.py:0: error: "object" has no attribute "update" [attr-defined] +src/paperless/settings.py:0: error: "object" has no attribute "update" [attr-defined] +src/paperless/settings.py:0: error: "object" has no attribute "update" [attr-defined] +src/paperless/settings.py:0: error: Argument 1 to "_parse_ignore_dates" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless/settings.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless/settings.py:0: error: Argument 1 to "int" has incompatible type "str | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +src/paperless/settings.py:0: error: Argument 1 to "int" has incompatible type "str | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +src/paperless/settings.py:0: error: Argument 1 to "int" has incompatible type "str | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +src/paperless/settings.py:0: error: Argument 1 to "int" has incompatible type "str | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] +src/paperless/settings.py:0: error: Argument 2 to "__get_path" has incompatible type "str | None"; expected "PathLike[Any] | str" [arg-type] +src/paperless/settings.py:0: error: Argument 2 to "getenv" has incompatible type "None"; expected "Collection[str]" [arg-type] +src/paperless/settings.py:0: error: Argument 2 to "getenv" has incompatible type "None"; expected "Collection[str]" [arg-type] +src/paperless/settings.py:0: error: Argument 2 to "getenv" has incompatible type "None"; expected "Collection[str]" [arg-type] +src/paperless/settings.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/settings.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/settings.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/settings.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/settings.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/settings.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/settings.py:0: error: Incompatible return value type (got "set[date]", expected "set[datetime]") [return-value] +src/paperless/settings.py:0: error: Incompatible return value type (got "tuple[str | None, str, str, str, str]", expected "tuple[str, str, str, str, str]") [return-value] +src/paperless/settings.py:0: error: Incompatible types in assignment (expression has type "bool", variable has type "str") [assignment] +src/paperless/settings.py:0: error: Incompatible types in assignment (expression has type "set[datetime]", variable has type "set[date]") [assignment] +src/paperless/settings.py:0: error: Missing type parameters for generic type "PathLike" [type-arg] +src/paperless/settings.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/paperless/settings.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/paperless/settings.py:0: error: No overload variant of "getenv" matches argument types "Collection[str]", "Collection[str]" [call-overload] +src/paperless/settings.py:0: error: Skipping analyzing "compression_middleware.middleware": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/settings.py:0: note: Possible overload variants: +src/paperless/settings.py:0: note: def [_T] getenv(key: str, default: _T) -> str | _T +src/paperless/settings.py:0: note: def getenv(key: str) -> str | None +src/paperless/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/tests/test_adapter.py:0: error: Cannot assign to a method [method-assign] +src/paperless/tests/test_adapter.py:0: error: Cannot assign to a method [method-assign] +src/paperless/tests/test_adapter.py:0: error: Cannot assign to a method [method-assign] +src/paperless/tests/test_adapter.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_adapter.py:0: error: Skipping analyzing "allauth.account.adapter": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/tests/test_adapter.py:0: error: Skipping analyzing "allauth.core": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/tests/test_adapter.py:0: error: Skipping analyzing "allauth.socialaccount.adapter": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/tests/test_db_cache.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_db_cache.py:0: error: Skipping analyzing "cachalot.settings": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/tests/test_settings.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_settings.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_signals.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/paperless/tests/test_signals.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr] +src/paperless/tests/test_utils.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/tests/test_utils.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/tests/test_utils.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/tests/test_views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/tests/test_views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/tests/test_websockets.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_websockets.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_websockets.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_websockets.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_websockets.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_websockets.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless/tests/test_websockets.py:0: error: Library stubs not installed for "channels.layers" [import-untyped] +src/paperless/tests/test_websockets.py:0: error: Library stubs not installed for "channels.testing" [import-untyped] +src/paperless/urls.py:0: error: Skipping analyzing "allauth.account": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/urls.py:0: error: Skipping analyzing "allauth.mfa.base": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/urls.py:0: error: Skipping analyzing "allauth.socialaccount": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/urls.py:0: error: Skipping analyzing "allauth.urls": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/validators.py:0: error: Argument 1 to "join" of "str" has incompatible type "Iterator[str | bytes] | Any"; expected "Iterable[str]" [arg-type] +src/paperless/validators.py:0: error: Incompatible types in assignment (expression has type "str | bytes", variable has type "str") [assignment] +src/paperless/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless/views.py:0: error: Incompatible type for "user" of "Token" (got "User | AnonymousUser", expected "User | Combinable") [misc] +src/paperless/views.py:0: error: Incompatible type for lookup 'user': (got "User | AnonymousUser", expected "User | int | None") [misc] +src/paperless/views.py:0: error: Item "AnonymousUser" of "User | AnonymousUser" has no attribute "socialaccount_set" [union-attr] +src/paperless/views.py:0: error: Item "None" of "Any | None" has no attribute "results" [union-attr] +src/paperless/views.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "ai_enabled" [union-attr] +src/paperless/views.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "llm_embedding_backend" [union-attr] +src/paperless/views.py:0: error: Item "None" of "Page[Any] | None" has no attribute "paginator" [union-attr] +src/paperless/views.py:0: error: Item "None" of "Page[Any] | None" has no attribute "paginator" [union-attr] +src/paperless/views.py:0: error: Item "None" of "Page[Any] | None" has no attribute "paginator" [union-attr] +src/paperless/views.py:0: error: Item "None" of "User | AnonymousUser | None" has no attribute "save" [union-attr] +src/paperless/views.py:0: error: Item "None" of "User | AnonymousUser | None" has no attribute "save" [union-attr] +src/paperless/views.py:0: error: Item "None" of "User | AnonymousUser | None" has no attribute "set_password" [union-attr] +src/paperless/views.py:0: error: Item "User" of "User | AnonymousUser" has no attribute "socialaccount_set" [union-attr] +src/paperless/views.py:0: error: Item "_SupportsPagination[Any]" of "_SupportsPagination[Any] | Any" has no attribute "values_list" [union-attr] +src/paperless/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/paperless/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/paperless/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/paperless/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/paperless/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/paperless/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/paperless/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/paperless/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/paperless/views.py:0: error: Skipping analyzing "allauth.mfa": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/views.py:0: error: Skipping analyzing "allauth.mfa.adapter": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/views.py:0: error: Skipping analyzing "allauth.mfa.base.internal.flows": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/views.py:0: error: Skipping analyzing "allauth.mfa.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/views.py:0: error: Skipping analyzing "allauth.mfa.recovery_codes.internal.flows": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/views.py:0: error: Skipping analyzing "allauth.mfa.totp.internal": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/views.py:0: error: Skipping analyzing "allauth.socialaccount.adapter": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless/views.py:0: error: Skipping analyzing "allauth.socialaccount.models": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless_ai/ai_classifier.py:0: error: Argument 1 to "parse_ai_response" has incompatible type "str"; expected "dict[Any, Any]" [arg-type] +src/paperless_ai/ai_classifier.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/paperless_ai/ai_classifier.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/paperless_ai/chat.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/chat.py:0: error: Item "AsyncGenerator[str, None]" of "Any | Generator[str, None, None] | AsyncGenerator[str, None]" has no attribute "__iter__" (not iterable) [union-attr] +src/paperless_ai/chat.py:0: error: Item "Response" of "Response | StreamingResponse | AsyncStreamingResponse | PydanticResponse" has no attribute "response_gen" [union-attr] +src/paperless_ai/client.py:0: error: Incompatible return value type (got "dict[str, Any]", expected "str") [return-value] +src/paperless_ai/indexing.py:0: error: Argument "persist_dir" to "from_defaults" of "StorageContext" has incompatible type "Path"; expected "str | None" [arg-type] +src/paperless_ai/indexing.py:0: error: Argument 1 to "from_persist_dir" of "FaissVectorStore" has incompatible type "Path"; expected "str" [arg-type] +src/paperless_ai/indexing.py:0: error: Argument 1 to "from_persist_dir" of "SimpleDocumentStore" has incompatible type "Path"; expected "str" [arg-type] +src/paperless_ai/indexing.py:0: error: Argument 1 to "from_persist_dir" of "SimpleIndexStore" has incompatible type "Path"; expected "str" [arg-type] +src/paperless_ai/indexing.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/indexing.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/indexing.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/indexing.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/indexing.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/indexing.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/indexing.py:0: error: Skipping analyzing "faiss": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless_ai/matching.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/matching.py:0: error: Missing type parameters for generic type "list" [type-arg] +src/paperless_ai/tests/test_ai_classifier.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_classifier.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_classifier.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_classifier.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_classifier.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_classifier.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_classifier.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_classifier.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_classifier.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_ai_indexing.py:0: error: Return type "list[float]" of "_aget_query_embedding" incompatible with return type "Coroutine[Any, Any, list[float]]" in supertype "llama_index.core.base.embeddings.base.BaseEmbedding" [override] +src/paperless_ai/tests/test_chat.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_chat.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_chat.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_chat.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_chat.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_client.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_client.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_client.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_client.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_client.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_client.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_client.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_client.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_client.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[Any, Any, Any]" [index] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_embedding.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_ai/tests/test_matching.py:0: error: Argument "user" to "match_correspondents_by_name" has incompatible type "None"; expected "User" [arg-type] +src/paperless_ai/tests/test_matching.py:0: error: Argument "user" to "match_document_types_by_name" has incompatible type "None"; expected "User" [arg-type] +src/paperless_ai/tests/test_matching.py:0: error: Argument "user" to "match_storage_paths_by_name" has incompatible type "None"; expected "User" [arg-type] +src/paperless_ai/tests/test_matching.py:0: error: Argument "user" to "match_tags_by_name" has incompatible type "None"; expected "User" [arg-type] +src/paperless_ai/tests/test_matching.py:0: error: Argument "user" to "match_tags_by_name" has incompatible type "None"; expected "User" [arg-type] +src/paperless_ai/tests/test_matching.py:0: error: Argument "user" to "match_tags_by_name" has incompatible type "None"; expected "User" [arg-type] +src/paperless_ai/tests/test_matching.py:0: error: Argument 1 to "match_tags_by_name" has incompatible type "list[str | None]"; expected "list[str]" [arg-type] +src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/admin.py:0: error: Missing type parameters for generic type "ModelAdmin" [type-arg] +src/paperless_mail/admin.py:0: error: Missing type parameters for generic type "ModelForm" [type-arg] +src/paperless_mail/mail.py:0: error: "Message[str, str]" has no attribute "_headers"; maybe "add_header"? [attr-defined] +src/paperless_mail/mail.py:0: error: "Message[str, str]" has no attribute "_headers"; maybe "add_header"? [attr-defined] +src/paperless_mail/mail.py:0: error: "Message[str, str]" has no attribute "_headers"; maybe "add_header"? [attr-defined] +src/paperless_mail/mail.py:0: error: "Message[str, str]" has no attribute "_headers"; maybe "add_header"? [attr-defined] +src/paperless_mail/mail.py:0: error: Argument "original_file" to "ConsumableDocument" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 1 to "TagMailAction" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "Header | list[Header] | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "Header | list[Header] | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "bool | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "bool | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "int | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "int | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "str | Iterable[str] | UidRange | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "str | Iterable[str] | UidRange | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "str | list[str] | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "AND" has incompatible type "**dict[str, date]"; expected "str | list[str] | None" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "flag" of "BaseMailBox" has incompatible type "list[str] | None"; expected "str | Iterable[str]" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 3 to "post_consume" of "BaseMailAction" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/mail.py:0: error: Argument 4 to "uid" of "IMAP4" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/mail.py:0: error: Incompatible return value type (got "MailBoxUnencrypted", expected "MailBox") [return-value] +src/paperless_mail/mail.py:0: error: Incompatible type for "uid" of "ProcessedMail" (got "str | None", expected "str | int | Combinable") [misc] +src/paperless_mail/mail.py:0: error: Incompatible types in assignment (expression has type "MailBox", variable has type "MailBoxUnencrypted") [assignment] +src/paperless_mail/mail.py:0: error: Incompatible types in assignment (expression has type "MailBoxStartTls", variable has type "MailBoxUnencrypted") [assignment] +src/paperless_mail/mail.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] +src/paperless_mail/mail.py:0: error: Incompatible types in assignment (expression has type "str", target has type "date") [assignment] +src/paperless_mail/mail.py:0: error: Incompatible types in assignment (expression has type "str", target has type "date") [assignment] +src/paperless_mail/mail.py:0: error: Incompatible types in assignment (expression has type "str", target has type "date") [assignment] +src/paperless_mail/mail.py:0: error: Incompatible types in assignment (expression has type "str", target has type "date") [assignment] +src/paperless_mail/mail.py:0: error: Missing type parameters for generic type "dict" [type-arg] +src/paperless_mail/management/commands/mail_fetcher.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/models.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/oauth.py:0: error: Argument "refresh_token" to "refresh_token" of "BaseOAuth2" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/oauth.py:0: error: Argument "refresh_token" to "refresh_token" of "BaseOAuth2" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/oauth.py:0: error: Argument 1 to "GoogleOAuth2" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/oauth.py:0: error: Argument 1 to "MicrosoftGraphOAuth2" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/oauth.py:0: error: Argument 2 to "GoogleOAuth2" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/oauth.py:0: error: Argument 2 to "MicrosoftGraphOAuth2" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_mail/oauth.py:0: error: Incompatible return value type (got "None", expected "GoogleOAuth2") [return-value] +src/paperless_mail/oauth.py:0: error: Incompatible return value type (got "None", expected "MicrosoftGraphOAuth2") [return-value] +src/paperless_mail/oauth.py:0: error: Incompatible types in assignment (expression has type "GoogleOAuth2", variable has type "None") [assignment] +src/paperless_mail/oauth.py:0: error: Incompatible types in assignment (expression has type "MicrosoftGraphOAuth2", variable has type "None") [assignment] +src/paperless_mail/parsers.py:0: error: "tuple[str, ...]" has no attribute "encode" [attr-defined] +src/paperless_mail/parsers.py:0: error: Argument 1 to "make_thumbnail_from_pdf" has incompatible type "None"; expected "Path" [arg-type] +src/paperless_mail/parsers.py:0: error: Argument 2 to "generate_pdf" of "MailDocumentParser" has incompatible type "int"; expected "PdfLayout | None" [arg-type] +src/paperless_mail/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/parsers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment] +src/paperless_mail/parsers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment] +src/paperless_mail/parsers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment] +src/paperless_mail/parsers.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "PdfLayout | None") [assignment] +src/paperless_mail/parsers.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] +src/paperless_mail/parsers.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "tuple[str, ...]") [assignment] +src/paperless_mail/parsers.py:0: error: Item "None" of "EmailAddress | None" has no attribute "full" [union-attr] +src/paperless_mail/parsers.py:0: error: Item "None" of "EmailAddress | None" has no attribute "full" [union-attr] +src/paperless_mail/parsers.py:0: error: Need type annotation for "result" (hint: "result: list[] = ...") [var-annotated] +src/paperless_mail/preprocessor.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/preprocessor.py:0: error: Skipping analyzing "gnupg": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless_mail/serialisers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/serialisers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/serialisers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/serialisers.py:0: error: Missing type parameters for generic type "PrimaryKeyRelatedField" [type-arg] +src/paperless_mail/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: "BogusFolderManager" has no attribute "list" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "BogusFolderManager" has no attribute "list" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "BogusFolderManager" has no attribute "list" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "BogusFolderManager" has no attribute "list" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "MailMessage" has no attribute "flagged" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "MailMessage" has no attribute "flagged" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "MailMessage" has no attribute "seen" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "MailMessage" has no attribute "seen" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "type[att@480]" has no attribute "filename" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "type[message2@426]" has no attribute "from_" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "type[message2@426]" has no attribute "from_" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "type[message2@426]" has no attribute "from_values" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "type[message@419]" has no attribute "from_" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "type[message@419]" has no attribute "from_values" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "type[message@478]" has no attribute "subject" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: "type[message@531]" has no attribute "attachments" [attr-defined] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "MailboxFolderSelectError" has incompatible type "None"; expected "tuple[Any, ...]" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "MailboxFolderSelectError" has incompatible type "None"; expected "tuple[Any, ...]" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "MailboxLoginError" has incompatible type "str"; expected "tuple[Any, ...]" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "MailboxLoginError" has incompatible type "str"; expected "tuple[Any, ...]" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "MailboxLoginError" has incompatible type "str"; expected "tuple[Any, ...]" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "MailboxLoginError" has incompatible type "str"; expected "tuple[Any, ...]" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "_get_correspondent" of "MailAccountHandler" has incompatible type "type[message2@426]"; expected "MailMessage" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "_get_correspondent" of "MailAccountHandler" has incompatible type "type[message2@426]"; expected "MailMessage" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "_get_correspondent" of "MailAccountHandler" has incompatible type "type[message@419]"; expected "MailMessage" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "_get_correspondent" of "MailAccountHandler" has incompatible type "type[message@419]"; expected "MailMessage" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "_get_correspondent" of "MailAccountHandler" has incompatible type "type[message@419]"; expected "MailMessage" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "_get_correspondent" of "MailAccountHandler" has incompatible type "type[message@419]"; expected "MailMessage" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "_get_title" of "MailAccountHandler" has incompatible type "type[message@478]"; expected "MailMessage" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "_get_title" of "MailAccountHandler" has incompatible type "type[message@478]"; expected "MailMessage" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "_get_title" of "MailAccountHandler" has incompatible type "type[message@478]"; expected "MailMessage" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "filter" has incompatible type "Callable[[Any], bool]"; expected "Callable[[MailMessage], TypeGuard[Never]]" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 1 to "filter" has incompatible type "Callable[[Any], bool]"; expected "Callable[[MailMessage], TypeGuard[Never]]" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 2 to "_get_title" of "MailAccountHandler" has incompatible type "type[att@480]"; expected "MailAttachment" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 2 to "_get_title" of "MailAccountHandler" has incompatible type "type[att@480]"; expected "MailAttachment" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 2 to "_get_title" of "MailAccountHandler" has incompatible type "type[att@480]"; expected "MailAttachment" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]" [arg-type] +src/paperless_mail/tests/test_mail.py:0: error: Dict entry 0 has incompatible type "str": "None"; expected "str": "str" [dict-item] +src/paperless_mail/tests/test_mail.py:0: error: Dict entry 0 has incompatible type "str": "int"; expected "str": "str" [dict-item] +src/paperless_mail/tests/test_mail.py:0: error: First argument to namedtuple() should be "att", not "Attachment" [name-match] +src/paperless_mail/tests/test_mail.py:0: error: First argument to namedtuple() should be "message", not "MailMessage" [name-match] +src/paperless_mail/tests/test_mail.py:0: error: First argument to namedtuple() should be "message", not "MailMessage" [name-match] +src/paperless_mail/tests/test_mail.py:0: error: First argument to namedtuple() should be "message", not "MailMessage" [name-match] +src/paperless_mail/tests/test_mail.py:0: error: First argument to namedtuple() should be "message2", not "MailMessage" [name-match] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_mail.py:0: error: Incompatible types in assignment (expression has type "filter[MailMessage]", variable has type "list[MailMessage]") [assignment] +src/paperless_mail/tests/test_mail.py:0: error: Incompatible types in assignment (expression has type "filter[MailMessage]", variable has type "list[MailMessage]") [assignment] +src/paperless_mail/tests/test_mail.py:0: error: Incompatible types in assignment (expression has type "filter[MailMessage]", variable has type "list[MailMessage]") [assignment] +src/paperless_mail/tests/test_mail.py:0: error: Incompatible types in assignment (expression has type "filter[MailMessage]", variable has type "list[MailMessage]") [assignment] +src/paperless_mail/tests/test_mail.py:0: error: Incompatible types in assignment (expression has type "filter[MailMessage]", variable has type "list[MailMessage]") [assignment] +src/paperless_mail/tests/test_mail.py:0: error: Incompatible types in assignment (expression has type "filter[MailMessage]", variable has type "list[MailMessage]") [assignment] +src/paperless_mail/tests/test_mail.py:0: error: Incompatible types in assignment (expression has type "filter[Never]", variable has type "list[MailMessage]") [assignment] +src/paperless_mail/tests/test_mail.py:0: error: Incompatible types in assignment (expression has type "filter[Never]", variable has type "list[MailMessage]") [assignment] +src/paperless_mail/tests/test_mail.py:0: error: Item "None" of "Correspondent | None" has no attribute "id" [union-attr] +src/paperless_mail/tests/test_mail.py:0: error: Item "None" of "Correspondent | None" has no attribute "id" [union-attr] +src/paperless_mail/tests/test_mail.py:0: error: Item "None" of "Correspondent | None" has no attribute "match" [union-attr] +src/paperless_mail/tests/test_mail.py:0: error: Item "None" of "Correspondent | None" has no attribute "matching_algorithm" [union-attr] +src/paperless_mail/tests/test_mail.py:0: error: Item "None" of "Correspondent | None" has no attribute "name" [union-attr] +src/paperless_mail/tests/test_mail.py:0: error: Item "None" of "Correspondent | None" has no attribute "name" [union-attr] +src/paperless_mail/tests/test_mail.py:0: error: Item "None" of "Correspondent | None" has no attribute "name" [union-attr] +src/paperless_mail/tests/test_mail.py:0: error: Item "None" of "MailRule | None" has no attribute "name" [union-attr] +src/paperless_mail/tests/test_mail.py:0: error: Missing type parameters for generic type "AbstractContextManager" [type-arg] +src/paperless_mail/tests/test_mail.py:0: error: Module "django.utils.timezone" does not explicitly export attribute "datetime" [attr-defined] +src/paperless_mail/tests/test_mail_oauth.py:0: error: "_MonkeyPatchedWSGIResponse" has no attribute "url" [attr-defined] +src/paperless_mail/tests/test_mail_oauth.py:0: error: "_MonkeyPatchedWSGIResponse" has no attribute "url" [attr-defined] +src/paperless_mail/tests/test_mail_oauth.py:0: error: "_MonkeyPatchedWSGIResponse" has no attribute "url" [attr-defined] +src/paperless_mail/tests/test_mail_oauth.py:0: error: "_MonkeyPatchedWSGIResponse" has no attribute "url" [attr-defined] +src/paperless_mail/tests/test_mail_oauth.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail_oauth.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail_oauth.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_mail_oauth.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_mail/tests/test_parsers.py:0: error: Argument 1 to "extract_metadata" of "MailDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_mail/tests/test_parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_parsers.py:0: error: Item "None" of "Request | None" has no attribute "url" [union-attr] +src/paperless_mail/tests/test_parsers.py:0: error: Item "None" of "Request | None" has no attribute "url" [union-attr] +src/paperless_mail/tests/test_parsers_live.py:0: error: List item 0 has incompatible type "str | None"; expected "str | bytes | PathLike[str] | PathLike[bytes]" [list-item] +src/paperless_mail/tests/test_preprocessor.py:0: error: "Message[str, str]" has no attribute "_headers"; maybe "add_header"? [attr-defined] +src/paperless_mail/tests/test_preprocessor.py:0: error: "Message[str, str]" has no attribute "_headers"; maybe "add_header"? [attr-defined] +src/paperless_mail/tests/test_preprocessor.py:0: error: "TestMailMessageGpgDecryptor" has no attribute "messageEncryptor" [attr-defined] +src/paperless_mail/tests/test_preprocessor.py:0: error: "TestMailMessageGpgDecryptor" has no attribute "messageEncryptor" [attr-defined] +src/paperless_mail/tests/test_preprocessor.py:0: error: "TestMailMessageGpgDecryptor" has no attribute "messageEncryptor" [attr-defined] +src/paperless_mail/tests/test_preprocessor.py:0: error: "TestMailMessageGpgDecryptor" has no attribute "messageEncryptor" [attr-defined] +src/paperless_mail/tests/test_preprocessor.py:0: error: "TestMailMessageGpgDecryptor" has no attribute "messageEncryptor" [attr-defined] +src/paperless_mail/tests/test_preprocessor.py:0: error: "type[TestMailMessageGpgDecryptor]" has no attribute "messageEncryptor" [attr-defined] +src/paperless_mail/tests/test_preprocessor.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/tests/test_preprocessor.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_preprocessor.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/tests/test_preprocessor.py:0: error: Skipping analyzing "gnupg": module is installed, but missing library stubs or py.typed marker [import-untyped] +src/paperless_mail/views.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_mail/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/views.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_mail/views.py:0: error: Incompatible types in assignment (expression has type "tuple[type[IsAuthenticated]]", variable has type "tuple[type[IsAuthenticated], type[PaperlessObjectPermissions]]") [assignment] +src/paperless_mail/views.py:0: error: Missing type parameters for generic type "GenericAPIView" [type-arg] +src/paperless_mail/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/paperless_mail/views.py:0: error: Missing type parameters for generic type "ModelViewSet" [type-arg] +src/paperless_mail/views.py:0: error: Missing type parameters for generic type "ReadOnlyModelViewSet" [type-arg] +src/paperless_remote/checks.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_remote/parsers.py:0: error: "None" has no attribute "open" [attr-defined] +src/paperless_remote/parsers.py:0: error: Argument "engine" to "RemoteEngineConfig" has incompatible type "str | None"; expected "str" [arg-type] +src/paperless_remote/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_remote/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_remote/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_remote/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_remote/parsers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment] +src/paperless_remote/parsers.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "None") [assignment] +src/paperless_remote/parsers.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] +src/paperless_remote/parsers.py:0: error: Return type "RemoteEngineConfig" of "get_settings" incompatible with return type "OcrConfig" in supertype "paperless_tesseract.parsers.RasterisedDocumentParser" [override] +src/paperless_remote/signals.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_remote/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_remote/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_remote/tests/test_parser.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_remote/tests/test_parser.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_remote/tests/test_parser.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/checks.py:0: error: Argument 1 to "append" of "list" has incompatible type "Error"; expected "Warning" [arg-type] +src/paperless_tesseract/checks.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_tesseract/checks.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tesseract/checks.py:0: error: List item 0 has incompatible type "str | None"; expected "str | bytes | PathLike[str] | PathLike[bytes]" [list-item] +src/paperless_tesseract/parsers.py:0: error: Argument "logger" to "run_subprocess" has incompatible type "LoggerAdapter[Logger]"; expected "Logger | None" [arg-type] +src/paperless_tesseract/parsers.py:0: error: Argument "logger" to "run_subprocess" has incompatible type "LoggerAdapter[Logger]"; expected "Logger | None" [arg-type] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/parsers.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] +src/paperless_tesseract/parsers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment] +src/paperless_tesseract/parsers.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "None") [assignment] +src/paperless_tesseract/parsers.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "None") [assignment] +src/paperless_tesseract/parsers.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "None") [assignment] +src/paperless_tesseract/parsers.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "None") [assignment] +src/paperless_tesseract/parsers.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "None") [assignment] +src/paperless_tesseract/parsers.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] +src/paperless_tesseract/parsers.py:0: error: List item 4 has incompatible type "Path"; expected "str" [list-item] +src/paperless_tesseract/parsers.py:0: error: List item 5 has incompatible type "Path"; expected "str" [list-item] +src/paperless_tesseract/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tesseract/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tesseract/tests/test_checks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/tests/test_checks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/tests/test_checks.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "None"; expected "PathLike[Any] | str" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Argument 1 to "parse" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path" [arg-type] +src/paperless_tesseract/tests/test_parser.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/tests/test_parser.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/tests/test_parser.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/tests/test_parser.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/tests/test_parser.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tesseract/tests/test_parser.py:0: error: Item "None" of "str | None" has no attribute "strip" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "color_conversion_strategy" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "deskew" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "language" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "max_image_pixels" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "mode" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "output_type" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "pages" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "rotate_pages" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "rotate_pages_threshold" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "save" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "unpaper_clean" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "unpaper_clean" [union-attr] +src/paperless_tesseract/tests/test_parser_custom_settings.py:0: error: Item "None" of "ApplicationConfiguration | None" has no attribute "user_args" [union-attr] +src/paperless_text/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_text/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_text/parsers.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment] +src/paperless_text/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_text/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tika/parsers.py:0: error: Argument 1 to "make_thumbnail_from_pdf" has incompatible type "None"; expected "Path" [arg-type] +src/paperless_tika/parsers.py:0: error: Function is missing a return type annotation [no-untyped-def] +src/paperless_tika/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tika/parsers.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tika/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tika/parsers.py:0: error: Function is missing a type annotation for one or more arguments [no-untyped-def] +src/paperless_tika/parsers.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "None") [assignment] +src/paperless_tika/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tika/signals.py:0: error: Function is missing a type annotation [no-untyped-def] +src/paperless_tika/tests/test_live_tika.py:0: error: Unsupported right operand type for in ("None") [operator] diff --git a/pyproject.toml b/pyproject.toml index 1faa435f1..9b5adb1e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -138,7 +138,9 @@ typing = [ "django-stubs[compatible-mypy]", "djangorestframework-stubs[compatible-mypy]", "lxml-stubs", + "microsoft-python-type-stubs @ git+https://github.com/microsoft/python-type-stubs.git", "mypy", + "mypy-baseline", "types-bleach", "types-colorama", "types-dateparser", @@ -333,10 +335,6 @@ exclude_also = [ [tool.mypy] mypy_path = "src" -files = [ - "src/documents/plugins/date_parsing", - "src/documents/tests/date_parsing", -] plugins = [ "mypy_django_plugin.main", "mypy_drf_plugin.main", @@ -348,28 +346,9 @@ disallow_untyped_defs = true warn_redundant_casts = true warn_unused_ignores = true -# This prevents errors from imports, but allows type-checking logic to work -follow_imports = "silent" - -[[tool.mypy.overrides]] -module = [ - "documents.*", - "paperless.*", - "paperless_ai.*", - "paperless_mail.*", - "paperless_tesseract.*", - "paperless_remote.*", - "paperless_text.*", - "paperless_tika.*", -] -ignore_errors = true - -[[tool.mypy.overrides]] -module = [ - "documents.plugins.date_parsing.*", - "documents.tests.date_parsing.*", -] -ignore_errors = false - [tool.django-stubs] django_settings_module = "paperless.settings" + +[tool.mypy-baseline] +baseline_path = ".mypy-baseline.txt" +sort_baseline = true diff --git a/uv.lock b/uv.lock index c4839e61b..75334a3fd 100644 --- a/uv.lock +++ b/uv.lock @@ -1305,7 +1305,7 @@ name = "exceptiongroup" version = "1.3.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "typing-extensions", marker = "(python_full_version < '3.13' and platform_machine != 'aarch64' and platform_machine != 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.12' and platform_machine == 'aarch64' and sys_platform == 'linux') or (python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux') or (python_full_version < '3.13' and sys_platform == 'darwin')" }, + { name = "typing-extensions", marker = "(python_full_version < '3.11' and sys_platform == 'darwin') or (python_full_version < '3.11' and sys_platform == 'linux')" }, ] sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" } wheels = [ @@ -2584,6 +2584,11 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/2c/19/04f9b178c2d8a15b076c8b5140708fa6ffc5601fb6f1e975537072df5b2a/mergedeep-1.3.4-py3-none-any.whl", hash = "sha256:70775750742b25c0d8f36c55aed03d24c3384d17c951b3175d898bd778ef0307", size = 6354, upload-time = "2021-02-05T18:55:29.583Z" }, ] +[[package]] +name = "microsoft-python-type-stubs" +version = "0" +source = { git = "https://github.com/microsoft/python-type-stubs.git#692c37c3969d22612b295ddf7e7af5907204a386" } + [[package]] name = "mkdocs" version = "1.6.1" @@ -2875,6 +2880,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/8d/f4/4ce9a05ce5ded1de3ec1c1d96cf9f9504a04e54ce0ed55cfa38619a32b8d/mypy-1.19.1-py3-none-any.whl", hash = "sha256:f1235f5ea01b7db5468d53ece6aaddf1ad0b88d9e7462b86ef96fe04995d7247", size = 2471239, upload-time = "2025-12-15T05:03:07.248Z" }, ] +[[package]] +name = "mypy-baseline" +version = "0.7.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/65/2a/03288dab6d5f24d187ba0c223f6b3035d9a29de3dd31a3e105a0d4f1b5da/mypy_baseline-0.7.3.tar.gz", hash = "sha256:325f0695310eb8f5c0f10fa7af36ee1b3785a9d26b886a61c07b4a8eddb28d29", size = 319108, upload-time = "2025-05-30T08:43:00.629Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1f/93/7780302b206a8e8e767ce763ef06159725d1323acbe55e46a1cd1ffd109d/mypy_baseline-0.7.3-py3-none-any.whl", hash = "sha256:bd7fa899e687d75af2e3f392a9d6d1790e65dae3d31fe12525cc14f26d866b74", size = 17868, upload-time = "2025-05-30T08:42:58.262Z" }, +] + [[package]] name = "mypy-extensions" version = "1.1.0" @@ -3293,7 +3307,9 @@ typing = [ { name = "django-stubs", extra = ["compatible-mypy"], marker = "sys_platform == 'darwin' or sys_platform == 'linux'" }, { name = "djangorestframework-stubs", extra = ["compatible-mypy"], marker = "sys_platform == 'darwin' or sys_platform == 'linux'" }, { name = "lxml-stubs", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" }, + { name = "microsoft-python-type-stubs", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" }, { name = "mypy", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" }, + { name = "mypy-baseline", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" }, { name = "types-bleach", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" }, { name = "types-colorama", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" }, { name = "types-dateparser", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" }, @@ -3433,7 +3449,9 @@ typing = [ { name = "django-stubs", extras = ["compatible-mypy"] }, { name = "djangorestframework-stubs", extras = ["compatible-mypy"] }, { name = "lxml-stubs" }, + { name = "microsoft-python-type-stubs", git = "https://github.com/microsoft/python-type-stubs.git" }, { name = "mypy" }, + { name = "mypy-baseline" }, { name = "types-bleach" }, { name = "types-colorama" }, { name = "types-dateparser" },