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 arguments for generic type "ModelAdmin"  [type-arg]
src/documents/admin.py:0: error: Missing type arguments for generic type "TabularInline"  [type-arg]
src/documents/admin.py:0: error: Missing type arguments 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: Library stubs not installed for "regex"  [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 parameters  [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[int]", 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 arguments for generic type "dict"  [type-arg]
src/documents/bulk_edit.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/bulk_edit.py:0: error: Need type annotation for "to_create" (hint: "to_create: list[<type>] = ...")  [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 parameters  [no-untyped-def]
src/documents/caching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/caching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/caching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/caching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/caching.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/caching.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/caching.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/caching.py:0: error: Missing type arguments for generic type "list"  [type-arg]
src/documents/caching.py:0: error: Missing type arguments for generic type "list"  [type-arg]
src/documents/caching.py:0: error: Missing type arguments for generic type "list"  [type-arg]
src/documents/caching.py:0: error: Missing type arguments 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 parameters  [no-untyped-def]
src/documents/classifier.py:0: error: Function is missing a type annotation for one or more parameters  [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/conditionals.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/conditionals.py:0: error: Function is missing a type annotation for one or more parameters  [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 "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: 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 "str | Any | None"; expected "str"  [arg-type]
src/documents/consumer.py:0: error: Argument 1 to "compute_checksum" has incompatible type "Path | None"; expected "Path"  [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" of "DateParserPluginBase" has incompatible type "str | Any | None"; expected "str"  [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: Argument 4 to "should_produce_archive" has incompatible type "LoggerAdapter[Logger]"; expected "Logger | None"  [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 parameters  [no-untyped-def]
src/documents/consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/consumer.py:0: error: Function is missing a type annotation for one or more parameters  [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 "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: Return type "ConsumeFileSuccessResult" of "run" incompatible with return type "str | None" in supertype "documents.plugins.base.ConsumeTaskPlugin"  [override]
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 parameters  [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 arguments 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: Argument 1 to "format_filename" has incompatible type "Document | None"; expected "Document"  [arg-type]
src/documents/file_handling.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/file_handling.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/file_handling.py:0: error: Item "None" of "Document | None" has no attribute "pk"  [union-attr]
src/documents/file_handling.py:0: error: Item "None" of "Document | None" has no attribute "storage_path"  [union-attr]
src/documents/file_handling.py:0: error: Item "None" of "Document | None" has no attribute "storage_path"  [union-attr]
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  [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 parameters  [no-untyped-def]
src/documents/filters.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/filters.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/filters.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/filters.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/filters.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/filters.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/filters.py:0: error: Function is missing a type annotation for one or more parameters  [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 "MonetaryAmountField", 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 arguments for generic type "Callable"  [type-arg]
src/documents/filters.py:0: error: Missing type arguments for generic type "Field"  [type-arg]
src/documents/filters.py:0: error: Need type annotation for "_annotations" (hint: "_annotations: dict[<type>, <type>] = ...")  [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/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 parameters  [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 parameters  [no-untyped-def]
src/documents/management/commands/document_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [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 for one or more parameters  [no-untyped-def]
src/documents/management/commands/document_exporter.py:0: error: "None" has no attribute "write"  [attr-defined]
src/documents/management/commands/document_exporter.py:0: error: "None" has no attribute "write"  [attr-defined]
src/documents/management/commands/document_exporter.py:0: error: "None" has no attribute "write"  [attr-defined]
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 parameters  [no-untyped-def]
src/documents/management/commands/document_exporter.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/management/commands/document_exporter.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/management/commands/document_exporter.py:0: error: Incompatible types in assignment (expression has type "TextIOWrapper[_WrappedBuffer]", variable has type "None")  [assignment]
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: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_exporter.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_exporter.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_exporter.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_exporter.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_exporter.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_exporter.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_exporter.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_exporter.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_exporter.py:0: error: Missing type arguments 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_fuzzy_match.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/management/commands/document_fuzzy_match.py:0: error: Function is missing a return 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_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 parameters  [no-untyped-def]
src/documents/management/commands/document_importer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/management/commands/document_importer.py:0: error: Function is missing a type annotation for one or more parameters  [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: Missing type arguments for generic type "Generator"  [type-arg]
src/documents/management/commands/document_importer.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_importer.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_importer.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/management/commands/document_importer.py:0: error: Missing type arguments 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[<type>] = ...")  [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_importer.py:0: error: Skipping analyzing "ijson": 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_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 for one or more parameters  [no-untyped-def]
src/documents/management/commands/document_retagger.py:0: error: Function is missing a type annotation for one or more parameters  [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 parameters  [no-untyped-def]
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 parameters  [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: Missing type arguments for generic type "dict"  [type-arg]
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[object]"  [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 parameters  [no-untyped-def]
src/documents/matching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/matching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/matching.py:0: error: Function is missing a type annotation for one or more parameters  [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/migrations/0001_squashed.py:0: error: Skipping analyzing "multiselectfield": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/documents/migrations/0001_squashed.py:0: error: Skipping analyzing "multiselectfield.db": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/documents/migrations/0001_squashed.py:0: error: Skipping analyzing "multiselectfield.db.fields": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/documents/migrations/0007_sharelinkbundle.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/migrations/0007_sharelinkbundle.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/migrations/0014_savedview_visibility_to_ui_settings.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/migrations/0014_savedview_visibility_to_ui_settings.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/migrations/0014_savedview_visibility_to_ui_settings.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/migrations/0016_sha256_checksums.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/migrations/0016_sha256_checksums.py:0: error: Missing type arguments for generic type "list"  [type-arg]
src/documents/migrations/0017_migrate_fulltext_query_field_prefixes.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/migrations/0018_saved_view_simple_search_rules.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: 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 'runs' for relation 'documents.models.WorkflowRun.workflow'.  [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 parameters  [no-untyped-def]
src/documents/models.py:0: error: Function is missing a type annotation for one or more parameters  [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/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 parameters  [no-untyped-def]
src/documents/parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/parsers.py:0: error: Function is missing a type annotation for one or more parameters  [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  [no-untyped-def]
src/documents/permissions.py:0: error: Function is missing a type annotation for one or more parameters  [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 arguments for generic type "dict"  [type-arg]
src/documents/plugins/date_parsing/regex_parser.py:0: error: Library stubs not installed for "regex"  [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/regex.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/regex.py:0: error: Function is missing a return type annotation  [no-untyped-def]
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/sanity_checker.py:0: error: Unused "type: ignore" comment  [unused-ignore]
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/search/_backend.py:0: error: "AbstractBaseUser" has no attribute "is_superuser"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "acquire"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "add_document"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "commit"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "delete_documents_by_query"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "parse_query"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "reload"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "schema"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "searcher"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "searcher"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "searcher"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "searcher"  [attr-defined]
src/documents/search/_backend.py:0: error: "None" has no attribute "writer"  [attr-defined]
src/documents/search/_backend.py:0: error: Argument 1 to "build_permission_filter" has incompatible type "None"; expected "Schema"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "build_permission_filter" has incompatible type "None"; expected "Schema"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "parse_simple_text_highlight_query" has incompatible type "None"; expected "Index"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "parse_simple_text_query" has incompatible type "None"; expected "Index"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "parse_simple_title_query" has incompatible type "None"; expected "Index"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "parse_user_query" has incompatible type "None"; expected "Index"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "range_query" of "Query" has incompatible type "None"; expected "Schema"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "range_query" of "Query" has incompatible type "None"; expected "Schema"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "range_query" of "Query" has incompatible type "None"; expected "Schema"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "regex_query" of "Query" has incompatible type "None"; expected "Schema"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "register_tokenizers" has incompatible type "None"; expected "Index"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 1 to "term_query" of "Query" has incompatible type "None"; expected "Schema"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 2 to "add_unsigned" of "Document" has incompatible type "int | None"; expected "int"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 2 to "add_unsigned" of "Document" has incompatible type "int | None"; expected "int"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 2 to "add_unsigned" of "Document" has incompatible type "int | None"; expected "int"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 3 to "create" of "SnippetGenerator" has incompatible type "None"; expected "Schema"  [arg-type]
src/documents/search/_backend.py:0: error: Argument 3 to "create" of "SnippetGenerator" has incompatible type "None"; expected "Schema"  [arg-type]
src/documents/search/_backend.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/search/_backend.py:0: error: Incompatible types in assignment (expression has type "Index", variable has type "None")  [assignment]
src/documents/search/_backend.py:0: error: Incompatible types in assignment (expression has type "Index", variable has type "None")  [assignment]
src/documents/search/_backend.py:0: error: Incompatible types in assignment (expression has type "Index", variable has type "None")  [assignment]
src/documents/search/_backend.py:0: error: Incompatible types in assignment (expression has type "Schema", variable has type "None")  [assignment]
src/documents/search/_backend.py:0: error: Incompatible types in assignment (expression has type "SoftFileLock", variable has type "None")  [assignment]
src/documents/search/_backend.py:0: error: Item "str" of "Any | str" has no attribute "pk"  [union-attr]
src/documents/search/_backend.py:0: error: Library stubs not installed for "regex"  [import-untyped]
src/documents/search/_backend.py:0: error: List comprehension has incompatible type List[tuple[Any, Any]]; expected List[tuple[Any]]  [misc]
src/documents/search/_backend.py:0: error: List comprehension has incompatible type List[tuple[Any, Any]]; expected List[tuple[Any]]  [misc]
src/documents/search/_backend.py:0: error: Tuple index out of range  [misc]
src/documents/search/_backend.py:0: error: Tuple index out of range  [misc]
src/documents/search/_backend.py:0: error: Tuple index out of range  [misc]
src/documents/search/_query.py:0: error: Argument 3 to "regex_phrase_query" of "Query" has incompatible type "list[str]"; expected "list[str | tuple[int, str]]"  [arg-type]
src/documents/search/_query.py:0: error: Library stubs not installed for "regex"  [import-untyped]
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 of "update" is incompatible with supertype "rest_framework.serializers.BaseSerializer"; supertype defines the argument type as "dict[str, 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 | Collection[str]"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
src/documents/serialisers.py:0: error: Argument 1 to "list" has incompatible type "QuerySet[Document, TypedDict({'id': int, 'title': str, 'deleted_at': datetime | None})]"; expected "Iterable[dict[str, Any]]"  [arg-type]
src/documents/serialisers.py:0: error: Expected iterable as variadic argument  [misc]
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 parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
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 "QuerySet[Any, Any]", variable has type "UnknownQuerySet[Document, Document]")  [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 "pk"  [union-attr]
src/documents/serialisers.py:0: error: Item "None" of "CustomField | None" has no attribute "name"  [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 "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 arguments for generic type "Field"  [type-arg]
src/documents/serialisers.py:0: error: Missing type arguments for generic type "Iterable"  [type-arg]
src/documents/serialisers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/serialisers.py:0: error: Missing type arguments 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: Need type annotation for "with_perms"  [var-annotated]
src/documents/serialisers.py:0: error: No overload variant of "get" of "dict" matches argument types "str", "str"  [call-overload]
src/documents/serialisers.py:0: error: No overload variant of "get" of "dict" matches argument types "str", "str"  [call-overload]
src/documents/serialisers.py:0: error: No overload variant of "get" of "dict" matches argument types "str", "str"  [call-overload]
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/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: 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 parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/signals/handlers.py:0: error: Incompatible types in assignment (expression has type "Any | None", target has type "datetime")  [assignment]
src/documents/signals/handlers.py:0: error: Incompatible types in assignment (expression has type "str", target has type "datetime")  [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 "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 "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: 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: Missing type arguments for generic type "dict"  [type-arg]
src/documents/signals/handlers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/signals/handlers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/signals/handlers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/signals/handlers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/signals/handlers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/signals/handlers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
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 "compute_checksum" has incompatible type "Path | None"; expected "Path"  [arg-type]
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 1 to "move" has incompatible type "Path | None"; expected "str | PathLike[str]"  [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 type annotation for one or more parameters  [no-untyped-def]
src/documents/tasks.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tasks.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tasks.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tasks.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tasks.py:0: error: Incompatible return value type (got "str | None", expected "ConsumeFileSuccessResult | ConsumeFileStoppedResult | ConsumeFileDuplicateResult | None")  [return-value]
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: Missing type arguments for generic type "Task"  [type-arg]
src/documents/tasks.py:0: error: Missing type arguments 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: 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 parameters  [no-untyped-def]
src/documents/templating/filepath.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/templating/filepath.py:0: error: Function is missing a type annotation for one or more parameters  [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: "type[UserModelT?]" has no attribute "objects"  [attr-defined]
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/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 type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/conftest.py:0: error: Incompatible return value type (got "DocumentFactory", expected "Document")  [return-value]
src/documents/tests/conftest.py:0: error: Variable "documents.tests.conftest.UserModelT" is not valid as a type  [valid-type]
src/documents/tests/conftest.py:0: error: Variable "documents.tests.conftest.UserModelT" is not valid as a type  [valid-type]
src/documents/tests/conftest.py:0: error: Variable "documents.tests.conftest.UserModelT" is not valid as a type  [valid-type]
src/documents/tests/conftest.py:0: error: Variable "documents.tests.conftest.UserModelT" is not valid as a type  [valid-type]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Incompatible types in assignment (expression has type "StringIO", variable has type "OutputWrapper")  [assignment]
src/documents/tests/management/test_management_base_cmd.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/tests/management/test_management_base_cmd.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/tests/management/test_management_base_cmd.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/tests/management/test_management_base_cmd.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/tests/management/test_management_base_cmd.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/tests/management/test_management_base_cmd.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/tests/management/test_management_base_cmd.py:0: error: Missing type arguments for generic type "list"  [type-arg]
src/documents/tests/management/test_management_base_cmd.py:0: error: Need type annotation for "result"  [var-annotated]
src/documents/tests/management/test_management_base_cmd.py:0: error: Need type annotation for "result" (hint: "result: list[<type>] = ...")  [var-annotated]
src/documents/tests/management/test_management_base_cmd.py:0: error: Need type annotation for "results"  [var-annotated]
src/documents/tests/management/test_management_sanity_checker.py:0: error: "DocumentFactory" has no attribute "source_path"; maybe "storage_path"?  [attr-defined]
src/documents/tests/management/test_management_sanity_checker.py:0: error: "DocumentFactory" has no attribute "thumbnail_path"  [attr-defined]
src/documents/tests/search/test_backend.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/tests/search/test_backend.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/tests/search/test_backend.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/search/test_backend.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/search/test_backend.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/search/test_backend.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/search/test_migration_fulltext_query_field_prefixes.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/tests/search/test_migration_fulltext_query_field_prefixes.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/search/test_migration_fulltext_query_field_prefixes.py:0: error: Incompatible types in assignment (expression has type "str", base class "TestMigrations" defined the type as "None")  [assignment]
src/documents/tests/search/test_migration_fulltext_query_field_prefixes.py:0: error: Incompatible types in assignment (expression has type "str", base class "TestMigrations" defined the type as "None")  [assignment]
src/documents/tests/search/test_query.py:0: error: "SearchResult" has no attribute "count"  [attr-defined]
src/documents/tests/search/test_query.py:0: error: "SearchResult" has no attribute "count"  [attr-defined]
src/documents/tests/search/test_query.py:0: error: "SearchResult" has no attribute "count"  [attr-defined]
src/documents/tests/search/test_query.py:0: error: "SearchResult" has no attribute "count"  [attr-defined]
src/documents/tests/search/test_query.py:0: error: "SearchResult" has no attribute "count"  [attr-defined]
src/documents/tests/search/test_query.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/search/test_query.py:0: error: Unexpected attribute "pk" for model "AbstractBaseUser"  [misc]
src/documents/tests/search/test_query.py:0: error: Unexpected attribute "pk" for model "AbstractBaseUser"  [misc]
src/documents/tests/search/test_query.py:0: error: Unexpected attribute "pk" for model "AbstractBaseUser"  [misc]
src/documents/tests/search/test_query.py:0: error: Unexpected attribute "pk" for model "AbstractBaseUser"  [misc]
src/documents/tests/search/test_query.py:0: error: Unexpected attribute "pk" for model "AbstractBaseUser"  [misc]
src/documents/tests/search/test_tokenizer.py:0: error: "SearchResult" has no attribute "count"  [attr-defined]
src/documents/tests/search/test_tokenizer.py:0: error: "SearchResult" has no attribute "count"  [attr-defined]
src/documents/tests/search/test_tokenizer.py:0: error: "SearchResult" has no attribute "count"  [attr-defined]
src/documents/tests/test_admin.py:0: error: "None" has no attribute "searcher"  [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: "PaperlessUserForm" has no attribute "request"  [attr-defined]
src/documents/tests/test_admin.py:0: error: Argument 1 to "range_query" of "Query" has incompatible type "None"; expected "Schema"  [arg-type]
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 for one or more parameters  [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: "ImageFile" has no attribute "text"  [attr-defined]
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 parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [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 parameters  [no-untyped-def]
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 "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: Argument 2 to "assertNotIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
src/documents/tests/test_api_documents.py:0: error: Argument 2 to "assertNotIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
src/documents/tests/test_api_documents.py:0: error: Argument 3 to "generic" of "APIClient" has incompatible type "bytes"; expected "str"  [arg-type]
src/documents/tests/test_api_documents.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_documents.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_documents.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_documents.py:0: error: Function is missing a type annotation for one or more parameters  [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 "Any | None" is not indexable  [index]
src/documents/tests/test_api_documents.py:0: error: Value of type "Any | None" is not indexable  [index]
src/documents/tests/test_api_documents.py:0: error: Value of type "Any | None" 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 "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 parameters  [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: Argument 1 to "quote" has incompatible type "str | None"; expected "str"  [arg-type]
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 parameters  [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 arguments for generic type "list"  [type-arg]
src/documents/tests/test_api_filter_by_custom_fields.py:0: error: Missing type arguments 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[<type>] = ...")  [var-annotated]
src/documents/tests/test_api_objects.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_objects.py:0: error: Function is missing a type annotation for one or more parameters  [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 parameters  [no-untyped-def]
src/documents/tests/test_api_permissions.py:0: error: Function is missing a type annotation for one or more parameters  [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 parameters  [no-untyped-def]
src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_profile.py:0: error: Function is missing a type annotation for one or more parameters  [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_schema.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/tests/test_api_schema.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/tests/test_api_schema.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_schema.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
src/documents/tests/test_api_schema.py:0: error: Value of type "SchemaGenerator" is not indexable  [index]
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 parameters  [no-untyped-def]
src/documents/tests/test_api_search.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_search.py:0: error: Need type annotation for "seen_ids" (hint: "seen_ids: list[<type>] = ...")  [var-annotated]
src/documents/tests/test_api_search.py:0: error: Unsupported left operand type for < ("None")  [operator]
src/documents/tests/test_api_search.py:0: error: Unsupported operand types for < ("int" and "None")  [operator]
src/documents/tests/test_api_search.py:0: error: Unsupported operand types for > ("int" and "None")  [operator]
src/documents/tests/test_api_search.py:0: error: Value of type variable "SupportsRichComparisonT" of "max" cannot be "int | None"  [type-var]
src/documents/tests/test_api_search.py:0: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "int | None"  [type-var]
src/documents/tests/test_api_status.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_status.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_status.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_status.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_tasks.py:0: error: "DocumentFactory" has no attribute "pk"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "DocumentFactory" has no attribute "pk"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "DocumentFactory" has no attribute "pk"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "DocumentFactory" has no attribute "pk"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "DocumentFactory" has no attribute "pk"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "DocumentFactory" has no attribute "pk"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "PaperlessTaskFactory" has no attribute "id"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "PaperlessTaskFactory" has no attribute "id"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "PaperlessTaskFactory" has no attribute "id"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "PaperlessTaskFactory" has no attribute "id"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: "PaperlessTaskFactory" has no attribute "pk"  [attr-defined]
src/documents/tests/test_api_tasks.py:0: error: Argument 2 to "get" of "APIClient" has incompatible type "dict[str, Faker]"; 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_api_tasks.py:0: error: Argument 3 to "assign_perm" has incompatible type "DocumentFactory"; expected "Model | None"  [arg-type]
src/documents/tests/test_api_tasks.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_api_tasks.py:0: error: Function is missing a type annotation for one or more parameters  [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: Item "None" of "Correspondent | None" has no attribute "pk"  [union-attr]
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: Incompatible types in assignment (expression has type "Path", variable has type "str")  [assignment]
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_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 for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_bulk_edit.py:0: error: Function is missing a type annotation for one or more parameters  [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 "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_caching.py:0: error: Function is missing a type annotation for one or more parameters  [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  [no-untyped-def]
src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_classifier.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_classifier.py:0: error: Invalid base class "real_catch_warnings"  [misc]
src/documents/tests/test_classifier.py:0: error: Module "sklearn.exceptions" has no attribute "InconsistentVersionWarning"  [attr-defined]
src/documents/tests/test_classifier.py:0: error: Variable "real_catch_warnings" is not valid as a type  [valid-type]
src/documents/tests/test_consumer.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[str] | str"  [arg-type]
src/documents/tests/test_consumer.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[str] | str"  [arg-type]
src/documents/tests/test_consumer.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[str] | str"  [arg-type]
src/documents/tests/test_consumer.py:0: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized"  [arg-type]
src/documents/tests/test_consumer.py:0: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized"  [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 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 for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer.py:0: error: Incompatible return value type (got "Path | None", expected "Path")  [return-value]
src/documents/tests/test_consumer.py:0: error: Item "None" of "Correspondent | None" has no attribute "id"  [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 "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 "DocumentType | None" has no attribute "id"  [union-attr]
src/documents/tests/test_consumer.py:0: error: Item "None" of "StoragePath | None" has no attribute "id"  [union-attr]
src/documents/tests/test_consumer.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/tests/test_consumer.py:0: error: Missing type arguments for generic type "list"  [type-arg]
src/documents/tests/test_consumer_archive.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/tests/test_consumer_archive.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer_archive.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer_archive.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer_archive.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_consumer_archive.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
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 parameters  [no-untyped-def]
src/documents/tests/test_double_sided.py:0: error: Function is missing a type annotation for one or more parameters  [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 "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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | 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[str] | str"  [arg-type]
src/documents/tests/test_file_handling.py:0: error: Argument 1 to "create_source_path_directory" has incompatible type "Path | None"; expected "Path"  [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 parameters  [no-untyped-def]
src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_file_handling.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_file_handling.py:0: error: Item "None" of "Path | None" has no attribute "write_bytes"  [union-attr]
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_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[str] | str"  [arg-type]
src/documents/tests/test_management.py:0: error: Argument 1 to "assertIsFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[str] | str"  [arg-type]
src/documents/tests/test_management.py:0: error: Argument 1 to "assertIsNotFile" of "FileSystemAssertsMixin" has incompatible type "Path | None"; expected "PathLike[str] | 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  [no-untyped-def]
src/documents/tests/test_management.py:0: error: Function is missing a type annotation for one or more parameters  [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 parameters  [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 parameters  [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: Item "None" of "Path | None" has no attribute "read_bytes"  [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: "DocumentFactory" has no attribute "refresh_from_db"  [attr-defined]
src/documents/tests/test_management_retagger.py:0: error: "DocumentFactory" has no attribute "refresh_from_db"  [attr-defined]
src/documents/tests/test_management_retagger.py:0: error: "DocumentFactory" has no attribute "refresh_from_db"  [attr-defined]
src/documents/tests/test_management_retagger.py:0: error: "DocumentFactory" has no attribute "tags"  [attr-defined]
src/documents/tests/test_management_retagger.py:0: error: "DocumentFactory" has no attribute "tags"  [attr-defined]
src/documents/tests/test_management_retagger.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_management_retagger.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_management_retagger.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_management_retagger.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_management_retagger.py:0: error: Incompatible return value type (got "tuple[CorrespondentFactory, CorrespondentFactory]", expected "tuple[Correspondent, Correspondent]")  [return-value]
src/documents/tests/test_management_retagger.py:0: error: Incompatible return value type (got "tuple[DocumentFactory, DocumentFactory, DocumentFactory, DocumentFactory]", expected "tuple[Document, Document, Document, Document]")  [return-value]
src/documents/tests/test_management_retagger.py:0: error: Incompatible return value type (got "tuple[DocumentTypeFactory, DocumentTypeFactory]", expected "tuple[DocumentType, DocumentType]")  [return-value]
src/documents/tests/test_management_retagger.py:0: error: Incompatible return value type (got "tuple[StoragePathFactory, StoragePathFactory, StoragePathFactory]", expected "tuple[StoragePath, StoragePath, StoragePath]")  [return-value]
src/documents/tests/test_management_retagger.py:0: error: Incompatible return value type (got "tuple[TagFactory, TagFactory, TagFactory, TagFactory, TagFactory]", expected "tuple[Tag, Tag, Tag, Tag, Tag]")  [return-value]
src/documents/tests/test_management_superuser.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/tests/test_migration_saved_view_visibility.py:0: error: Cannot determine type of "apps"  [has-type]
src/documents/tests/test_migration_saved_view_visibility.py:0: error: Cannot determine type of "apps"  [has-type]
src/documents/tests/test_migration_saved_view_visibility.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_migration_saved_view_visibility.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_migration_saved_view_visibility.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_saved_view_visibility.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_saved_view_visibility.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_saved_view_visibility.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_sha256_checksums.py:0: error: "_fixture_teardown" undefined in superclass  [misc]
src/documents/tests/test_migration_sha256_checksums.py:0: error: Cannot determine type of "apps"  [has-type]
src/documents/tests/test_migration_sha256_checksums.py:0: error: Cannot determine type of "apps"  [has-type]
src/documents/tests/test_migration_sha256_checksums.py:0: error: Cannot determine type of "apps"  [has-type]
src/documents/tests/test_migration_sha256_checksums.py:0: error: Cannot determine type of "apps"  [has-type]
src/documents/tests/test_migration_sha256_checksums.py:0: error: Cannot determine type of "apps"  [has-type]
src/documents/tests/test_migration_sha256_checksums.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_migration_sha256_checksums.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_sha256_checksums.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: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_migration_share_link_bundle.py:0: error: Function is missing a type annotation for one or more parameters  [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_regex.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_regex.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_regex.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_regex.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_regex.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_regex.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_regex.py:0: error: Library stubs not installed for "regex"  [import-untyped]
src/documents/tests/test_sanity_check.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]"  [arg-type]
src/documents/tests/test_sanity_check.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]"  [arg-type]
src/documents/tests/test_sanity_check.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]"  [arg-type]
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: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_share_link_bundles.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_share_link_bundles.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
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[<type>, <type>] = ...")  [var-annotated]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "date_done"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "date_done"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "date_started"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "duration_seconds"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "refresh_from_db"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "refresh_from_db"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "refresh_from_db"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "refresh_from_db"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "refresh_from_db"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: "PaperlessTaskFactory" has no attribute "wait_time_seconds"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/documents/tests/test_task_signals.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/documents/tests/test_task_signals.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_task_signals.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_task_signals.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_task_signals.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_task_signals.py:0: error: Incompatible return value type (got "PaperlessTaskFactory", expected "PaperlessTask")  [return-value]
src/documents/tests/test_task_signals.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/tests/test_task_signals.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/tests/test_task_signals.py:0: error: Missing type arguments for generic type "tuple"  [type-arg]
src/documents/tests/test_task_signals.py:0: error: Module "django.utils.timezone" does not explicitly export attribute "timedelta"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: Module "django.utils.timezone" does not explicitly export attribute "timedelta"  [attr-defined]
src/documents/tests/test_task_signals.py:0: error: Unsupported right operand type for in ("None")  [operator]
src/documents/tests/test_task_signals.py:0: error: Value of type "None" is not indexable  [index]
src/documents/tests/test_task_signals.py:0: error: Value of type "None" is not indexable  [index]
src/documents/tests/test_task_signals.py:0: error: Value of type "None" is not indexable  [index]
src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_tasks.py:0: error: Function is missing a type annotation for one or more parameters  [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 parameters  [no-untyped-def]
src/documents/tests/test_views.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_views.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_views.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_views.py:0: error: Function is missing a type annotation for one or more parameters  [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 "Path" has incompatible type "Any | None"; expected "str | PathLike[str]"  [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 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 parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/test_workflows.py:0: error: Function is missing a type annotation for one or more parameters  [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: 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: 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 "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 "str" of "Any | str" has no attribute "name"  [union-attr]
src/documents/tests/test_workflows.py:0: error: Name "group_perms" already defined on line 0  [no-redef]
src/documents/tests/test_workflows.py:0: error: Name "group_perms" already defined on line 0  [no-redef]
src/documents/tests/test_workflows.py:0: error: Name "group_perms" already defined on line 0  [no-redef]
src/documents/tests/test_workflows.py:0: error: Name "group_perms" already defined on line 0  [no-redef]
src/documents/tests/test_workflows.py:0: error: Name "group_perms" already defined on line 0  [no-redef]
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: "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 parameters  [no-untyped-def]
src/documents/tests/utils.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/utils.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/tests/utils.py:0: error: Function is missing a type annotation for one or more parameters  [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 arguments for generic type "Callable"  [type-arg]
src/documents/tests/utils.py:0: error: Missing type arguments for generic type "list"  [type-arg]
src/documents/tests/utils.py:0: error: Missing type arguments for generic type "tuple"  [type-arg]
src/documents/tests/utils.py:0: error: Need type annotation for "payloads" (hint: "payloads: list[<type>] = ...")  [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 arguments for generic type "CompletedProcess"  [type-arg]
src/documents/validators.py:0: error: Function is missing a type annotation for one or more parameters  [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" has no attribute "apply_async"  [attr-defined]
src/documents/views.py:0: error: "type[Model]" has no attribute "objects"  [attr-defined]
src/documents/views.py:0: error: Argument "filename" to "FileResponse" has incompatible type "str | Any | None"; expected "str"  [arg-type]
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 "user" to "_has_document_permissions" of "DocumentOperationPermissionMixin" has incompatible type "User | AnonymousUser"; expected "User"  [arg-type]
src/documents/views.py:0: error: Argument "user" to "_has_document_permissions" of "DocumentOperationPermissionMixin" has incompatible type "User | AnonymousUser"; expected "User"  [arg-type]
src/documents/views.py:0: error: Argument "user" to "_resolve_document_ids" of "DocumentSelectionMixin" has incompatible type "User | AnonymousUser"; expected "User"  [arg-type]
src/documents/views.py:0: error: Argument "user" to "_resolve_document_ids" of "DocumentSelectionMixin" has incompatible type "User | AnonymousUser"; expected "User"  [arg-type]
src/documents/views.py:0: error: Argument 1 to "TaskSummarySerializer" has incompatible type "QuerySet[PaperlessTask@AnnotatedWith[TypedDict({'total_count': int, 'pending_count': int, 'success_count': int, 'failure_count': int, 'avg_duration_seconds': Any, 'avg_wait_time_seconds': Any, 'last_run': Any, 'last_success': Any, 'last_failure': Any})], dict[str, Any]]"; expected "dict[str, Any] | None"  [arg-type]
src/documents/views.py:0: error: Argument 1 to "get_objects_for_user_owner_aware" has incompatible type "User | AnonymousUser"; expected "User | None"  [arg-type]
src/documents/views.py:0: error: Argument 1 to "int" has incompatible type "Any | Collection[str]"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
src/documents/views.py:0: error: Argument 1 to "int" has incompatible type "Any | Collection[str]"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
src/documents/views.py:0: error: Argument 1 to "paginate_queryset" of "GenericAPIView" has incompatible type "TantivyRelevanceList"; expected "QuerySet[Any, Any]"  [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 3 to "autocomplete" of "TantivyBackend" has incompatible type "User | AnonymousUser | None"; expected "AbstractBaseUser | 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 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  [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 parameters  [no-untyped-def]
src/documents/views.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/views.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/views.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/views.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/views.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
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[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 "BasePagination" of "BasePagination | None" has no attribute "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 "BasePagination | None" has no attribute "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 arguments for generic type "GenericViewSet"  [type-arg]
src/documents/views.py:0: error: Missing type arguments for generic type "list"  [type-arg]
src/documents/views.py:0: error: Need type annotation for "authentication_classes" (hint: "authentication_classes: list[<type>] = ...")  [var-annotated]
src/documents/views.py:0: error: Need type annotation for "children_map" (hint: "children_map: dict[<type>, <type>] = ...")  [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[<type>] = ...")  [var-annotated]
src/documents/views.py:0: error: Need type annotation for "permission_classes" (hint: "permission_classes: list[<type>] = ...")  [var-annotated]
src/documents/views.py:0: error: Need type annotation for "ui_settings" (hint: "ui_settings: dict[<type>, <type>] = ...")  [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[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[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/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 parameters  [no-untyped-def]
src/documents/workflows/actions.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/documents/workflows/actions.py:0: error: Function is missing a type annotation for one or more parameters  [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 arguments for generic type "dict"  [type-arg]
src/documents/workflows/actions.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/workflows/actions.py:0: error: Missing type arguments 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 parameters  [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 "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 parameters  [no-untyped-def]
src/documents/workflows/webhooks.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/workflows/webhooks.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/documents/workflows/webhooks.py:0: error: Missing type arguments 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 arguments for generic type "ModelForm"  [type-arg]
src/paperless/admin.py:0: error: Missing type arguments 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/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: Argument 1 to "URLRouter" has incompatible type "list[URLPattern]"; expected "list[_ExtendedURLPattern | URLRouter]"  [arg-type]
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: 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/celery.py:0: error: Argument 2 to "register" has incompatible type "Callable[[object], bytes]"; expected "Callable[[Any], str] | None"  [arg-type]
src/paperless/celery.py:0: error: Argument 3 to "register" has incompatible type "Callable[[bytes], object]"; expected "Callable[[str], Any] | None"  [arg-type]
src/paperless/celery.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/checks.py:0: error: Argument 1 to "append" of "list" has incompatible type "Error"; expected "Warning"  [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: Incompatible return value type (got "list[Warning]", expected "list[Error]")  [return-value]
src/paperless/checks.py:0: error: Incompatible return value type (got "list[Warning]", expected "list[Error]")  [return-value]
src/paperless/checks.py:0: error: Incompatible return value type (got "list[Warning]", expected "list[Error]")  [return-value]
src/paperless/checks.py:0: error: Incompatible return value type (got "list[Warning]", expected "list[Error]")  [return-value]
src/paperless/checks.py:0: error: List item 0 has incompatible type "str | None"; expected "str | bytes | PathLike[str] | PathLike[bytes]"  [list-item]
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 "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/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", variable has type "ArchiveFileGenerationChoices")  [assignment]
src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "CleanChoices")  [assignment]
src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "ColorConvertChoices")  [assignment]
src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "ModeChoices")  [assignment]
src/paperless/config.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "OutputTypeChoices")  [assignment]
src/paperless/consumers.py:0: error: Argument 1 to "_can_view" of "StatusConsumer" has incompatible type "DocumentUpdatedData"; expected "PermissionsData"  [arg-type]
src/paperless/consumers.py:0: error: Argument 1 to "_can_view" of "StatusConsumer" has incompatible type "ProgressUpdateData"; expected "PermissionsData"  [arg-type]
src/paperless/consumers.py:0: error: Item "AbstractBaseUser" of "AbstractBaseUser | AnonymousUser" has no attribute "groups"  [union-attr]
src/paperless/consumers.py:0: error: Item "AbstractBaseUser" of "AbstractBaseUser | AnonymousUser" has no attribute "id"  [union-attr]
src/paperless/consumers.py:0: error: Item "AbstractBaseUser" of "AbstractBaseUser | AnonymousUser" has no attribute "is_superuser"  [union-attr]
src/paperless/consumers.py:0: error: Unsupported operand types for in ("Any | None" and "list[int]")  [operator]
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/middleware.py:0: error: Value of type "Collection[str]" is not indexable  [index]
src/paperless/migrations/0001_initial.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/migrations/0008_replace_skip_archive_file.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/network.py:0: error: Incompatible return value type (got "list[str | int]", expected "list[str]")  [return-value]
src/paperless/parsers/tesseract.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/paperless/parsers/tesseract.py:0: error: Skipping analyzing "img2pdf": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/paperless/parsers/utils.py:0: error: No overload variant of "get" of "Object" matches argument types "str", "bool"  [call-overload]
src/paperless/serialisers.py:0: error: "PasswordValidationMixin" has no attribute "instance"  [attr-defined]
src/paperless/serialisers.py:0: error: "UploadedFile" has no attribute "field_name"  [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 parameters  [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: 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/settings/__init__.py:0: error: "Collection[str]" has no attribute "append"  [attr-defined]
src/paperless/settings/__init__.py:0: error: "Collection[str]" has no attribute "insert"  [attr-defined]
src/paperless/settings/__init__.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | None"; expected "str"  [arg-type]
src/paperless/settings/__init__.py:0: error: Argument 1 to "parse_ignore_dates" has incompatible type "str | None"; expected "str"  [arg-type]
src/paperless/settings/__init__.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/settings/__init__.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/settings/__init__.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/settings/__init__.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/settings/__init__.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/settings/__init__.py:0: error: Incompatible types in assignment (expression has type "bool", variable has type "str")  [assignment]
src/paperless/settings/__init__.py:0: error: Incompatible types in assignment (expression has type "dict[str, object]", target has type "str")  [assignment]
src/paperless/settings/__init__.py:0: error: Skipping analyzing "compression_middleware.middleware": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/paperless/settings/custom.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/paperless/settings/custom.py:0: error: No overload variant of "getenv" matches argument types "Collection[str]", "Collection[str]"  [call-overload]
src/paperless/settings/custom.py:0: error: Unpacked dict entry 0 has incompatible type "Collection[str]"; expected "SupportsKeysAndGetItem[str, dict[str, str]]"  [dict-item]
src/paperless/settings/parsers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "bool")  [assignment]
src/paperless/settings/parsers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/paperless/settings/parsers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/paperless/settings/parsers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
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/parsers/conftest.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/parsers/conftest.py:0: error: Incompatible return value type (got "def _make_parser(**django_settings_overrides: Any) -> _GeneratorContextManager[Any, None, None]", expected "Callable[..., Generator[RasterisedDocumentParser, None, None]]")  [return-value]
src/paperless/tests/parsers/test_convert_image_to_pdfa.py:0: error: Skipping analyzing "img2pdf": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/paperless/tests/parsers/test_mail_parser.py:0: error: Argument 1 to "extract_metadata" of "MailDocumentParser" has incompatible type "str"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_mail_parser.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/parsers/test_mail_parser.py:0: error: Item "None" of "Request | None" has no attribute "url"  [union-attr]
src/paperless/tests/parsers/test_mail_parser.py:0: error: Item "None" of "Request | None" has no attribute "url"  [union-attr]
src/paperless/tests/parsers/test_mail_parser_live.py:0: error: Argument 1 to "extract_text" has incompatible type "Path | None"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_mail_parser_live.py:0: error: List item 0 has incompatible type "str | None"; expected "str | bytes | PathLike[str] | PathLike[bytes]"  [list-item]
src/paperless/tests/parsers/test_parse_modes.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/parsers/test_parse_modes.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/parsers/test_parse_modes.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/parsers/test_parse_modes.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/parsers/test_parse_modes.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "ModeChoices")  [assignment]
src/paperless/tests/parsers/test_remote_parser.py:0: error: Too few arguments  [call-arg]
src/paperless/tests/parsers/test_tesseract_custom_settings.py:0: error: Argument "input_file" to "construct_ocrmypdf_parameters" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_tesseract_custom_settings.py:0: error: Argument "input_file" to "construct_ocrmypdf_parameters" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_tesseract_custom_settings.py:0: error: Argument "output_file" to "construct_ocrmypdf_parameters" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_tesseract_custom_settings.py:0: error: Argument "output_file" to "construct_ocrmypdf_parameters" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_tesseract_custom_settings.py:0: error: Argument "sidecar_file" to "construct_ocrmypdf_parameters" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_tesseract_custom_settings.py:0: error: Argument "sidecar_file" to "construct_ocrmypdf_parameters" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_tesseract_custom_settings.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__enter__"; maybe "__iter__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__enter__"; maybe "__iter__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__enter__"; maybe "__iter__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__enter__"; maybe "__iter__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__enter__"; maybe "__iter__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__enter__"; maybe "__iter__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__enter__"; maybe "__iter__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__exit__"; maybe "__next__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__exit__"; maybe "__next__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__exit__"; maybe "__next__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__exit__"; maybe "__next__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__exit__"; maybe "__next__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__exit__"; maybe "__next__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: "Generator[RasterisedDocumentParser, None, None]" has no attribute "__exit__"; maybe "__next__"?  [attr-defined]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Argument 1 to "assert_ordered_substrings" has incompatible type "str | None"; expected "str"  [arg-type]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Argument 1 to "assert_ordered_substrings" has incompatible type "str | None"; expected "str"  [arg-type]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Argument 1 to "assert_ordered_substrings" has incompatible type "str | None"; expected "str"  [arg-type]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Argument 1 to "assert_ordered_substrings" has incompatible type "str | None"; expected "str"  [arg-type]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Argument 1 to "assert_ordered_substrings" has incompatible type "str | None"; expected "str"  [arg-type]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Argument 1 to "assert_ordered_substrings" has incompatible type "str | None"; expected "str"  [arg-type]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Argument 1 to "assert_ordered_substrings" has incompatible type "str | None"; expected "str"  [arg-type]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Argument 1 to "calculate_a4_dpi" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Argument 1 to "get_dpi" of "RasterisedDocumentParser" has incompatible type "str"; expected "Path"  [arg-type]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/parsers/test_tesseract_parser.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "ModeChoices")  [assignment]
src/paperless/tests/parsers/test_tika_parser.py:0: error: Argument 1 to "Path" has incompatible type "Path | None"; expected "str | PathLike[str]"  [arg-type]
src/paperless/tests/settings/test_custom_parsers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/paperless/tests/settings/test_db_cache.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/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/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/settings/test_environment_parsers.py:0: error: Function is missing a type annotation for one or more parameters  [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: 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_celery.py:0: error: Value of type "object" is not indexable  [index]
src/paperless/tests/test_celery.py:0: error: Value of type "object" is not indexable  [index]
src/paperless/tests/test_checks.py:0: error: Generator has incompatible item type "str | None"; expected "str"  [misc]
src/paperless/tests/test_checks.py:0: error: Unsupported right operand type for in ("str | None")  [operator]
src/paperless/tests/test_checks.py:0: error: Unsupported right operand type for in ("str | None")  [operator]
src/paperless/tests/test_checks.py:0: error: Unsupported right operand type for in ("str | None")  [operator]
src/paperless/tests/test_checks.py:0: error: Unsupported right operand type for in ("str | None")  [operator]
src/paperless/tests/test_checks.py:0: error: Unsupported right operand type for in ("str | None")  [operator]
src/paperless/tests/test_checks.py:0: error: Unsupported right operand type for in ("str | None")  [operator]
src/paperless/tests/test_logging.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_logging.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_migration_replace_skip_archive_file.py:0: error: Cannot determine type of "apps"  [has-type]
src/paperless/tests/test_migration_replace_skip_archive_file.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_migration_replace_skip_archive_file.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_migration_replace_skip_archive_file.py:0: error: Incompatible types in assignment (expression has type "str", base class "TestMigrations" defined the type as "None")  [assignment]
src/paperless/tests/test_migration_replace_skip_archive_file.py:0: error: Incompatible types in assignment (expression has type "str", base class "TestMigrations" defined the type as "None")  [assignment]
src/paperless/tests/test_ocr_config.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_ocr_config.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_ocr_config.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/test_ocr_config.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/test_ocr_config.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/test_ocr_config.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/test_ocr_config.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: "type" has no attribute "name"  [attr-defined]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "append" of "list" has incompatible type "type[AlwaysDeclines]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "append" of "list" has incompatible type "type[DecliningExternal]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "append" of "list" has incompatible type "type[ExtParser]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "append" of "list" has incompatible type "type[ExternalParser]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "register_builtin" of "ParserRegistry" has incompatible type "type[AcceptingBuiltin]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "register_builtin" of "ParserRegistry" has incompatible type "type[AlwaysDeclines]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "register_builtin" of "ParserRegistry" has incompatible type "type[BuiltinParser]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "register_builtin" of "ParserRegistry" has incompatible type "type[DecliningParser]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "register_builtin" of "ParserRegistry" has incompatible type "type[HighScoreParser]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Argument 1 to "register_builtin" of "ParserRegistry" has incompatible type "type[LowScoreParser]"; expected "type[ParserProtocol]"  [arg-type]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless/tests/test_registry.py:0: error: Missing type arguments for generic type "list"  [type-arg]
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_views.py:0: error: "_MonkeyPatchedWSGIResponse" has no attribute "streaming_content"  [attr-defined]
src/paperless/urls.py:0: error: Argument 2 to "path" has incompatible type "_ASGIApplicationProtocol"; expected "Callable[..., HttpResponseBase]"  [arg-type]
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: Argument 1 to "int" has incompatible type "Any | Collection[str]"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
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 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: Function is missing a type annotation for one or more parameters  [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 "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: 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 arguments for generic type "dict"  [type-arg]
src/paperless_ai/ai_classifier.py:0: error: Missing type arguments 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/client.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str")  [assignment]
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 parameters  [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 parameters  [no-untyped-def]
src/paperless_ai/matching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/matching.py:0: error: Missing type arguments for generic type "list"  [type-arg]
src/paperless_ai/tests/conftest.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 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 for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_ai_indexing.py:0: error: Function is missing a type annotation for one or more parameters  [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 parameters  [no-untyped-def]
src/paperless_ai/tests/test_chat.py:0: error: Function is missing a type annotation for one or more parameters  [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: 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[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None]"  [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 parameters  [no-untyped-def]
src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_ai/tests/test_matching.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/admin.py:0: error: Missing type arguments for generic type "ModelAdmin"  [type-arg]
src/paperless_mail/admin.py:0: error: Missing type arguments 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 type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/mail.py:0: error: Function is missing a type annotation for one or more parameters  [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 arguments for generic type "dict"  [type-arg]
src/paperless_mail/mail.py:0: error: Missing type arguments for generic type "list"  [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/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  [no-untyped-def]
src/paperless_mail/serialisers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/conftest.py:0: error: "MailAccountFactory" has no attribute "delete"  [attr-defined]
src/paperless_mail/tests/conftest.py:0: error: Incompatible types in "yield" (actual type "MailAccountFactory", expected type "MailAccount")  [misc]
src/paperless_mail/tests/test_api.py:0: error: "CorrespondentFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "DocumentTypeFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "filter_attachment_filename_include"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "filter_body"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "filter_from"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "filter_subject"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "filter_to"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "MailRuleFactory" has no attribute "refresh_from_db"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "ProcessedMailFactory" has no attribute "id"; maybe "uid"?  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: "TagFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_api.py:0: error: Argument 3 to "assign_perm" has incompatible type "MailAccountFactory"; expected "Model | None"  [arg-type]
src/paperless_mail/tests/test_api.py:0: error: Argument 3 to "assign_perm" has incompatible type "MailAccountFactory"; expected "Model | None"  [arg-type]
src/paperless_mail/tests/test_api.py:0: error: Argument 3 to "assign_perm" has incompatible type "MailRuleFactory"; expected "Model | None"  [arg-type]
src/paperless_mail/tests/test_api.py:0: error: Argument 3 to "assign_perm" has incompatible type "ProcessedMailFactory"; expected "Model | None"  [arg-type]
src/paperless_mail/tests/test_api.py:0: error: Argument 3 to "assign_perm" has incompatible type "ProcessedMailFactory"; expected "Model | None"  [arg-type]
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: "CorrespondentFactory" has no attribute "id"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "CorrespondentFactory" has no attribute "id"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "MailAccountFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "MailAccountFactory" has no attribute "pk"  [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: "MailRuleFactory" has no attribute "action_parameter"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "MailRuleFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "MailRuleFactory" has no attribute "pk"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "type[att@486]" has no attribute "filename"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "type[message2@432]" has no attribute "from_"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "type[message2@432]" has no attribute "from_"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "type[message2@432]" has no attribute "from_values"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "type[message@425]" has no attribute "from_"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "type[message@425]" has no attribute "from_values"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "type[message@484]" has no attribute "subject"  [attr-defined]
src/paperless_mail/tests/test_mail.py:0: error: "type[message@537]" 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@432]"; 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@432]"; 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@425]"; 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@425]"; 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@425]"; 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@425]"; 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@484]"; 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@484]"; 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@484]"; 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@486]"; 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@486]"; 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@486]"; 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 for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail.py:0: error: Incompatible type for "assign_correspondent" of "MailRule" (got "CorrespondentFactory", expected "Correspondent | Combinable | None")  [misc]
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: Missing type arguments 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: Argument 1 to "handle_mail_account" of "MailAccountHandler" has incompatible type "MailAccountFactory"; expected "MailAccount"  [arg-type]
src/paperless_mail/tests/test_mail_oauth.py:0: error: Argument 1 to "handle_mail_account" of "MailAccountHandler" has incompatible type "MailAccountFactory"; expected "MailAccount"  [arg-type]
src/paperless_mail/tests/test_mail_oauth.py:0: error: Argument 1 to "handle_mail_account" of "MailAccountHandler" has incompatible type "MailAccountFactory"; expected "MailAccount"  [arg-type]
src/paperless_mail/tests/test_mail_oauth.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail_oauth.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail_oauth.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/paperless_mail/tests/test_mail_oauth.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
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: Incompatible type for "account" of "MailRule" (got "MailAccountFactory", expected "MailAccount | Combinable | None")  [misc]
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]
