config/settings/base.py:1048: error: Need type annotation for "PIPELINE_SETTINGS" (hint: "PIPELINE_SETTINGS: dict[<type>, <type>] = ...")  [var-annotated]
config/settings/base.py:572: error: Need type annotation for "SECURE_PERMISSIONS_POLICY"  [var-annotated]
config/settings/local.py:82: error: Name "DEBUG" is used before definition  [used-before-def]
config/settings/test_integration.py:28: error: Dict entry 3 has incompatible type "str": "dict[str, str]"; expected "str": "str"  [dict-item]
config/websocket/consumers/thread_updates.py:276: error: Incompatible type for lookup 'pk': (got "int | None", expected "str | int")  [misc]
config/websocket/consumers/unified_agent_conversation.py:489: error: Argument "framework" to "for_document" of "AgentAPI" has incompatible type "str"; expected "AgentFramework | Literal['pydantic_ai'] | None"  [arg-type]
config/websocket/consumers/unified_agent_conversation.py:502: error: Argument "framework" to "for_corpus" of "AgentAPI" has incompatible type "str"; expected "AgentFramework | Literal['pydantic_ai'] | None"  [arg-type]
config/websocket/consumers/unified_agent_conversation.py:617: error: Item "Coroutine[Any, Any, AsyncGenerator[ThoughtEvent | ContentEvent | SourceEvent | ApprovalNeededEvent | ApprovalResultEvent | ResumeEvent | FinalEvent | ErrorEvent, None]]" of "Coroutine[Any, Any, AsyncGenerator[ThoughtEvent | ContentEvent | SourceEvent | ApprovalNeededEvent | ApprovalResultEvent | ResumeEvent | FinalEvent | ErrorEvent, None]] | Any" has no attribute "__aiter__" (not async iterable)  [union-attr]
config/websocket/consumers/unified_agent_conversation.py:617: error: Item "None" of "CoreAgent | None" has no attribute "stream"  [union-attr]
config/websocket/consumers/unified_agent_conversation.py:617: note: Maybe you forgot to use "await"?
config/websocket/consumers/unified_agent_conversation.py:660: error: Argument "msg_type" to "_send_safe" of "UnifiedAgentConsumer" has incompatible type "Literal['ASYNC_THOUGHT']"; expected "Literal['ASYNC_START', 'ASYNC_CONTENT', 'ASYNC_FINISH', 'SYNC_CONTENT']"  [arg-type]
config/websocket/consumers/unified_agent_conversation.py:676: error: Argument "msg_type" to "_send_safe" of "UnifiedAgentConsumer" has incompatible type "Literal['ASYNC_SOURCES']"; expected "Literal['ASYNC_START', 'ASYNC_CONTENT', 'ASYNC_FINISH', 'SYNC_CONTENT']"  [arg-type]
config/websocket/consumers/unified_agent_conversation.py:686: error: Argument "msg_type" to "_send_safe" of "UnifiedAgentConsumer" has incompatible type "Literal['ASYNC_APPROVAL_NEEDED']"; expected "Literal['ASYNC_START', 'ASYNC_CONTENT', 'ASYNC_FINISH', 'SYNC_CONTENT']"  [arg-type]
config/websocket/consumers/unified_agent_conversation.py:699: error: Argument "msg_type" to "_send_safe" of "UnifiedAgentConsumer" has incompatible type "Literal['ASYNC_APPROVAL_RESULT']"; expected "Literal['ASYNC_START', 'ASYNC_CONTENT', 'ASYNC_FINISH', 'SYNC_CONTENT']"  [arg-type]
config/websocket/consumers/unified_agent_conversation.py:710: error: Argument "msg_type" to "_send_safe" of "UnifiedAgentConsumer" has incompatible type "Literal['ASYNC_RESUME']"; expected "Literal['ASYNC_START', 'ASYNC_CONTENT', 'ASYNC_FINISH', 'SYNC_CONTENT']"  [arg-type]
config/websocket/consumers/unified_agent_conversation.py:717: error: Argument "msg_type" to "_send_safe" of "UnifiedAgentConsumer" has incompatible type "Literal['ASYNC_ERROR']"; expected "Literal['ASYNC_START', 'ASYNC_CONTENT', 'ASYNC_FINISH', 'SYNC_CONTENT']"  [arg-type]
config/websocket/consumers/unified_agent_conversation.py:814: error: "Coroutine[Any, Any, UnifiedChatResponse | AsyncGenerator[ThoughtEvent | ContentEvent | SourceEvent | ApprovalNeededEvent | ApprovalResultEvent | ResumeEvent | FinalEvent | ErrorEvent, None]]" has no attribute "__aiter__" (not async iterable)  [attr-defined]
opencontractserver/discovery/views.py:769: error: "QuerySet[Document, Document]" has no attribute "search_by_embedding"  [attr-defined]
opencontractserver/examples/structured_response_example.py:244: error: Need type annotation for "all_parties" (hint: "all_parties: set[<type>] = ...")  [var-annotated]
opencontractserver/feedback/models.py:13: error: Cannot override class variable (previously declared on base class "BaseOCModel") with instance variable  [misc]
opencontractserver/mcp/tests/test_mcp.py:1001: error: "MCPResourcesDocumentTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1001: error: "MCPResourcesDocumentTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1004: error: "MCPResourcesDocumentTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1019: error: "MCPResourcesDocumentTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1031: error: "type[MCPResourcesAnnotationTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1035: error: "type[MCPResourcesAnnotationTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1037: error: "type[MCPResourcesAnnotationTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1041: error: "type[MCPResourcesAnnotationTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1043: error: "type[MCPResourcesAnnotationTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1048: error: "type[MCPResourcesAnnotationTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1049: error: "type[MCPResourcesAnnotationTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1054: error: "type[MCPResourcesAnnotationTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1057: error: "type[MCPResourcesAnnotationTest]" has no attribute "label"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1061: error: "type[MCPResourcesAnnotationTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1065: error: "type[MCPResourcesAnnotationTest]" has no attribute "annotation"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1068: error: "type[MCPResourcesAnnotationTest]" has no attribute "label"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1069: error: "type[MCPResourcesAnnotationTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1070: error: "type[MCPResourcesAnnotationTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1071: error: "type[MCPResourcesAnnotationTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1080: error: "MCPResourcesAnnotationTest" has no attribute "annotation"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1080: error: "MCPResourcesAnnotationTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1080: error: "MCPResourcesAnnotationTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1084: error: "MCPResourcesAnnotationTest" has no attribute "annotation"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1106: error: "type[MCPResourcesThreadTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1112: error: "type[MCPResourcesThreadTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1114: error: "type[MCPResourcesThreadTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1118: error: "type[MCPResourcesThreadTest]" has no attribute "thread"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1121: error: "type[MCPResourcesThreadTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1124: error: "type[MCPResourcesThreadTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1129: error: "type[MCPResourcesThreadTest]" has no attribute "message"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1130: error: "type[MCPResourcesThreadTest]" has no attribute "thread"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1133: error: "type[MCPResourcesThreadTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1141: error: "MCPResourcesThreadTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1141: error: "MCPResourcesThreadTest" has no attribute "thread"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1144: error: "MCPResourcesThreadTest" has no attribute "thread"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1159: error: "MCPResourcesThreadTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1170: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1176: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "label_set"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1178: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1182: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "label1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1186: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1190: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "label2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1194: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1198: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "label1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1198: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "label2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1198: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "label_set"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1200: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1203: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1205: error: "type[MCPResourcesCorpusWithLabelSetTest]" has no attribute "label_set"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1212: error: "MCPResourcesCorpusWithLabelSetTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1240: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1246: error: "type[MCPFormattersExtendedTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1248: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1252: error: "type[MCPFormattersExtendedTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1255: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1262: error: "type[MCPFormattersExtendedTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1263: error: "type[MCPFormattersExtendedTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1268: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1271: error: "type[MCPFormattersExtendedTest]" has no attribute "label"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1275: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1279: error: "type[MCPFormattersExtendedTest]" has no attribute "annotation"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1282: error: "type[MCPFormattersExtendedTest]" has no attribute "label"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1283: error: "type[MCPFormattersExtendedTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1284: error: "type[MCPFormattersExtendedTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1285: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1290: error: "type[MCPFormattersExtendedTest]" has no attribute "annotation_no_label"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1294: error: "type[MCPFormattersExtendedTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1295: error: "type[MCPFormattersExtendedTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1296: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1300: error: "type[MCPFormattersExtendedTest]" has no attribute "thread"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1303: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1306: error: "type[MCPFormattersExtendedTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1311: error: "type[MCPFormattersExtendedTest]" has no attribute "message"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1312: error: "type[MCPFormattersExtendedTest]" has no attribute "thread"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1315: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1321: error: "type[MCPFormattersExtendedTest]" has no attribute "reply"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1322: error: "type[MCPFormattersExtendedTest]" has no attribute "thread"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1325: error: "type[MCPFormattersExtendedTest]" has no attribute "message"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1326: error: "type[MCPFormattersExtendedTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1334: error: "MCPFormattersExtendedTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1336: error: "MCPFormattersExtendedTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:133: error: "type[MCPResourcesTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1347: error: "MCPFormattersExtendedTest" has no attribute "annotation"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1349: error: "MCPFormattersExtendedTest" has no attribute "annotation"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1360: error: "MCPFormattersExtendedTest" has no attribute "annotation_no_label"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1362: error: "MCPFormattersExtendedTest" has no attribute "annotation_no_label"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1369: error: "MCPFormattersExtendedTest" has no attribute "thread"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1371: error: "MCPFormattersExtendedTest" has no attribute "thread"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1383: error: "MCPFormattersExtendedTest" has no attribute "message"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1385: error: "MCPFormattersExtendedTest" has no attribute "message"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:138: error: "type[MCPResourcesTest]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1399: error: "MCPFormattersExtendedTest" has no attribute "message"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1401: error: "MCPFormattersExtendedTest" has no attribute "message"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:1417: error: "MCPFormattersExtendedTest" has no attribute "message"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:141: error: "type[MCPResourcesTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:146: error: "type[MCPResourcesTest]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:149: error: "type[MCPResourcesTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:157: error: "MCPResourcesTest" has no attribute "public_corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:160: error: "MCPResourcesTest" has no attribute "public_corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:169: error: "MCPResourcesTest" has no attribute "private_corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:178: error: "type[MCPToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:183: error: "type[MCPToolsTest]" has no attribute "corpus1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:186: error: "type[MCPToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:189: error: "type[MCPToolsTest]" has no attribute "corpus2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:192: error: "type[MCPToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:197: error: "type[MCPToolsTest]" has no attribute "private"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:198: error: "type[MCPToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2070: error: Need type annotation for "scope"  [var-annotated]
opencontractserver/mcp/tests/test_mcp.py:212: error: "MCPToolsTest" has no attribute "corpus1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:213: error: "MCPToolsTest" has no attribute "corpus2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:214: error: "MCPToolsTest" has no attribute "private"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:223: error: "MCPToolsTest" has no attribute "corpus1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:224: error: "MCPToolsTest" has no attribute "corpus2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2256: error: "type[MCPTelemetryIntegrationTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2262: error: "type[MCPTelemetryIntegrationTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2265: error: "type[MCPTelemetryIntegrationTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:256: error: "type[MCPFormattersTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:260: error: "type[MCPFormattersTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:263: error: "type[MCPFormattersTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2663: error: "type[MCPScopedToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2670: error: "type[MCPScopedToolsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2673: error: "type[MCPScopedToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2679: error: "type[MCPScopedToolsTest]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2681: error: "type[MCPScopedToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2686: error: "type[MCPScopedToolsTest]" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2689: error: "type[MCPScopedToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2693: error: "type[MCPScopedToolsTest]" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2697: error: "type[MCPScopedToolsTest]" has no attribute "doc2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2700: error: "type[MCPScopedToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2707: error: "type[MCPScopedToolsTest]" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2708: error: "type[MCPScopedToolsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2713: error: "type[MCPScopedToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2716: error: "type[MCPScopedToolsTest]" has no attribute "doc2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2717: error: "type[MCPScopedToolsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:271: error: "MCPFormattersTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2722: error: "type[MCPScopedToolsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2729: error: "MCPScopedToolsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2731: error: "MCPScopedToolsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:273: error: "MCPFormattersTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2744: error: "MCPScopedToolsTest" has no attribute "private_corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2754: error: "MCPScopedToolsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2769: error: "MCPScopedToolsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2781: error: "MCPScopedToolsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2802: error: "MCPScopedToolsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2814: error: "MCPScopedToolsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2817: error: "MCPScopedToolsTest" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:2819: error: "MCPScopedToolsTest" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:349: error: "_RateLimits" has no attribute "MCP_GLOBAL"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:354: error: "_RateLimits" has no attribute "MCP_GLOBAL"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:3658: error: Incompatible types in assignment (expression has type "tuple[str, str] | None", variable has type "str | None")  [assignment]
opencontractserver/mcp/tests/test_mcp.py:3662: error: Incompatible types in assignment (expression has type "tuple[str, str, int] | None", variable has type "str | None")  [assignment]
opencontractserver/mcp/tests/test_mcp.py:3666: error: Incompatible types in assignment (expression has type "tuple[str, int] | None", variable has type "str | None")  [assignment]
opencontractserver/mcp/tests/test_mcp.py:3679: error: Item "None" of "Match[str] | None" has no attribute "group"  [union-attr]
opencontractserver/mcp/tests/test_mcp.py:3684: error: Item "None" of "Match[str] | None" has no attribute "group"  [union-attr]
opencontractserver/mcp/tests/test_mcp.py:381: error: "_RateLimits" has no attribute "MCP_GLOBAL"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:387: error: "_RateLimits" has no attribute "MCP_GLOBAL"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:401: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:406: error: "type[MCPToolsDocumentsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4094: error: Incompatible types in assignment (expression has type "MagicMock", variable has type "None")  [assignment]
opencontractserver/mcp/tests/test_mcp.py:409: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:414: error: "type[MCPToolsDocumentsTest]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:416: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:421: error: "type[MCPToolsDocumentsTest]" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:424: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:429: error: "type[MCPToolsDocumentsTest]" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4323: error: Item "None" of "Tool | None" has no attribute "inputSchema"  [union-attr]
opencontractserver/mcp/tests/test_mcp.py:4337: error: Item "None" of "Tool | None" has no attribute "inputSchema"  [union-attr]
opencontractserver/mcp/tests/test_mcp.py:433: error: "type[MCPToolsDocumentsTest]" has no attribute "doc2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4349: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4355: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "label_set"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4358: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4362: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "label1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4367: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:436: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4371: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "label2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4376: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4380: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "label1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4380: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "label2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4380: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "label_set"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4382: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4385: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4387: error: "type[MCPScopedToolsWithLabelSetTest]" has no attribute "label_set"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4395: error: "MCPScopedToolsWithLabelSetTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4397: error: "MCPScopedToolsWithLabelSetTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4428: error: "MCPScopedToolsWithLabelSetTest" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:442: error: "type[MCPToolsDocumentsTest]" has no attribute "doc_no_text"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4446: error: "type[MCPAnnotationResourceDocumentNotFoundTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4452: error: "type[MCPAnnotationResourceDocumentNotFoundTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4454: error: "type[MCPAnnotationResourceDocumentNotFoundTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:445: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:4464: error: "MCPAnnotationResourceDocumentNotFoundTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:451: error: "type[MCPToolsDocumentsTest]" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:452: error: "type[MCPToolsDocumentsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:457: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:460: error: "type[MCPToolsDocumentsTest]" has no attribute "doc2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:461: error: "type[MCPToolsDocumentsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:466: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:469: error: "type[MCPToolsDocumentsTest]" has no attribute "doc_no_text"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:470: error: "type[MCPToolsDocumentsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:475: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:479: error: "type[MCPToolsDocumentsTest]" has no attribute "label"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:483: error: "type[MCPToolsDocumentsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:491: error: "MCPToolsDocumentsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:500: error: "MCPToolsDocumentsTest" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:501: error: "MCPToolsDocumentsTest" has no attribute "doc2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:507: error: "MCPToolsDocumentsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:510: error: "MCPToolsDocumentsTest" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:516: error: "MCPToolsDocumentsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:517: error: "MCPToolsDocumentsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:530: error: "MCPToolsDocumentsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:538: error: "MCPToolsDocumentsTest" has no attribute "private_corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:544: error: "MCPToolsDocumentsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:544: error: "MCPToolsDocumentsTest" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:546: error: "MCPToolsDocumentsTest" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:555: error: "MCPToolsDocumentsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:555: error: "MCPToolsDocumentsTest" has no attribute "doc_no_text"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:557: error: "MCPToolsDocumentsTest" has no attribute "doc_no_text"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:566: error: "MCPToolsDocumentsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:578: error: "type[MCPToolsAnnotationsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:584: error: "type[MCPToolsAnnotationsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:586: error: "type[MCPToolsAnnotationsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:590: error: "type[MCPToolsAnnotationsTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:592: error: "type[MCPToolsAnnotationsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:598: error: "type[MCPToolsAnnotationsTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:599: error: "type[MCPToolsAnnotationsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:604: error: "type[MCPToolsAnnotationsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:607: error: "type[MCPToolsAnnotationsTest]" has no attribute "label1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:611: error: "type[MCPToolsAnnotationsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:615: error: "type[MCPToolsAnnotationsTest]" has no attribute "label2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:619: error: "type[MCPToolsAnnotationsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:624: error: "type[MCPToolsAnnotationsTest]" has no attribute "ann1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:627: error: "type[MCPToolsAnnotationsTest]" has no attribute "label1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:628: error: "type[MCPToolsAnnotationsTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:629: error: "type[MCPToolsAnnotationsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:630: error: "type[MCPToolsAnnotationsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:634: error: "type[MCPToolsAnnotationsTest]" has no attribute "ann2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:637: error: "type[MCPToolsAnnotationsTest]" has no attribute "label2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:638: error: "type[MCPToolsAnnotationsTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:639: error: "type[MCPToolsAnnotationsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:640: error: "type[MCPToolsAnnotationsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:644: error: "type[MCPToolsAnnotationsTest]" has no attribute "ann3"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:647: error: "type[MCPToolsAnnotationsTest]" has no attribute "label1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:648: error: "type[MCPToolsAnnotationsTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:649: error: "type[MCPToolsAnnotationsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:650: error: "type[MCPToolsAnnotationsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:658: error: "MCPToolsAnnotationsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:658: error: "MCPToolsAnnotationsTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:668: error: "MCPToolsAnnotationsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:668: error: "MCPToolsAnnotationsTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:679: error: "MCPToolsAnnotationsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:679: error: "MCPToolsAnnotationsTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:690: error: "MCPToolsAnnotationsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:690: error: "MCPToolsAnnotationsTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:692: error: "MCPToolsAnnotationsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:692: error: "MCPToolsAnnotationsTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:710: error: "type[MCPToolsSearchTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:714: error: "type[MCPToolsSearchTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:716: error: "type[MCPToolsSearchTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:720: error: "type[MCPToolsSearchTest]" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:723: error: "type[MCPToolsSearchTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:727: error: "type[MCPToolsSearchTest]" has no attribute "doc2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:730: error: "type[MCPToolsSearchTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:735: error: "type[MCPToolsSearchTest]" has no attribute "doc1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:736: error: "type[MCPToolsSearchTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:741: error: "type[MCPToolsSearchTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:744: error: "type[MCPToolsSearchTest]" has no attribute "doc2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:745: error: "type[MCPToolsSearchTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:750: error: "type[MCPToolsSearchTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:762: error: "MCPToolsSearchTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:766: error: "MCPToolsSearchTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:780: error: "MCPToolsSearchTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:791: error: "MCPToolsSearchTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:812: error: "type[MCPToolsThreadsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:816: error: "type[MCPToolsThreadsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:818: error: "type[MCPToolsThreadsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:822: error: "type[MCPToolsThreadsTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:824: error: "type[MCPToolsThreadsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:829: error: "type[MCPToolsThreadsTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:830: error: "type[MCPToolsThreadsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:835: error: "type[MCPToolsThreadsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:839: error: "type[MCPToolsThreadsTest]" has no attribute "thread1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:842: error: "type[MCPToolsThreadsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:845: error: "type[MCPToolsThreadsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:849: error: "type[MCPToolsThreadsTest]" has no attribute "thread2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:852: error: "type[MCPToolsThreadsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:855: error: "type[MCPToolsThreadsTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:856: error: "type[MCPToolsThreadsTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:860: error: "type[MCPToolsThreadsTest]" has no attribute "msg1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:861: error: "type[MCPToolsThreadsTest]" has no attribute "thread1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:864: error: "type[MCPToolsThreadsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:868: error: "type[MCPToolsThreadsTest]" has no attribute "msg2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:869: error: "type[MCPToolsThreadsTest]" has no attribute "thread1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:872: error: "type[MCPToolsThreadsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:877: error: "type[MCPToolsThreadsTest]" has no attribute "reply1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:878: error: "type[MCPToolsThreadsTest]" has no attribute "thread1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:881: error: "type[MCPToolsThreadsTest]" has no attribute "msg1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:882: error: "type[MCPToolsThreadsTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:890: error: "MCPToolsThreadsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:897: error: "MCPToolsThreadsTest" has no attribute "thread1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:904: error: "MCPToolsThreadsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:904: error: "MCPToolsThreadsTest" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:907: error: "MCPToolsThreadsTest" has no attribute "thread2"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:913: error: "MCPToolsThreadsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:920: error: "MCPToolsThreadsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:920: error: "MCPToolsThreadsTest" has no attribute "thread1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:922: error: "MCPToolsThreadsTest" has no attribute "thread1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:939: error: "MCPToolsThreadsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:939: error: "MCPToolsThreadsTest" has no attribute "thread1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:941: error: "MCPToolsThreadsTest" has no attribute "thread1"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:952: error: "MCPToolsThreadsTest" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:965: error: "type[MCPResourcesDocumentTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:969: error: "type[MCPResourcesDocumentTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:971: error: "type[MCPResourcesDocumentTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:975: error: "type[MCPResourcesDocumentTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:978: error: "type[MCPResourcesDocumentTest]" has no attribute "owner"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:983: error: "type[MCPResourcesDocumentTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:988: error: "type[MCPResourcesDocumentTest]" has no attribute "document"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:989: error: "type[MCPResourcesDocumentTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/mcp/tests/test_mcp.py:994: error: "type[MCPResourcesDocumentTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/base.py:111: error: "_pre_setup" undefined in superclass  [misc]
opencontractserver/tests/base.py:118: error: "_post_teardown" undefined in superclass  [misc]
opencontractserver/tests/base.py:437: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/base.py:448: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/base.py:48: error: Cannot override instance variable (previously declared on base class "TransactionTestCase") with class variable  [misc]
opencontractserver/tests/diagnostic_runner.py:202: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, Any], Any]", variable has type overloaded function)  [assignment]
opencontractserver/tests/diagnostic_runner.py:27: error: Need type annotation for "resources_by_test"  [var-annotated]
opencontractserver/tests/enhanced_diagnostic_runner.py:26: error: Need type annotation for "resources_by_test"  [var-annotated]
opencontractserver/tests/performance_optimizations/test_base.py:103: error: "type[AnnotationQueryOptimizer]" has no attribute "clear_permission_caches"  [attr-defined]
opencontractserver/tests/performance_optimizations/test_base.py:150: error: "setUp" undefined in superclass  [misc]
opencontractserver/tests/performance_optimizations/test_base.py:156: error: "DirectQueryTestMixin" has no attribute "assertLess"  [attr-defined]
opencontractserver/tests/performance_optimizations/test_base.py:166: error: "DirectQueryTestMixin" has no attribute "assertIsNotNone"  [attr-defined]
opencontractserver/tests/performance_optimizations/test_base.py:22: error: "setUp" undefined in superclass  [misc]
opencontractserver/tests/performance_optimizations/test_base.py:52: error: "NoEmbeddingsMixin" has no attribute "addCleanup"  [attr-defined]
opencontractserver/tests/performance_optimizations/test_base.py:81: error: "type[AnnotationQueryOptimizer]" has no attribute "clear_permission_caches"  [attr-defined]
opencontractserver/tests/performance_optimizations/test_pdf_hash_graphql.py:109: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:171: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:174: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:177: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:183: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:186: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:189: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:195: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:198: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:335: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:335: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:395: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:395: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:448: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:448: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:542: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:542: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:545: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:545: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:603: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:603: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:606: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:648: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:648: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:651: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:651: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:656: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:656: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_analysis_extract_hybrid_permissions.py:800: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:137: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:140: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:143: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:146: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:196: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:262: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:265: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:332: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:337: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:405: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:408: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:476: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:481: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_permission_inheritance.py:550: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1007: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1010: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1034: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1034: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1037: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1037: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1068: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1068: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1335: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1336: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1338: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1338: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1342: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:1344: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:421: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:424: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:427: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:430: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:436: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:436: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:439: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:439: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:445: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:445: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:450: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:450: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:455: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:458: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:860: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:860: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:863: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:863: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:907: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:908: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:912: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_annotation_privacy_scoping.py:912: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_badge_visibility.py:144: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_badge_visibility.py:223: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_badge_visibility.py:589: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_base_model_permissions.py:140: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_base_model_permissions.py:49: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:102: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:124: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:131: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:152: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:159: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:183: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:188: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:210: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:215: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:235: error: Item "None" of "Any | None" has no attribute "_can_comment"  [union-attr]
opencontractserver/tests/permissioning/test_comment_permission.py:261: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:266: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:295: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:326: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_comment_permission.py:331: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_corpus_visibility.py:140: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_corpus_visibility.py:189: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_corpus_visibility.py:229: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_corpus_visibility.py:351: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:104: error: Argument "user" to "get_users_permissions_for_obj" has incompatible type "User"; expected "type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:105: error: Argument "instance" to "get_users_permissions_for_obj" has incompatible type "AnnotationLabel"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:124: error: Argument "user" to "get_users_permissions_for_obj" has incompatible type "User"; expected "type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:125: error: Argument "instance" to "get_users_permissions_for_obj" has incompatible type "AnnotationLabel"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:215: error: Argument "user" to "get_users_permissions_for_obj" has incompatible type "User"; expected "type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:293: error: Argument "user" to "get_users_permissions_for_obj" has incompatible type "User"; expected "type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:294: error: Argument "instance" to "get_users_permissions_for_obj" has incompatible type "LabelSet"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:328: error: Argument "user" to "get_users_permissions_for_obj" has incompatible type "User"; expected "type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:329: error: Argument "instance" to "get_users_permissions_for_obj" has incompatible type "MockPublicModel"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:359: error: Argument "user" to "get_users_permissions_for_obj" has incompatible type "User"; expected "type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:360: error: Argument "instance" to "get_users_permissions_for_obj" has incompatible type "MockPrivateModel"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:84: error: Argument "user" to "get_users_permissions_for_obj" has incompatible type "User"; expected "type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_creator_based_permissions.py:85: error: Argument "instance" to "get_users_permissions_for_obj" has incompatible type "AnnotationLabel"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:243: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:245: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:265: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:267: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:298: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:52: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:55: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:57: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:57: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "AnnotationLabel"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:59: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:63: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:66: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:68: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:68: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "AnnotationLabel"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_custom_permission_filters.py:70: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:116: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:117: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "CorpusAction"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:384: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:503: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:547: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:548: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "CorpusAction"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:609: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:610: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "CorpusAction"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:64: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:663: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:69: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:707: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:712: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:713: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:802: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:854: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:859: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_document_actions_permissions.py:860: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:142: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:144: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:147: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:148: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:194: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:199: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:224: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:229: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:258: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:263: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:292: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:297: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:330: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:335: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:359: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:364: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:396: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:401: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:429: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:458: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:463: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:491: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:496: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:521: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:526: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:531: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:532: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:555: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:560: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:565: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:566: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:593: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:618: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:705: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_feedback_mutations.py:710: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:104: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:109: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:112: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:291: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:376: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:466: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:497: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:498: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:499: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:500: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:501: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:508: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:509: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:510: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:511: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:522: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:537: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:543: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:544: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:592: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:593: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:605: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:625: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:626: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:661: error: Item "None" of "Column | None" has no attribute "id"  [union-attr]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:745: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:780: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:828: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:850: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:851: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:862: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:863: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:950: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_metadata_query_optimizer.py:95: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioned_querysets.py:262: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioned_querysets.py:583: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "dict[str, Any] | bool"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioned_querysets.py:584: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "dict[str, Any] | bool"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioned_querysets.py:59: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioned_querysets.py:609: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "dict[str, Any] | bool"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:103: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:137: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:603: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:618: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:632: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:650: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:669: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:695: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:712: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:719: error: Argument "user" to "get_users_permissions_for_obj" has incompatible type "User"; expected "type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:740: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:741: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:902: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_permissioning.py:905: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_public_and_permissions.py:111: error: "CoreAgent" has no attribute "config"  [attr-defined]
opencontractserver/tests/permissioning/test_public_and_permissions.py:144: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/permissioning/test_public_and_permissions.py:155: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/permissioning/test_public_and_permissions.py:46: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/permissioning/test_public_and_permissions.py:56: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/permissioning/test_public_and_permissions.py:66: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/permissioning/test_public_and_permissions.py:77: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1021: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1022: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1024: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1027: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1078: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1078: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1106: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1107: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1286: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1286: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1307: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1307: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1310: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1332: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1332: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1353: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1353: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1374: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1383: error: Item "None" of "Any | None" has no attribute "name"  [union-attr]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1442: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:1442: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:195: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:196: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:228: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:277: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:278: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:738: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:739: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:783: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:794: error: Item "None" of "Any | None" has no attribute "structural"  [union-attr]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:806: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:807: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:819: error: Item "None" of "Any | None" has no attribute "analysis"  [union-attr]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:831: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:832: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:857: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:858: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:922: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:923: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:951: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:952: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:954: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_query_optimizer_methods.py:957: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_user_visibility.py:151: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_user_visibility.py:202: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_user_visibility.py:527: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:122: error: Item "None" of "Any | None" has no attribute "id"  [union-attr]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:133: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:149: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:160: error: Item "None" of "Any | None" has no attribute "id"  [union-attr]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:174: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:192: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:224: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:242: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:262: error: Item "None" of "Any | None" has no attribute "id"  [union-attr]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:273: error: Item "None" of "Any | None" has no attribute "id"  [union-attr]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:287: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:349: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:373: error: Item "None" of "Any | None" has no attribute "id"  [union-attr]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:393: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:414: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:43: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:451: error: Item "None" of "Any | None" has no attribute "id"  [union-attr]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:463: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:475: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:498: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:528: error: Item "None" of "Any | None" has no attribute "id"  [union-attr]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:557: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:59: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/permissioning/test_version_aware_query_optimizer.py:84: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_admin.py:148: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_admin.py:19: error: "object" has no attribute "_meta"  [attr-defined]
opencontractserver/tests/test_admin.py:20: error: "object" has no attribute "pk"  [attr-defined]
opencontractserver/tests/test_admin.py:27: error: "object" has no attribute "_meta"  [attr-defined]
opencontractserver/tests/test_admin.py:29: error: "object" has no attribute "pk"  [attr-defined]
opencontractserver/tests/test_admin.py:94: error: Argument 2 to "CorpusAdmin" has incompatible type "None"; expected "AdminSite"  [arg-type]
opencontractserver/tests/test_admin_auth.py:105: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:106: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:113: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:115: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:117: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:132: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:134: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:136: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:137: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:147: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:148: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:152: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:154: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:156: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:166: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:167: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:168: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:176: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:190: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:192: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:194: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:208: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:210: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:212: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:221: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:222: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:229: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:231: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:233: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:247: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:249: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:251: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:25: error: "type[TestAdminClaimsSync]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:265: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:267: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:269: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:278: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:279: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:286: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:288: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:290: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:299: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:300: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:307: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:309: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:311: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:328: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:34: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:35: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:36: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:37: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:439: error: "type[TestAuth0AdminBackend]" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:445: error: "type[TestAuth0AdminBackend]" has no attribute "non_staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:451: error: "type[TestAuth0AdminBackend]" has no attribute "inactive_staff"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:457: error: "type[TestAuth0AdminBackend]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:470: error: "TestAuth0AdminBackend" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:480: error: "TestAuth0AdminBackend" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:51: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:538: error: "TestAuth0AdminBackend" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:53: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:540: error: "TestAuth0AdminBackend" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:558: error: "type[TestAdminLoginView]" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:55: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:564: error: "type[TestAdminLoginView]" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:625: error: "TestAdminLoginView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:630: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:635: error: "TestAdminLoginView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:650: error: "TestAdminLoginView" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:65: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:66: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:685: error: "TestAdminLoginView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:696: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:710: error: "TestAdminLoginView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:711: error: "TestAdminLoginView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:713: error: "TestAdminLoginView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:715: error: "TestAdminLoginView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:728: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:731: error: "TestAdminLoginView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:732: error: "TestAdminLoginView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:73: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:75: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:764: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:765: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:77: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:781: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:782: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:802: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:803: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:818: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:834: error: "type[TestAdminLogoutView]" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:846: error: "TestAdminLogoutView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:855: error: "TestAdminLogoutView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:866: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:871: error: "TestAdminLogoutView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:876: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:885: error: "TestAdminLogoutView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:890: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:891: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:901: error: "TestAdminLogoutView" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:907: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:909: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:911: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:91: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:939: error: "type[TestGetUserByPayloadWithClaimSync]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:93: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:948: error: "TestGetUserByPayloadWithClaimSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:949: error: "TestGetUserByPayloadWithClaimSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:950: error: "TestGetUserByPayloadWithClaimSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:951: error: "TestGetUserByPayloadWithClaimSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:95: error: "TestAdminClaimsSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:966: error: "TestGetUserByPayloadWithClaimSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:972: error: "TestGetUserByPayloadWithClaimSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:975: error: "TestGetUserByPayloadWithClaimSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:976: error: "TestGetUserByPayloadWithClaimSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:977: error: "TestGetUserByPayloadWithClaimSync" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_admin_auth.py:994: error: "type[TestAdminLoginRateLimit]" has no attribute "staff_user"  [attr-defined]
opencontractserver/tests/test_agent_action_result.py:214: error: Argument 1 to "assertAlmostEqual" of "TestCase" has incompatible type "float | None"; expected "SupportsSub[float, SupportsAbs[SupportsRound[object]]]"  [arg-type]
opencontractserver/tests/test_agent_action_result_admin.py:100: error: "type[TestAgentActionResultAdmin]" has no attribute "result_failed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:101: error: "type[TestAgentActionResultAdmin]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:104: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:110: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:116: error: Argument 2 to "AgentActionResultAdmin" has incompatible type "None"; expected "AdminSite"  [arg-type]
opencontractserver/tests/test_agent_action_result_admin.py:130: error: "TestAgentActionResultAdmin" has no attribute "result_completed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:149: error: "TestAgentActionResultAdmin" has no attribute "result_pending"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:155: error: "TestAgentActionResultAdmin" has no attribute "result_completed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:161: error: "TestAgentActionResultAdmin" has no attribute "result_failed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:176: error: "TestAgentActionResultAdmin" has no attribute "result_completed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:178: error: "TestAgentActionResultAdmin" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:202: error: "TestAgentActionResultAdmin" has no attribute "result_completed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:226: error: "TestAgentActionResultAdmin" has no attribute "result_completed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:232: error: "TestAgentActionResultAdmin" has no attribute "result_pending"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:265: error: "TestAgentActionResultAdmin" has no attribute "result_completed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:285: error: "TestAgentActionResultAdmin" has no attribute "result_completed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:308: error: "TestAgentActionResultAdmin" has no attribute "result_completed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:32: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:330: error: "TestAgentActionResultAdmin" has no attribute "result_failed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:347: error: "TestAgentActionResultAdmin" has no attribute "agent_config"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:39: error: "type[TestAgentActionResultAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:41: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:45: error: "type[TestAgentActionResultAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:47: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:49: error: "type[TestAgentActionResultAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:49: error: "type[TestAgentActionResultAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:49: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:52: error: "type[TestAgentActionResultAdmin]" has no attribute "agent_config"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:58: error: "type[TestAgentActionResultAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:59: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:63: error: "type[TestAgentActionResultAdmin]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:65: error: "type[TestAgentActionResultAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:66: error: "type[TestAgentActionResultAdmin]" has no attribute "agent_config"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:69: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:75: error: "type[TestAgentActionResultAdmin]" has no attribute "result_pending"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:76: error: "type[TestAgentActionResultAdmin]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:77: error: "type[TestAgentActionResultAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:79: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:82: error: "type[TestAgentActionResultAdmin]" has no attribute "result_completed"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:83: error: "type[TestAgentActionResultAdmin]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:86: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_action_result_admin.py:97: error: "type[TestAgentActionResultAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_agent_api.py:130: error: List item 1 has incompatible type "Callable[[int], str]"; expected "str | CoreTool"  [list-item]
opencontractserver/tests/test_agent_api.py:170: error: Unexpected keyword argument "embedder_path" for "generate" of "EmbeddingAPI"; did you mean "embedder"?  [call-arg]
opencontractserver/tests/test_agent_api.py:170: note: "generate" defined in "opencontractserver.llms.api"
opencontractserver/tests/test_agent_api.py:288: error: Argument 1 to "_resolve_tools" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?]"  [arg-type]
opencontractserver/tests/test_agent_api.py:288: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_agent_api.py:288: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_agent_api.py:319: error: Argument 1 to "_resolve_tools" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?]"  [arg-type]
opencontractserver/tests/test_agent_api.py:319: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_agent_api.py:319: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_agent_api.py:359: error: Argument 1 to "_resolve_tools" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?]"  [arg-type]
opencontractserver/tests/test_agent_api.py:359: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_agent_api.py:359: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_agent_api.py:374: error: Argument 1 to "_resolve_tools" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?]"  [arg-type]
opencontractserver/tests/test_agent_api.py:374: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_agent_api.py:374: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_agent_api.py:399: error: Argument 1 to "_resolve_tools" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?]"  [arg-type]
opencontractserver/tests/test_agent_api.py:399: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_agent_api.py:399: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_agent_api.py:410: error: Argument 1 to "_resolve_tools" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?]"  [arg-type]
opencontractserver/tests/test_agent_api.py:410: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_agent_api.py:410: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_agent_api.py:423: error: Argument 1 to "_resolve_tools" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?]"  [arg-type]
opencontractserver/tests/test_agent_api.py:423: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_agent_api.py:423: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_agent_api.py:440: error: Argument 1 to "_resolve_tools" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?]"  [arg-type]
opencontractserver/tests/test_agent_api.py:440: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_agent_api.py:440: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_agent_api.py:500: error: "CoreAgent" has no attribute "stream_chat"  [attr-defined]
opencontractserver/tests/test_agent_api.py:647: error: Item "None" of "Any | None" has no attribute "function"  [union-attr]
opencontractserver/tests/test_agent_api.py:648: error: Item "None" of "Any | None" has no attribute "function"  [union-attr]
opencontractserver/tests/test_agent_api.py:660: error: Item "None" of "ToolRegistryEntry | None" has no attribute "definition"  [union-attr]
opencontractserver/tests/test_agent_api.py:664: error: Item "None" of "ToolRegistryEntry | None" has no attribute "definition"  [union-attr]
opencontractserver/tests/test_agent_api.py:669: error: Item "None" of "ToolRegistryEntry | None" has no attribute "definition"  [union-attr]
opencontractserver/tests/test_agent_api.py:673: error: Item "None" of "ToolRegistryEntry | None" has no attribute "definition"  [union-attr]
opencontractserver/tests/test_agent_api.py:690: error: Item "None" of "Any | None" has no attribute "requires_approval"  [union-attr]
opencontractserver/tests/test_agent_api.py:691: error: Item "None" of "Any | None" has no attribute "requires_corpus"  [union-attr]
opencontractserver/tests/test_agent_api.py:692: error: Item "None" of "Any | None" has no attribute "requires_write_permission"  [union-attr]
opencontractserver/tests/test_agent_api.py:696: error: Item "None" of "Any | None" has no attribute "requires_approval"  [union-attr]
opencontractserver/tests/test_agent_api.py:697: error: Item "None" of "Any | None" has no attribute "requires_write_permission"  [union-attr]
opencontractserver/tests/test_agent_factory.py:105: error: "TestUnifiedAgentFactory" has no attribute "callable_tool"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:110: error: "TestUnifiedAgentFactory" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:111: error: "TestUnifiedAgentFactory" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:132: error: "TestUnifiedAgentFactory" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:133: error: "TestUnifiedAgentFactory" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:153: error: "TestUnifiedAgentFactory" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:176: error: "TestUnifiedAgentFactory" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:176: error: "TestUnifiedAgentFactory" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:176: error: Argument "framework" to "create_document_agent" of "UnifiedAgentFactory" has incompatible type "str"; expected "AgentFramework"  [arg-type]
opencontractserver/tests/test_agent_factory.py:180: error: "TestUnifiedAgentFactory" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:180: error: Argument "framework" to "create_corpus_agent" of "UnifiedAgentFactory" has incompatible type "str"; expected "AgentFramework"  [arg-type]
opencontractserver/tests/test_agent_factory.py:189: error: "type[TestToolFilteringDocumentAgent]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:192: error: "type[TestToolFilteringDocumentAgent]" has no attribute "reader"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:195: error: "type[TestToolFilteringDocumentAgent]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:196: error: "type[TestToolFilteringDocumentAgent]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:200: error: "type[TestToolFilteringDocumentAgent]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:202: error: "type[TestToolFilteringDocumentAgent]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:202: error: "type[TestToolFilteringDocumentAgent]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:202: error: "type[TestToolFilteringDocumentAgent]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:240: error: "TestToolFilteringDocumentAgent" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:291: error: "TestToolFilteringDocumentAgent" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:292: error: "TestToolFilteringDocumentAgent" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:294: error: "TestToolFilteringDocumentAgent" has no attribute "reader"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:309: error: "type[TestToolFilteringCorpusAgent]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:30: error: "type[TestUserHasWritePermission]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:314: error: "type[TestToolFilteringCorpusAgent]" has no attribute "reader"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:319: error: "type[TestToolFilteringCorpusAgent]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:320: error: "type[TestToolFilteringCorpusAgent]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:35: error: "type[TestUserHasWritePermission]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:363: error: "TestToolFilteringCorpusAgent" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:365: error: "TestToolFilteringCorpusAgent" has no attribute "reader"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:36: error: "type[TestUserHasWritePermission]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:39: error: "type[TestUserHasWritePermission]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:41: error: "type[TestUserHasWritePermission]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:41: error: "type[TestUserHasWritePermission]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:41: error: "type[TestUserHasWritePermission]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:46: error: "TestUserHasWritePermission" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:52: error: "TestUserHasWritePermission" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:59: error: "TestUserHasWritePermission" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:66: error: "type[TestAgentFactorySetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:69: error: "type[TestAgentFactorySetup]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:70: error: "type[TestAgentFactorySetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:74: error: "type[TestAgentFactorySetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:76: error: "type[TestAgentFactorySetup]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:76: error: "type[TestAgentFactorySetup]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:76: error: "type[TestAgentFactorySetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:81: error: "type[TestAgentFactorySetup]" has no attribute "callable_tool"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:82: error: "type[TestAgentFactorySetup]" has no attribute "core_tool_instance"  [attr-defined]
opencontractserver/tests/test_agent_factory.py:83: error: "type[TestAgentFactorySetup]" has no attribute "callable_tool"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:110: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:110: error: "TestAgentAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:115: error: "TestAgentAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:116: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:128: error: "TestAgentAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:129: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:131: error: "TestAgentAPIHypermodern" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:134: error: "TestAgentAPIHypermodern" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:135: error: "TestAgentAPIHypermodern" has no attribute "chat_message1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:135: error: "TestAgentAPIHypermodern" has no attribute "chat_message2"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:136: error: "TestAgentAPIHypermodern" has no attribute "core_tool_instance"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:136: error: "TestAgentAPIHypermodern" has no attribute "dummy_tool_func"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:146: error: "TestAgentAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:147: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:149: error: "TestAgentAPIHypermodern" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:152: error: "TestAgentAPIHypermodern" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:154: error: "TestAgentAPIHypermodern" has no attribute "chat_message1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:154: error: "TestAgentAPIHypermodern" has no attribute "chat_message2"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:181: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:185: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:202: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:202: error: "TestAgentAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:224: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:224: error: "TestAgentAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:227: error: "CoreAgent" has no attribute "stream_chat"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:239: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:259: error: "TestToolAPIHypermodern" has no attribute "dummy_tool_func"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:268: error: "TestToolAPIHypermodern" has no attribute "dummy_tool_func"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:288: error: "TestVectorStoreAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:293: error: "TestVectorStoreAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:303: error: "TestVectorStoreAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:308: error: "TestVectorStoreAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:30: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:320: error: "TestVectorStoreAPIHypermodern" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:321: error: "TestVectorStoreAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:322: error: "TestVectorStoreAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:332: error: "TestVectorStoreAPIHypermodern" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:333: error: "TestVectorStoreAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:334: error: "TestVectorStoreAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:34: error: "type[TestAPISetup]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:34: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:37: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:39: error: "type[TestAPISetup]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:39: error: "type[TestAPISetup]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:39: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:41: error: "type[TestAPISetup]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:42: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:45: error: "type[TestAPISetup]" has no attribute "label1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:45: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:46: error: "type[TestAPISetup]" has no attribute "anno1_doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:47: error: "type[TestAPISetup]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:48: error: "type[TestAPISetup]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:49: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:51: error: "type[TestAPISetup]" has no attribute "label1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:54: error: "type[TestAPISetup]" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:55: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:57: error: "type[TestAPISetup]" has no attribute "chat_message1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:58: error: "type[TestAPISetup]" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:61: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:63: error: "type[TestAPISetup]" has no attribute "chat_message2"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:64: error: "type[TestAPISetup]" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:67: error: "type[TestAPISetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:75: error: "type[TestAPISetup]" has no attribute "dummy_tool_func"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:76: error: "type[TestAPISetup]" has no attribute "core_tool_instance"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:77: error: "type[TestAPISetup]" has no attribute "dummy_tool_func"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:91: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:91: error: "TestAgentAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:95: error: "TestAgentAPIHypermodern" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_agent_framework_api.py:96: error: "TestAgentAPIHypermodern" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:1019: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_agent_memory.py:1923: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_agent_memory.py:2052: error: Argument 1 to "build_inject_params_for_context" has incompatible type "Any | None"; expected "CoreTool"  [arg-type]
opencontractserver/tests/test_agent_memory.py:263: error: "type[TestCurationEligibility]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:268: error: "type[TestCurationEligibility]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:271: error: "type[TestCurationEligibility]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:274: error: "type[TestCurationEligibility]" has no attribute "corpus_no_memory"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:277: error: "type[TestCurationEligibility]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:284: error: "TestCurationEligibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:285: error: "TestCurationEligibility" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:294: error: "TestCurationEligibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:295: error: "TestCurationEligibility" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:304: error: "TestCurationEligibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:315: error: "TestCurationEligibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:316: error: "TestCurationEligibility" has no attribute "corpus_no_memory"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:319: error: "TestCurationEligibility" has no attribute "corpus_no_memory"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:326: error: "TestCurationEligibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:327: error: "TestCurationEligibility" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:338: error: "type[TestCorpusMemoryFields]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:347: error: "TestCorpusMemoryFields" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:355: error: "TestCorpusMemoryFields" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:368: error: "TestCorpusMemoryFields" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:372: error: "TestCorpusMemoryFields" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:387: error: "type[TestMemoryInjection]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:408: error: "type[TestCorpusIsolation]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:413: error: "type[TestCorpusIsolation]" has no attribute "corpus_a"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:415: error: "type[TestCorpusIsolation]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:418: error: "type[TestCorpusIsolation]" has no attribute "corpus_b"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:420: error: "type[TestCorpusIsolation]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:426: error: "TestCorpusIsolation" has no attribute "corpus_a"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:426: error: "TestCorpusIsolation" has no attribute "corpus_b"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:428: error: "TestCorpusIsolation" has no attribute "corpus_a"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:429: error: "TestCorpusIsolation" has no attribute "corpus_b"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:437: error: "TestCorpusIsolation" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:439: error: "TestCorpusIsolation" has no attribute "corpus_a"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:440: error: "TestCorpusIsolation" has no attribute "corpus_a"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:446: error: "TestCorpusIsolation" has no attribute "corpus_b"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:447: error: "TestCorpusIsolation" has no attribute "corpus_b"  [attr-defined]
opencontractserver/tests/test_agent_memory.py:787: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_agent_memory.py:790: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_agent_memory.py:919: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_agent_memory.py:920: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_agent_memory.py:921: error: Item "None" of "str | None" has no attribute "startswith"  [union-attr]
opencontractserver/tests/test_agent_memory.py:986: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_agent_tasks.py:136: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:141: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:143: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:145: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:145: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:147: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:150: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:151: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:154: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:154: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:157: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:163: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:164: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:167: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:167: error: "type[TestTriggerAgentResponsesForMessage]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:171: error: "TestTriggerAgentResponsesForMessage" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:180: error: "TestTriggerAgentResponsesForMessage" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:183: error: "TestTriggerAgentResponsesForMessage" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:186: error: "TestTriggerAgentResponsesForMessage" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:199: error: "TestTriggerAgentResponsesForMessage" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:202: error: "TestTriggerAgentResponsesForMessage" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:205: error: "TestTriggerAgentResponsesForMessage" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:207: error: "TestTriggerAgentResponsesForMessage" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:213: error: "TestTriggerAgentResponsesForMessage" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:214: error: "TestTriggerAgentResponsesForMessage" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:227: error: "TestTriggerAgentResponsesForMessage" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:228: error: "TestTriggerAgentResponsesForMessage" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:233: error: "TestTriggerAgentResponsesForMessage" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:236: error: "TestTriggerAgentResponsesForMessage" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:240: error: "TestTriggerAgentResponsesForMessage" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:253: error: "type[TestGenerateAgentResponseErrors]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:258: error: "type[TestGenerateAgentResponseErrors]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:260: error: "type[TestGenerateAgentResponseErrors]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:262: error: "type[TestGenerateAgentResponseErrors]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:262: error: "type[TestGenerateAgentResponseErrors]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:264: error: "type[TestGenerateAgentResponseErrors]" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:267: error: "type[TestGenerateAgentResponseErrors]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:268: error: "type[TestGenerateAgentResponseErrors]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:271: error: "type[TestGenerateAgentResponseErrors]" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:277: error: "type[TestGenerateAgentResponseErrors]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:278: error: "type[TestGenerateAgentResponseErrors]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:282: error: "type[TestGenerateAgentResponseErrors]" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:283: error: "type[TestGenerateAgentResponseErrors]" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:286: error: "type[TestGenerateAgentResponseErrors]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:292: error: "TestGenerateAgentResponseErrors" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:293: error: "TestGenerateAgentResponseErrors" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:304: error: "TestGenerateAgentResponseErrors" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:305: error: "TestGenerateAgentResponseErrors" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:314: error: "TestGenerateAgentResponseErrors" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_agent_tasks.py:316: error: "TestGenerateAgentResponseErrors" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agentic_highlighter_task.py:84: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_agentic_highlighter_task.py:84: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analyzer"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_agentic_highlighter_task.py:99: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_agents.py:1027: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:1050: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:1074: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:107: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:1099: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:122: error: "TestAgentConfigurationModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agents.py:123: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:140: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:164: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:179: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:192: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:202: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:212: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:224: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:236: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:244: error: "TestAgentConfigurationModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agents.py:245: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:249: error: "TestAgentConfigurationModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agents.py:258: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:264: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:268: error: "TestAgentConfigurationModel" has no attribute "normal_user"  [attr-defined]
opencontractserver/tests/test_agents.py:278: error: "TestAgentConfigurationModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agents.py:279: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:285: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:289: error: "TestAgentConfigurationModel" has no attribute "normal_user"  [attr-defined]
opencontractserver/tests/test_agents.py:308: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:314: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:318: error: "TestAgentConfigurationModel" has no attribute "normal_user"  [attr-defined]
opencontractserver/tests/test_agents.py:328: error: "type[TestChatMessageAgentRelationship]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agents.py:334: error: "type[TestChatMessageAgentRelationship]" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agents.py:339: error: "type[TestChatMessageAgentRelationship]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agents.py:347: error: "TestChatMessageAgentRelationship" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agents.py:353: error: "TestChatMessageAgentRelationship" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agents.py:360: error: "TestChatMessageAgentRelationship" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agents.py:363: error: "TestChatMessageAgentRelationship" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agents.py:367: error: "TestChatMessageAgentRelationship" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agents.py:372: error: "TestChatMessageAgentRelationship" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agents.py:378: error: "TestChatMessageAgentRelationship" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_agents.py:37: error: "type[TestAgentConfigurationModel]" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:381: error: "TestChatMessageAgentRelationship" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agents.py:384: error: "TestChatMessageAgentRelationship" has no attribute "agent"  [attr-defined]
opencontractserver/tests/test_agents.py:420: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_agents.py:44: error: "type[TestAgentConfigurationModel]" has no attribute "normal_user"  [attr-defined]
opencontractserver/tests/test_agents.py:465: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:509: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:50: error: "type[TestAgentConfigurationModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agents.py:53: error: "type[TestAgentConfigurationModel]" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:562: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:59: error: "type[TestAgentConfigurationModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agents.py:59: error: "type[TestAgentConfigurationModel]" has no attribute "normal_user"  [attr-defined]
opencontractserver/tests/test_agents.py:600: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:642: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:667: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_agents.py:667: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "AgentConfiguration"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_agents.py:689: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:70: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:711: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_agents.py:711: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "AgentConfiguration"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_agents.py:726: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:756: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:800: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:862: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:88: error: "TestAgentConfigurationModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agents.py:90: error: "TestAgentConfigurationModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_agents.py:967: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_agents.py:96: error: "TestAgentConfigurationModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_agents.py:999: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_analysis_annotation_import.py:126: error: Argument "analysis_results" to "import_annotations_from_analysis" has incompatible type "dict[str, object]"; expected "OpenContractsGeneratedCorpusPythonType"  [arg-type]
opencontractserver/tests/test_analysis_annotation_import.py:170: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_analysis_annotation_import.py:171: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_analysis_annotation_import.py:180: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_analysis_annotation_import.py:181: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_analyzers.py:180: error: Argument 1 to "create_mock_submission_response" has incompatible type "str"; expected "int"  [arg-type]
opencontractserver/tests/test_analyzers.py:241: error: Argument 1 to "create_mock_submission_response" has incompatible type "str"; expected "int"  [arg-type]
opencontractserver/tests/test_analyzers.py:268: error: Argument "doc_ids" to "generate_random_analyzer_return_values" has incompatible type "list[int]"; expected "list[int | str] | None"  [arg-type]
opencontractserver/tests/test_analyzers.py:268: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_analyzers.py:268: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_annotated_document_import.py:106: error: Incompatible types (expression has type "list[dict[str, dict[str, dict[str, Collection[Collection[str]]]] | int | str | None]]", TypedDict item "labelled_text" has type "list[OpenContractsAnnotationPythonType]")  [typeddict-item]
opencontractserver/tests/test_annotated_document_import.py:119: error: Incompatible types (expression has type "dict[str, dict[str, str]]", TypedDict item "text_labels" has type "dict[str, AnnotationLabelPythonType]")  [typeddict-item]
opencontractserver/tests/test_annotated_document_import.py:120: error: Incompatible types (expression has type "dict[str, dict[str, str]]", TypedDict item "doc_labels" has type "dict[str, AnnotationLabelPythonType]")  [typeddict-item]
opencontractserver/tests/test_annotated_document_import.py:141: error: Incompatible types in assignment (expression has type "QuerySet[Annotation, Annotation]", variable has type "list[dict[str, dict[str, dict[str, Collection[Collection[str]]]] | int | str | None]]")  [assignment]
opencontractserver/tests/test_annotated_document_import.py:142: error: Too few arguments for "count" of "list"  [call-arg]
opencontractserver/tests/test_annotated_document_import.py:144: error: "list[dict[str, dict[str, dict[str, Collection[Collection[str]]]] | int | str | None]]" has no attribute "filter"  [attr-defined]
opencontractserver/tests/test_annotated_document_import.py:147: error: "list[dict[str, dict[str, dict[str, Collection[Collection[str]]]] | int | str | None]]" has no attribute "filter"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:101: error: "type[TestAnnotationAdmin]" has no attribute "embedding2_384b"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:102: error: "type[TestAnnotationAdmin]" has no attribute "annotation2"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:104: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:133: error: "TestAnnotationAdmin" has no attribute "annotation2"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:163: error: "TestAnnotationAdmin" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:168: error: "TestAnnotationAdmin" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:186: error: "TestAnnotationAdmin" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:187: error: "TestAnnotationAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:194: error: "TestAnnotationAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:241: error: "TestAnnotationAdmin" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:242: error: "TestAnnotationAdmin" has no attribute "annotation2"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:248: error: "TestAnnotationAdmin" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:249: error: "TestAnnotationAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:255: error: "TestAnnotationAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:291: error: "TestAnnotationAdmin" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:292: error: "TestAnnotationAdmin" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:293: error: "TestAnnotationAdmin" has no attribute "annotation_label"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:294: error: "TestAnnotationAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:41: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:48: error: "type[TestAnnotationAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:48: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:53: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:56: error: "type[TestAnnotationAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:56: error: "type[TestAnnotationAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:57: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:61: error: "type[TestAnnotationAdmin]" has no attribute "annotation_label"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:63: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:67: error: "type[TestAnnotationAdmin]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:68: error: "type[TestAnnotationAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:69: error: "type[TestAnnotationAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:71: error: "type[TestAnnotationAdmin]" has no attribute "annotation_label"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:72: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:76: error: "type[TestAnnotationAdmin]" has no attribute "embedding_384"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:78: error: "type[TestAnnotationAdmin]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:81: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:86: error: "type[TestAnnotationAdmin]" has no attribute "annotation2"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:87: error: "type[TestAnnotationAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:88: error: "type[TestAnnotationAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:90: error: "type[TestAnnotationAdmin]" has no attribute "annotation_label"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:91: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:95: error: "type[TestAnnotationAdmin]" has no attribute "embedding2_384a"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:96: error: "type[TestAnnotationAdmin]" has no attribute "annotation2"  [attr-defined]
opencontractserver/tests/test_annotation_admin.py:98: error: "type[TestAnnotationAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:102: error: Variable "opencontractserver.tests.test_annotation_images_api.User" is not valid as a type  [valid-type]
opencontractserver/tests/test_annotation_images_api.py:102: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
opencontractserver/tests/test_annotation_images_api.py:127: error: "AnnotationImagesAPITestCase" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:130: error: "AnnotationImagesAPITestCase" has no attribute "annotation_label"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:150: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:152: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:176: error: "AnnotationImagesAPITestCase" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:178: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:191: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:203: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:208: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:214: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:219: error: "AnnotationImagesAPITestCase" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:220: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:222: error: "AnnotationImagesAPITestCase" has no attribute "annotation_label"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:244: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:259: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:277: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:284: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:293: error: "AnnotationImagesAPITestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:295: error: "AnnotationImagesAPITestCase" has no attribute "annotation_label"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:31: error: "type[AnnotationImagesAPITestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:34: error: "type[AnnotationImagesAPITestCase]" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:39: error: "type[AnnotationImagesAPITestCase]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:40: error: "type[AnnotationImagesAPITestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:42: error: "type[AnnotationImagesAPITestCase]" has no attribute "annotation_label"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:43: error: "type[AnnotationImagesAPITestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:45: error: "type[AnnotationImagesAPITestCase]" has no attribute "annotation_label"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:45: error: "type[AnnotationImagesAPITestCase]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:48: error: "type[AnnotationImagesAPITestCase]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:49: error: "type[AnnotationImagesAPITestCase]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:49: error: "type[AnnotationImagesAPITestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:52: error: "type[AnnotationImagesAPITestCase]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_images_api.py:52: error: "type[AnnotationImagesAPITestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_permission_mutations.py:100: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:100: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:105: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:108: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:394: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:394: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:412: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:412: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:94: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:95: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:97: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_permission_mutations.py:97: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_annotation_privacy.py:109: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_privacy.py:119: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_privacy.py:130: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_privacy.py:132: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_privacy.py:248: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_annotation_privacy.py:248: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Analysis"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_annotation_tree.py:102: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_annotation_tree.py:146: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_annotation_tree.py:248: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_annotation_tree.py:278: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_annotation_tree.py:297: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_annotation_tree.py:299: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_annotation_tree.py:370: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_annotation_tree.py:395: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:129: error: Argument 1 to "compute_content_modalities" has incompatible type "list[dict[str, int] | int | str | None]"; expected "list[dict[str, Any]]"  [arg-type]
opencontractserver/tests/test_annotation_utils.py:207: error: Argument "pawls_data" to "compute_content_modalities" has incompatible type "list[dict[str, Collection[Collection[str]]] | str | None]"; expected "list[dict[str, Any]] | None"  [arg-type]
opencontractserver/tests/test_annotation_utils.py:268: error: "type[TestComputeContentModalitiesWithDocument]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:271: error: "type[TestComputeContentModalitiesWithDocument]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:273: error: "type[TestComputeContentModalitiesWithDocument]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:289: error: "TestComputeContentModalitiesWithDocument" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:295: error: "TestComputeContentModalitiesWithDocument" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:295: error: "TestComputeContentModalitiesWithDocument" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:306: error: "TestComputeContentModalitiesWithDocument" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:337: error: "type[TestUpdateAnnotationModalities]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:340: error: "type[TestUpdateAnnotationModalities]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:342: error: "type[TestUpdateAnnotationModalities]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:344: error: "type[TestUpdateAnnotationModalities]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:346: error: "type[TestUpdateAnnotationModalities]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:353: error: "TestUpdateAnnotationModalities" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:359: error: "TestUpdateAnnotationModalities" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:359: error: "TestUpdateAnnotationModalities" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:376: error: "TestUpdateAnnotationModalities" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:377: error: "TestUpdateAnnotationModalities" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:378: error: "TestUpdateAnnotationModalities" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:407: error: "TestUpdateAnnotationModalities" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:408: error: "TestUpdateAnnotationModalities" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:409: error: "TestUpdateAnnotationModalities" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:437: error: "TestUpdateAnnotationModalities" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:438: error: "TestUpdateAnnotationModalities" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:439: error: "TestUpdateAnnotationModalities" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:486: error: "TestUpdateAnnotationModalities" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:487: error: "TestUpdateAnnotationModalities" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:488: error: "TestUpdateAnnotationModalities" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:520: error: "TestUpdateAnnotationModalities" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:521: error: "TestUpdateAnnotationModalities" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:522: error: "TestUpdateAnnotationModalities" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:545: error: "TestUpdateAnnotationModalities" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:546: error: "TestUpdateAnnotationModalities" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_annotation_utils.py:547: error: "TestUpdateAnnotationModalities" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:173: error: "Callable[..., Any]" has no attribute "s"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:205: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:248: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:278: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:306: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:324: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:345: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:364: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:378: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:394: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:416: error: "Callable[..., Any]" has no attribute "s"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:438: error: "Callable[..., Any]" has no attribute "s"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:462: error: "Callable[..., Any]" has no attribute "s"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:484: error: "Callable[..., Any]" has no attribute "s"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:504: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:539: error: "Callable[..., Any]" has no attribute "s"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:563: error: "Callable[..., Any]" has no attribute "s"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:588: error: "Callable[..., Any]" has no attribute "s"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:610: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:630: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_async_task_decorators.py:659: error: "Callable[..., Any]" has no attribute "si"  [attr-defined]
opencontractserver/tests/test_auth0_jwks_cache.py:15: error: Library stubs not installed for "requests"  [import-untyped]
opencontractserver/tests/test_backfill_default_embeddings.py:123: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:149: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:245: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:250: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:253: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus2"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:254: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:256: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus2"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:261: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:266: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:272: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:308: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:32: error: "type[TestBackfillDefaultEmbeddingsCommand]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:344: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:35: error: "type[TestBackfillDefaultEmbeddingsCommand]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:370: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:37: error: "type[TestBackfillDefaultEmbeddingsCommand]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:39: error: "type[TestBackfillDefaultEmbeddingsCommand]" has no attribute "corpus2"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:41: error: "type[TestBackfillDefaultEmbeddingsCommand]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:43: error: "type[TestBackfillDefaultEmbeddingsCommand]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:45: error: "type[TestBackfillDefaultEmbeddingsCommand]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:56: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:59: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:60: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:68: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:69: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_backfill_default_embeddings.py:70: error: "TestBackfillDefaultEmbeddingsCommand" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_badges.py:100: error: "TestBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:1048: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_badges.py:1057: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_badges.py:1152: error: Item "None" of "UserBadge | None" has no attribute "awarded_by"  [union-attr]
opencontractserver/tests/test_badges.py:115: error: "TestBadgeModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:116: error: "TestBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:1222: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_badges.py:1294: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_badges.py:135: error: "TestBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:1390: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_badges.py:149: error: "TestBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:1537: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_badges.py:1548: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_badges.py:157: error: "TestBadgeModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:1580: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_badges.py:158: error: "TestBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:162: error: "TestBadgeModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:171: error: "type[TestUserBadgeModel]" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:178: error: "type[TestUserBadgeModel]" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:184: error: "type[TestUserBadgeModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:187: error: "type[TestUserBadgeModel]" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:191: error: "type[TestUserBadgeModel]" has no attribute "global_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:196: error: "type[TestUserBadgeModel]" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:200: error: "type[TestUserBadgeModel]" has no attribute "corpus_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:205: error: "type[TestUserBadgeModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:206: error: "type[TestUserBadgeModel]" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:213: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:214: error: "TestUserBadgeModel" has no attribute "global_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:215: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:218: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:219: error: "TestUserBadgeModel" has no attribute "global_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:220: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:226: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:227: error: "TestUserBadgeModel" has no attribute "corpus_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:228: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:229: error: "TestUserBadgeModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:232: error: "TestUserBadgeModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:233: error: "TestUserBadgeModel" has no attribute "corpus_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:238: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:239: error: "TestUserBadgeModel" has no attribute "global_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:248: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:249: error: "TestUserBadgeModel" has no attribute "corpus_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:250: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:264: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:268: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:269: error: "TestUserBadgeModel" has no attribute "corpus_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:270: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:282: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:283: error: "TestUserBadgeModel" has no attribute "global_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:284: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:285: error: "TestUserBadgeModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:297: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:298: error: "TestUserBadgeModel" has no attribute "global_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:299: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:305: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:306: error: "TestUserBadgeModel" has no attribute "global_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:307: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:313: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:314: error: "TestUserBadgeModel" has no attribute "global_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:315: error: "TestUserBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:319: error: "TestUserBadgeModel" has no attribute "global_badge"  [attr-defined]
opencontractserver/tests/test_badges.py:320: error: "TestUserBadgeModel" has no attribute "recipient"  [attr-defined]
opencontractserver/tests/test_badges.py:354: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_badges.py:381: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_badges.py:39: error: "type[TestBadgeModel]" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:416: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_badges.py:440: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_badges.py:46: error: "type[TestBadgeModel]" has no attribute "normal_user"  [attr-defined]
opencontractserver/tests/test_badges.py:484: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_badges.py:506: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_badges.py:529: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_badges.py:52: error: "type[TestBadgeModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:557: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_badges.py:55: error: "type[TestBadgeModel]" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:608: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_badges.py:662: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_badges.py:67: error: "TestBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:691: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_badges.py:759: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_badges.py:773: error: Item "None" of "UserBadge | None" has no attribute "awarded_by"  [union-attr]
opencontractserver/tests/test_badges.py:789: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_badges.py:84: error: "TestBadgeModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:85: error: "TestBadgeModel" has no attribute "admin_user"  [attr-defined]
opencontractserver/tests/test_badges.py:90: error: "TestBadgeModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_badges.py:999: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_base_embedder.py:155: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_base_embedder.py:156: error: Value of type "list[float] | None" is not indexable  [index]
opencontractserver/tests/test_base_embedder.py:231: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_base_embedder.py:232: error: Value of type "list[float] | None" is not indexable  [index]
opencontractserver/tests/test_base_pipeline_parser.py:195: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "int | str": "OpenContractsSinglePageAnnotationType"  [dict-item]
opencontractserver/tests/test_base_pipeline_parser.py:205: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "int | str": "OpenContractsSinglePageAnnotationType"  [dict-item]
opencontractserver/tests/test_base_pipeline_parser.py:213: error: Missing key "structural" for TypedDict "OpenContractsRelationshipPythonType"  [typeddict-item]
opencontractserver/tests/test_base_pipeline_parser.py:243: error: Argument "open_contracts_data" to "save_parsed_data" of "BaseParser" has incompatible type "OpenContractDocExport | None"; expected "OpenContractDocExport"  [arg-type]
opencontractserver/tests/test_base_pipeline_parser.py:266: error: Item "None" of "AnnotationLabel | Any | None" has no attribute "text"  [union-attr]
opencontractserver/tests/test_base_pipeline_parser.py:266: error: Item "None" of "Relationship | None" has no attribute "relationship_label"  [union-attr]
opencontractserver/tests/test_base_pipeline_parser.py:36: error: "type[TestBasePipelineParser]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_base_pipeline_parser.py:378: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "pk"  [union-attr]
opencontractserver/tests/test_base_pipeline_parser.py:41: error: "type[TestBasePipelineParser]" has no attribute "parser_code"  [attr-defined]
opencontractserver/tests/test_base_pipeline_parser.py:67: error: "type[TestBasePipelineParser]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_base_pipeline_parser.py:68: error: "type[TestBasePipelineParser]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_base_pipeline_parser.py:69: error: "type[TestBasePipelineParser]" has no attribute "parser_code"  [attr-defined]
opencontractserver/tests/test_base_pipeline_parser.py:71: error: "type[TestBasePipelineParser]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_base_pipeline_parser.py:71: error: "type[TestBasePipelineParser]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_batch_embedding.py:100: error: Incompatible return value type (got "list[list[float]]", expected "list[list[float] | None] | None")  [return-value]
opencontractserver/tests/test_batch_embedding.py:152: error: Argument 1 to "len" has incompatible type "list[list[float] | None] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_batch_embedding.py:153: error: Item "None" of "list[list[float] | None] | None" has no attribute "__iter__" (not iterable)  [union-attr]
opencontractserver/tests/test_batch_embedding.py:155: error: Argument 1 to "len" has incompatible type "list[float] | Any | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_batch_embedding.py:15: error: Library stubs not installed for "requests"  [import-untyped]
opencontractserver/tests/test_batch_embedding.py:162: error: Argument 1 to "len" has incompatible type "list[list[float] | None] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_batch_embedding.py:178: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_batch_embedding.py:181: error: Argument 1 to "len" has incompatible type "list[list[float] | None] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_batch_embedding.py:182: error: Value of type "list[list[float] | None] | None" is not indexable  [index]
opencontractserver/tests/test_batch_embedding.py:183: error: Value of type "list[list[float] | None] | None" is not indexable  [index]
opencontractserver/tests/test_batch_embedding.py:184: error: Value of type "list[list[float] | None] | None" is not indexable  [index]
opencontractserver/tests/test_batch_embedding.py:94: error: Need type annotation for "results" (hint: "results: list[<type>] = ...")  [var-annotated]
opencontractserver/tests/test_batch_embedding.py:97: error: Argument 1 to "append" of "list" has incompatible type "None"; expected "list[float]"  [arg-type]
opencontractserver/tests/test_bulk_document_upload.py:109: error: Incompatible return value type (got "None", expected "dict[Any, Any]")  [return-value]
opencontractserver/tests/test_bulk_document_upload.py:140: error: Incompatible return value type (got "None", expected "dict[Any, Any]")  [return-value]
opencontractserver/tests/test_bulk_document_upload.py:297: error: Item "None" of "str | None" has no attribute "startswith"  [union-attr]
opencontractserver/tests/test_bulk_document_upload.py:306: error: Item "None" of "str | None" has no attribute "startswith"  [union-attr]
opencontractserver/tests/test_bulk_document_upload.py:357: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_bulk_document_upload.py:366: error: Argument 2 to "save" of "FieldFile" has incompatible type "BytesIO"; expected "File[Any]"  [arg-type]
opencontractserver/tests/test_bulk_document_upload.py:404: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_bulk_document_upload.py:422: error: Argument 2 to "save" of "FieldFile" has incompatible type "BytesIO"; expected "File[Any]"  [arg-type]
opencontractserver/tests/test_bulk_document_upload.py:464: error: Argument 2 to "save" of "FieldFile" has incompatible type "BytesIO"; expected "File[Any]"  [arg-type]
opencontractserver/tests/test_bulk_document_upload.py:492: error: Argument 2 to "save" of "FieldFile" has incompatible type "BytesIO"; expected "File[Any]"  [arg-type]
opencontractserver/tests/test_bulk_document_upload.py:531: error: Argument 2 to "save" of "FieldFile" has incompatible type "BytesIO"; expected "File[Any]"  [arg-type]
opencontractserver/tests/test_bulk_document_upload.py:53: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_bulk_document_upload.py:80: error: Incompatible default for parameter "add_to_corpus_id" (default has type "None", parameter has type "str")  [assignment]
opencontractserver/tests/test_bulk_document_upload.py:80: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
opencontractserver/tests/test_bulk_document_upload.py:80: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
opencontractserver/tests/test_chunked_parser.py:143: error: TypedDict "CompactAnnotationJsonType" has no key "10"  [typeddict-item]
opencontractserver/tests/test_chunked_parser.py:143: error: TypedDict "TextSpanData" has no key "10"  [typeddict-item]
opencontractserver/tests/test_chunked_parser.py:282: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "object"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_chunked_parser.py:283: error: Argument 2 to "assertNotIn" of "TestCase" has incompatible type "object"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_chunked_parser.py:285: error: Value of type "object" is not indexable  [index]
opencontractserver/tests/test_chunked_parser.py:369: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_chunked_parser.py:371: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_chunked_parser.py:389: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_chunked_parser.py:391: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_chunked_parser.py:409: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_chunked_parser.py:411: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_chunked_parser.py:458: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_chunked_parser.py:78: error: Incompatible types (expression has type "list[dict[str, Collection[Collection[str]]]]", TypedDict item "pawls_file_content" has type "list[PawlsPagePythonType]")  [typeddict-item]
opencontractserver/tests/test_cloud_run_helpers.py:26: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/test_cloud_run_helpers.py:27: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/test_cloud_run_helpers.py:28: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/test_cloud_run_helpers.py:29: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/test_cloud_run_helpers.py:39: error: Module has no attribute "Request"  [attr-defined]
opencontractserver/tests/test_cloud_run_helpers.py:48: error: All conditional function variants must have identical signatures  [misc]
opencontractserver/tests/test_cloud_run_helpers.py:48: note:     def _fetch_id_token(*_: object, **__: object) -> str
opencontractserver/tests/test_cloud_run_helpers.py:48: note:     def _fetch_id_token(*_: object, **__: object) -> str | None
opencontractserver/tests/test_cloud_run_helpers.py:48: note: Original:
opencontractserver/tests/test_cloud_run_helpers.py:48: note: Redefinition:
opencontractserver/tests/test_cloud_run_helpers.py:51: error: Module has no attribute "fetch_id_token"  [attr-defined]
opencontractserver/tests/test_column_mutations.py:121: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_column_mutations.py:44: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_column_mutations.py:44: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Column"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_column_mutations.py:67: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_column_mutations.py:87: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_compact_json.py:1055: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:1061: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:1062: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:274: error: Argument 1 to "compact_annotation_json" has incompatible type "str"; expected "dict[str, Any] | None"  [arg-type]
opencontractserver/tests/test_compact_json.py:301: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:302: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:304: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:315: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:316: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:317: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:318: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:319: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:322: error: Need type annotation for "v1"  [var-annotated]
opencontractserver/tests/test_compact_json.py:324: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:335: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:474: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:475: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:475: error: Value of type "object" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:476: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:476: error: Value of type "object" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:504: error: Value of type "object" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:505: error: Value of type "object" is not indexable  [index]
opencontractserver/tests/test_compact_json.py:576: error: Incompatible types in assignment (expression has type "dict[str, dict[str, Collection[Collection[str]]]]", variable has type "dict[str, object]")  [assignment]
opencontractserver/tests/test_compact_json.py:576: note: "dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_compact_json.py:576: note: Consider using "Mapping" instead, which is covariant in the value type
opencontractserver/tests/test_compact_json.py:602: error: Incompatible types in assignment (expression has type "dict[str, dict[str, dict[str, int]]]", variable has type "dict[str, object]")  [assignment]
opencontractserver/tests/test_compact_json.py:602: note: "dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_compact_json.py:602: note: Consider using "Mapping" instead, which is covariant in the value type
opencontractserver/tests/test_compact_json.py:635: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "object"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_compact_pawls.py:133: error: Value of type "dict[str, Any] | Any | None" is not indexable  [index]
opencontractserver/tests/test_compact_pawls.py:144: error: Value of type "dict[str, Any] | Any | None" is not indexable  [index]
opencontractserver/tests/test_compact_pawls.py:321: error: Value of type "dict[str, Any] | Any | None" is not indexable  [index]
opencontractserver/tests/test_compact_pawls.py:87: error: Value of type "dict[str, Any] | Any | None" is not indexable  [index]
opencontractserver/tests/test_compact_pawls.py:94: error: Value of type "dict[str, Any] | Any | None" is not indexable  [index]
opencontractserver/tests/test_compact_pawls.py:95: error: Value of type "dict[str, Any] | Any | None" is not indexable  [index]
opencontractserver/tests/test_compact_pawls.py:97: error: Value of type "dict[str, Any] | Any | None" is not indexable  [index]
opencontractserver/tests/test_conversation_mutations_graphql.py:1002: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1002: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1023: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1023: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1089: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1089: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1100: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1100: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1112: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1112: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1211: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1222: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1227: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1230: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:125: error: Item "None" of "ChatMessage | None" has no attribute "content"  [union-attr]
opencontractserver/tests/test_conversation_mutations_graphql.py:1303: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1328: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1392: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:1452: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:168: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:168: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:218: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:218: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:258: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:258: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:317: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:317: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:355: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:355: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:365: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:365: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:404: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:404: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:49: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:59: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:681: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:681: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:690: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:690: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:736: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:736: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:745: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:745: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:75: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_mutations_graphql.py:788: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:788: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:799: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:799: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:841: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:841: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:850: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:850: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:888: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:888: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:898: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:898: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:934: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:934: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:943: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_mutations_graphql.py:943: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_permissions.py:103: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:107: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:119: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:124: error: "TestConversationBifurcatedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:128: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:138: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:143: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:146: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:149: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:156: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:162: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:163: error: "TestConversationBifurcatedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:164: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:175: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:179: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:190: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:195: error: "TestConversationBifurcatedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:199: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:210: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:215: error: "TestConversationBifurcatedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:219: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:231: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:236: error: "TestConversationBifurcatedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:273: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:278: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:281: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:284: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:299: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:307: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:316: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:321: error: "TestConversationBifurcatedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:326: error: "TestConversationBifurcatedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:339: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:345: error: "TestConversationBifurcatedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:349: error: "TestConversationBifurcatedPermissions" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:358: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:365: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:379: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:385: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:402: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:410: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:419: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:428: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:456: error: "type[TestChatMessageInheritedPermissions]" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:461: error: "type[TestChatMessageInheritedPermissions]" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:466: error: "type[TestChatMessageInheritedPermissions]" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:46: error: "type[TestConversationBifurcatedPermissions]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:476: error: "TestChatMessageInheritedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:479: error: "TestChatMessageInheritedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:495: error: "TestChatMessageInheritedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:500: error: "TestChatMessageInheritedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:506: error: "TestChatMessageInheritedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:510: error: "TestChatMessageInheritedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:51: error: "type[TestConversationBifurcatedPermissions]" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:521: error: "TestChatMessageInheritedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:526: error: "TestChatMessageInheritedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:532: error: "TestChatMessageInheritedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:536: error: "TestChatMessageInheritedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:540: error: "TestChatMessageInheritedPermissions" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:551: error: "TestChatMessageInheritedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:556: error: "TestChatMessageInheritedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:562: error: "TestChatMessageInheritedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:56: error: "type[TestConversationBifurcatedPermissions]" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:574: error: "type[TestConversationQueryOptimizer]" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:579: error: "type[TestConversationQueryOptimizer]" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:589: error: "TestConversationQueryOptimizer" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:592: error: "TestConversationQueryOptimizer" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:605: error: "TestConversationQueryOptimizer" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:610: error: "TestConversationQueryOptimizer" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:61: error: "type[TestConversationBifurcatedPermissions]" has no attribute "charlie"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:621: error: "TestConversationQueryOptimizer" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:628: error: "TestConversationQueryOptimizer" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:632: error: "TestConversationQueryOptimizer" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:640: error: "TestConversationQueryOptimizer" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:661: error: "type[TestEdgeCases]" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:680: error: "TestEdgeCases" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:685: error: "TestEdgeCases" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:694: error: "TestEdgeCases" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:700: error: "TestEdgeCases" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:706: error: "TestEdgeCases" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:719: error: "TestEdgeCases" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:725: error: "TestEdgeCases" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:72: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:76: error: "TestConversationBifurcatedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:81: error: "TestConversationBifurcatedPermissions" has no attribute "alice"  [attr-defined]
opencontractserver/tests/test_conversation_permissions.py:85: error: "TestConversationBifurcatedPermissions" has no attribute "bob"  [attr-defined]
opencontractserver/tests/test_conversation_query.py:105: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_query.py:106: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_query.py:133: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_query.py:134: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_query.py:170: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_query.py:230: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_query.py:279: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_query.py:375: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_query.py:376: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_query.py:71: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_query.py:72: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1011: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1012: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1026: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1027: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1041: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1042: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1047: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1048: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1065: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1066: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:106: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:107: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1278: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1279: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1309: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:1350: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:1474: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:1537: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:155: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1584: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1585: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1598: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1599: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1700: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1701: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1711: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1712: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1885: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:1886: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2125: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2126: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2316: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2317: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2362: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2363: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2394: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2395: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2426: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2427: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2458: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2459: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2497: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2498: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2536: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2537: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2725: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2726: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2788: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:2814: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:2856: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:2880: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:2928: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:2957: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2958: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2968: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:2969: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:3006: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:3072: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:361: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:362: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:416: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_conversation_search.py:585: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:586: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:640: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:707: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:732: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:771: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:80: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:81: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:840: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:841: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:867: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:896: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:930: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_conversation_search.py:93: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:94: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_conversation_search.py:964: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_core_agents.py:100: error: "TestAgentContexts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:102: error: "TestAgentContexts" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:102: error: "TestAgentContexts" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:104: error: "TestAgentContexts" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:107: error: "TestAgentContexts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:108: error: "TestAgentContexts" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:109: error: "TestAgentContexts" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:123: error: "TestAgentContexts" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:123: error: "TestAgentContexts" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:133: error: "TestAgentContexts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:138: error: "TestAgentContexts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:144: error: "TestAgentContexts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:150: error: "TestAgentContexts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:156: error: "TestAgentContexts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:160: error: "TestAgentContexts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:174: error: Item "None" of "list[Document] | None" has no attribute "__iter__" (not iterable)  [union-attr]
opencontractserver/tests/test_core_agents.py:179: error: Argument 1 to "len" has incompatible type "list[Document] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_core_agents.py:186: error: "TestAgentContexts" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:187: error: "TestAgentContexts" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:191: error: "TestAgentContexts" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:200: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:202: error: "TestCoreConversationManager" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:202: error: "TestCoreConversationManager" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:202: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:206: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:206: error: Item "None" of "Conversation | None" has no attribute "creator_id"  [union-attr]
opencontractserver/tests/test_core_agents.py:207: error: "TestCoreConversationManager" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:207: error: Item "None" of "Conversation | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_core_agents.py:212: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:212: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:214: error: "TestCoreConversationManager" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:214: error: "TestCoreConversationManager" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:214: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:216: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:223: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:225: error: "TestCoreConversationManager" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:225: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:229: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:229: error: Item "None" of "Conversation | None" has no attribute "creator_id"  [union-attr]
opencontractserver/tests/test_core_agents.py:230: error: "TestCoreConversationManager" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:230: error: Item "None" of "Conversation | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_core_agents.py:234: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:234: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:236: error: "TestCoreConversationManager" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:236: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:238: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:241: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:243: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:243: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:249: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:250: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:253: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:255: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:255: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:266: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:268: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:268: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:280: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:282: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:282: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:291: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:293: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:293: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:302: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:304: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:304: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:312: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:314: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:314: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:322: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:324: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:324: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:333: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:335: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:335: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:345: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:347: error: "TestCoreConversationManager" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:347: error: "TestCoreConversationManager" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:363: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:364: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:365: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:370: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:371: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:377: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:377: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:37: error: "type[TestCoreAgentComponentsSetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:380: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:385: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:387: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:391: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:394: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:396: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:396: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:399: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:403: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:406: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:407: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:409: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:419: error: "TestCoreAgentFactoriesDefaults" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:41: error: "type[TestCoreAgentComponentsSetup]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:422: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:422: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:425: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:425: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:431: error: "TestCoreAgentFactoriesDefaults" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:434: error: "TestCoreAgentFactoriesDefaults" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:434: error: "TestCoreAgentFactoriesDefaults" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:43: error: "type[TestCoreAgentComponentsSetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:49: error: "type[TestCoreAgentComponentsSetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:53: error: "type[TestCoreAgentComponentsSetup]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:53: error: "type[TestCoreAgentComponentsSetup]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:53: error: "type[TestCoreAgentComponentsSetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:55: error: "type[TestCoreAgentComponentsSetup]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_core_agents.py:57: error: "type[TestCoreAgentComponentsSetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:62: error: "type[TestCoreAgentComponentsSetup]" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:63: error: "type[TestCoreAgentComponentsSetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_agents.py:65: error: "type[TestCoreAgentComponentsSetup]" has no attribute "chat_message1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:664: error: Argument 1 to "complete_message" of "CoreConversationManager" has incompatible type "None"; expected "int"  [arg-type]
opencontractserver/tests/test_core_agents.py:66: error: "type[TestCoreAgentComponentsSetup]" has no attribute "conversation1"  [attr-defined]
opencontractserver/tests/test_core_agents.py:680: error: Argument 1 to "complete_message" of "CoreConversationManager" has incompatible type "None"; expected "int"  [arg-type]
opencontractserver/tests/test_core_agents.py:69: error: "type[TestCoreAgentComponentsSetup]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_core_tool_factory.py:70: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/test_corpus_action_execution.py:371: error: Incompatible type for "corpus_action" of "CorpusActionExecution" (got "CorpusAction | None", expected "CorpusAction | Combinable")  [misc]
opencontractserver/tests/test_corpus_action_execution.py:492: error: "QuerySet[CorpusActionExecution, CorpusActionExecution]" has no attribute "with_stats"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution.py:505: error: "QuerySet[CorpusActionExecution, CorpusActionExecution]" has no attribute "with_stats"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:100: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:103: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "execution_failed"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:104: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:105: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:106: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:115: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:121: error: Argument 2 to "CorpusActionExecutionAdmin" has incompatible type "None"; expected "AdminSite"  [arg-type]
opencontractserver/tests/test_corpus_action_execution_admin.py:135: error: "TestCorpusActionExecutionAdmin" has no attribute "execution_completed"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:160: error: "TestCorpusActionExecutionAdmin" has no attribute "execution_queued"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:166: error: "TestCorpusActionExecutionAdmin" has no attribute "execution_completed"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:172: error: "TestCorpusActionExecutionAdmin" has no attribute "execution_failed"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:178: error: "TestCorpusActionExecutionAdmin" has no attribute "execution_completed"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:179: error: "TestCorpusActionExecutionAdmin" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:186: error: "TestCorpusActionExecutionAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:203: error: "TestCorpusActionExecutionAdmin" has no attribute "execution_completed"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:204: error: "TestCorpusActionExecutionAdmin" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:257: error: "TestCorpusActionExecutionAdmin" has no attribute "execution_completed"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:264: error: "TestCorpusActionExecutionAdmin" has no attribute "execution_queued"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:296: error: "TestCorpusActionExecutionAdmin" has no attribute "execution_failed"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:37: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:44: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:46: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:50: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:52: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:54: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:54: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:54: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:57: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "fieldset"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:60: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:64: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:66: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:67: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "fieldset"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:69: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:75: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "execution_queued"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:76: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:77: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:78: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:83: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:86: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "execution_completed"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:87: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:88: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_action_execution_admin.py:89: error: "type[TestCorpusActionExecutionAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:104: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:159: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:198: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:218: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:218: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "CorpusAction"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:233: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:260: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:260: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "CorpusAction"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:261: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:261: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "CorpusAction"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:281: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:287: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:296: error: Dict entry 1 has incompatible type "str": "bool"; expected "str": "str"  [dict-item]
opencontractserver/tests/test_corpus_action_graphql.py:298: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:34: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:351: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:401: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:41: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:41: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Fieldset"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:443: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:482: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:513: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:547: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:570: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:570: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "AgentConfiguration"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:599: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:61: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:61: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "AgentConfiguration"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:664: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:670: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:670: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Fieldset"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:688: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:688: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "AgentConfiguration"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:700: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:700: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "CorpusAction"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:713: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:713: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "CorpusAction"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:726: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:743: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:759: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:775: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:796: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:812: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:829: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:852: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:852: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "AgentConfiguration"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:861: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:880: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:880: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "CorpusAction"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_action_graphql.py:887: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:903: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:919: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:935: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_graphql.py:952: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_action_template.py:207: error: "type[DefaultTemplatesMigrationTest]" has no attribute "_superuser"  [attr-defined]
opencontractserver/tests/test_corpus_action_template.py:236: error: Item "None" of "AgentConfiguration | None" has no attribute "is_active"  [union-attr]
opencontractserver/tests/test_corpus_action_template.py:280: error: Item "None" of "AgentConfiguration | None" has no attribute "system_instructions"  [union-attr]
opencontractserver/tests/test_corpus_annotations_query.py:103: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:108: error: "type[TestCorpusAnnotationsQuery]" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:109: error: "type[TestCorpusAnnotationsQuery]" has no attribute "user_label"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:110: error: "type[TestCorpusAnnotationsQuery]" has no attribute "doc_with_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:111: error: "type[TestCorpusAnnotationsQuery]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:113: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:118: error: "type[TestCorpusAnnotationsQuery]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:118: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:120: error: "type[TestCorpusAnnotationsQuery]" has no attribute "doc_with_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:120: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:123: error: "type[TestCorpusAnnotationsQuery]" has no attribute "doc_without_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:123: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:127: error: "type[TestCorpusAnnotationsQuery]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:127: error: "type[TestCorpusAnnotationsQuery]" has no attribute "viewer"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:129: error: "type[TestCorpusAnnotationsQuery]" has no attribute "doc_with_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:129: error: "type[TestCorpusAnnotationsQuery]" has no attribute "viewer"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:132: error: "type[TestCorpusAnnotationsQuery]" has no attribute "doc_without_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:132: error: "type[TestCorpusAnnotationsQuery]" has no attribute "viewer"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:138: error: "TestCorpusAnnotationsQuery" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:139: error: "TestCorpusAnnotationsQuery" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:142: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:143: error: "TestCorpusAnnotationsQuery" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:148: error: "TestCorpusAnnotationsQuery" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:149: error: "TestCorpusAnnotationsQuery" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:152: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:153: error: "TestCorpusAnnotationsQuery" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:158: error: "TestCorpusAnnotationsQuery" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:159: error: "TestCorpusAnnotationsQuery" has no attribute "viewer"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:163: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:164: error: "TestCorpusAnnotationsQuery" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:169: error: "TestCorpusAnnotationsQuery" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:170: error: "TestCorpusAnnotationsQuery" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:174: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:175: error: "TestCorpusAnnotationsQuery" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:180: error: "TestCorpusAnnotationsQuery" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:181: error: "TestCorpusAnnotationsQuery" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:185: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:186: error: "TestCorpusAnnotationsQuery" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:195: error: "TestCorpusAnnotationsQuery" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:204: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:205: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:206: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:210: error: "TestCorpusAnnotationsQuery" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:211: error: "TestCorpusAnnotationsQuery" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:215: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:221: error: "TestCorpusAnnotationsQuery" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:221: error: "TestCorpusAnnotationsQuery" has no attribute "doc_with_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:228: error: "TestCorpusAnnotationsQuery" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:229: error: "TestCorpusAnnotationsQuery" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:233: error: "TestCorpusAnnotationsQuery" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:235: error: "TestCorpusAnnotationsQuery" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:248: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:253: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "structural_set"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:254: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:256: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:257: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "structural_set"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:260: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:263: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:267: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:268: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:269: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "structural_set"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:273: error: "type[TestAnnotationQuerySetVisibleToUser]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:278: error: "TestAnnotationQuerySetVisibleToUser" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:281: error: "TestAnnotationQuerySetVisibleToUser" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:290: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:293: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:298: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:300: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:305: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "structural_set"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:306: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:308: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:309: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "structural_set"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:314: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:315: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:320: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:323: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:326: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:330: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:331: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:332: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "structural_set"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:336: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:338: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:339: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:33: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:340: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:341: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:343: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:348: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:348: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:350: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:350: error: "type[TestCorpusAnnotationsQueryEdgeCases]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:356: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:368: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:36: error: "type[TestCorpusAnnotationsQuery]" has no attribute "viewer"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:377: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:378: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:382: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:383: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:388: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:389: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:394: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:395: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:39: error: "type[TestCorpusAnnotationsQuery]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:400: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:401: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:406: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:407: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "user_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:416: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:416: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_annotations_query.py:421: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:434: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:434: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:439: error: "TestCorpusAnnotationsQueryEdgeCases" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:44: error: "type[TestCorpusAnnotationsQuery]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:46: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:50: error: "type[TestCorpusAnnotationsQuery]" has no attribute "structural_set"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:53: error: "type[TestCorpusAnnotationsQuery]" has no attribute "doc_with_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:55: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:56: error: "type[TestCorpusAnnotationsQuery]" has no attribute "structural_set"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:58: error: "type[TestCorpusAnnotationsQuery]" has no attribute "doc_without_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:60: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:65: error: "type[TestCorpusAnnotationsQuery]" has no attribute "doc_with_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:66: error: "type[TestCorpusAnnotationsQuery]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:71: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:74: error: "type[TestCorpusAnnotationsQuery]" has no attribute "doc_without_structural"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:75: error: "type[TestCorpusAnnotationsQuery]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:80: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:84: error: "type[TestCorpusAnnotationsQuery]" has no attribute "structural_label"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:87: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:89: error: "type[TestCorpusAnnotationsQuery]" has no attribute "user_label"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:92: error: "type[TestCorpusAnnotationsQuery]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:97: error: "type[TestCorpusAnnotationsQuery]" has no attribute "structural_annotation"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:98: error: "type[TestCorpusAnnotationsQuery]" has no attribute "structural_label"  [attr-defined]
opencontractserver/tests/test_corpus_annotations_query.py:99: error: "type[TestCorpusAnnotationsQuery]" has no attribute "structural_set"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:146: error: "CorpusCategory" has no attribute "corpuses"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:147: error: "CorpusCategory" has no attribute "corpuses"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:148: error: "CorpusCategory" has no attribute "corpuses"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:178: error: "CorpusCategory" has no attribute "corpuses"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:227: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:234: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:240: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:242: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "cat2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:248: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:250: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "cat3"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:256: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:260: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:262: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:265: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:265: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "cat2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:265: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:267: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "corpus2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:269: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:272: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "cat3"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:272: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "corpus2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:274: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "corpus3"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:276: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:279: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:279: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "cat3"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:279: error: "type[TestCorpusCategoryGraphQLQueries]" has no attribute "corpus3"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:285: error: "TestCorpusCategoryGraphQLQueries" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:307: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:348: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:371: error: "TestCorpusCategoryGraphQLQueries" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:388: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:419: error: "TestCorpusCategoryGraphQLQueries" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:435: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:453: error: "type[TestCorpusCategoryGraphQLMutations]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:460: error: "type[TestCorpusCategoryGraphQLMutations]" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:462: error: "type[TestCorpusCategoryGraphQLMutations]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:464: error: "type[TestCorpusCategoryGraphQLMutations]" has no attribute "cat2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:466: error: "type[TestCorpusCategoryGraphQLMutations]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:468: error: "type[TestCorpusCategoryGraphQLMutations]" has no attribute "cat3"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:470: error: "type[TestCorpusCategoryGraphQLMutations]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:477: error: "TestCorpusCategoryGraphQLMutations" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:482: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:483: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:495: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:520: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:521: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:535: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:560: error: "TestCorpusCategoryGraphQLMutations" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:561: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:562: error: "TestCorpusCategoryGraphQLMutations" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:566: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:567: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat3"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:579: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:600: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:601: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat3"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:602: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:607: error: "TestCorpusCategoryGraphQLMutations" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:608: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:608: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat2"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:609: error: "TestCorpusCategoryGraphQLMutations" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:622: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:642: error: "TestCorpusCategoryGraphQLMutations" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:643: error: "TestCorpusCategoryGraphQLMutations" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:646: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:657: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:673: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:690: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:709: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:721: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:746: error: "TestCorpusCategoryGraphQLMutations" has no attribute "cat1"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:751: error: "TestCorpusCategoryGraphQLMutations" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:752: error: "TestCorpusCategoryGraphQLMutations" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:766: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:791: error: "type[TestCorpusCategoryPermissions]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:795: error: "type[TestCorpusCategoryPermissions]" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:800: error: "type[TestCorpusCategoryPermissions]" has no attribute "category"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:802: error: "type[TestCorpusCategoryPermissions]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:805: error: "type[TestCorpusCategoryPermissions]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:807: error: "type[TestCorpusCategoryPermissions]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:809: error: "type[TestCorpusCategoryPermissions]" has no attribute "category"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:809: error: "type[TestCorpusCategoryPermissions]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:812: error: "type[TestCorpusCategoryPermissions]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:812: error: "type[TestCorpusCategoryPermissions]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:822: error: "TestCorpusCategoryPermissions" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:825: error: "TestCorpusCategoryPermissions" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:854: error: "TestCorpusCategoryPermissions" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:855: error: "TestCorpusCategoryPermissions" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:856: error: "TestCorpusCategoryPermissions" has no attribute "category"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:856: error: "TestCorpusCategoryPermissions" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:861: error: "TestCorpusCategoryPermissions" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:864: error: "TestCorpusCategoryPermissions" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:893: error: "TestCorpusCategoryPermissions" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_category.py:894: error: "TestCorpusCategoryPermissions" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:103: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:115: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:124: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:140: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:148: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:154: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:160: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:176: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:184: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:190: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:195: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:218: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:228: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:22: error: "type[TestCollectCorpusObjects]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:231: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:255: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:263: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:272: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:280: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:29: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:301: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:32: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:37: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:45: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:70: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:78: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:82: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_collector.py:90: error: "TestCollectCorpusObjects" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_description.py:127: error: Item "None" of "CorpusDescriptionRevision | None" has no attribute "version"  [union-attr]
opencontractserver/tests/test_corpus_document_actions.py:319: error: Item "None" of "Corpus | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_corpus_document_actions.py:343: error: Item "None" of "Corpus | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_corpus_document_actions.py:348: error: Item "None" of "Corpus | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_corpus_engagement_metrics.py:104: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:108: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:116: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:149: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:154: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:160: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:163: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:168: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:171: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:172: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:174: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "thread2"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:177: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:178: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:182: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "msg1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:183: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:186: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:188: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "msg2"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:189: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:192: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:196: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "msg3"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:197: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "thread2"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:200: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:205: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "msg1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:207: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:210: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "msg2"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:212: error: "type[TestCorpusEngagementMetricsCalculation]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:227: error: "TestCorpusEngagementMetricsCalculation" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:236: error: "TestCorpusEngagementMetricsCalculation" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:254: error: "TestCorpusEngagementMetricsCalculation" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:274: error: "TestCorpusEngagementMetricsCalculation" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:301: error: "TestCorpusEngagementMetricsCalculation" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:302: error: "TestCorpusEngagementMetricsCalculation" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:305: error: "TestCorpusEngagementMetricsCalculation" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:321: error: "TestCorpusEngagementMetricsCalculation" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:322: error: "TestCorpusEngagementMetricsCalculation" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:325: error: "TestCorpusEngagementMetricsCalculation" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:35: error: "type[TestCorpusEngagementMetricsModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:41: error: "type[TestCorpusEngagementMetricsModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:44: error: "type[TestCorpusEngagementMetricsModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:50: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:52: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:66: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:69: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:73: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:77: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:79: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_engagement_metrics.py:84: error: "TestCorpusEngagementMetricsModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_export.py:167: error: Item "None" of "OpenContractDocExport | None" has no attribute "keys"  [union-attr]
opencontractserver/tests/test_corpus_export.py:168: error: Item "None" of "OpenContractDocExport | None" has no attribute "keys"  [union-attr]
opencontractserver/tests/test_corpus_export.py:172: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:173: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:174: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:175: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:176: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:179: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:180: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:184: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:196: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:284: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:291: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:298: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:328: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:335: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export.py:44: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:1059: error: Argument 1 to "import_agent_config" has incompatible type "dict[str, str]"; expected "AgentConfigExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:1071: error: Argument "import_zip" to "_import_corpus" has incompatible type "None"; expected "ZipFile"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:1148: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:119: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:1262: error: Item "None" of "str | None" has no attribute "endswith"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:1560: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:158: error: Value of type "StructuralAnnotationSetExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export_import_v2.py:159: error: Value of type "StructuralAnnotationSetExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export_import_v2.py:160: error: Value of type "StructuralAnnotationSetExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export_import_v2.py:161: error: Value of type "StructuralAnnotationSetExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export_import_v2.py:162: error: Value of type "StructuralAnnotationSetExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export_import_v2.py:1724: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:1775: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:1912: error: Item "None" of "Conversation | None" has no attribute "created_at"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:1920: error: Item "None" of "ChatMessage | None" has no attribute "created_at"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:1975: error: Item "None" of "ChatMessage | None" has no attribute "parent_message"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:1976: error: Item "None" of "ChatMessage | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:1976: error: Item "None" of "ChatMessage | None" has no attribute "parent_message_id"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:1999: error: Item "None" of "Conversation | None" has no attribute "description"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:2000: error: Item "None" of "Conversation | None" has no attribute "is_locked"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:2001: error: Item "None" of "Conversation | None" has no attribute "is_pinned"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:2061: error: Item "None" of "DocumentPath | None" has no attribute "path"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:2062: error: Item "None" of "DocumentPath | None" has no attribute "version_number"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:2063: error: Item "None" of "DocumentPath | None" has no attribute "folder"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:2198: error: Item "None" of "DocumentPath | None" has no attribute "path"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:2200: error: Item "None" of "DocumentPath | None" has no attribute "folder"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:2222: error: Argument "annotation_filter_mode" to "build_label_lookups" has incompatible type "str"; expected "AnnotationFilterMode"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:2251: error: Argument "annotation_filter_mode" to "build_label_lookups" has incompatible type "str"; expected "AnnotationFilterMode"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:2349: error: Item "None" of "Conversation | None" has no attribute "chat_with_document"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:2350: error: Item "None" of "Conversation | None" has no attribute "chat_with_corpus"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:359: error: Argument 1 to "import_structural_annotation_set" has incompatible type "dict[str, object]"; expected "StructuralAnnotationSetExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:363: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "content_hash"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:364: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "structural_annotations"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:367: error: Argument 1 to "import_structural_annotation_set" has incompatible type "dict[str, object]"; expected "StructuralAnnotationSetExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:368: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:398: error: Argument 1 to "import_corpus_folders" has incompatible type "list[dict[str, object]]"; expected "list[CorpusFolderExport]"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:418: error: Argument 1 to "import_agent_config" has incompatible type "dict[str, str]"; expected "AgentConfigExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:446: error: Argument 2 to "import_md_description_revisions" has incompatible type "list[dict[str, object]]"; expected "list[DescriptionRevisionExport]"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:519: error: Item "None" of "Relationship | None" has no attribute "relationship_label"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:520: error: Item "None" of "Relationship | None" has no attribute "source_annotations"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:521: error: Item "None" of "Relationship | None" has no attribute "target_annotations"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:572: error: Item "None" of "Conversation | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:573: error: Item "None" of "Conversation | None" has no attribute "conversation_type"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:580: error: Item "None" of "ChatMessage | None" has no attribute "content"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:581: error: Item "None" of "ChatMessage | None" has no attribute "msg_type"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:588: error: Item "None" of "MessageVote | None" has no attribute "vote_type"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:613: error: Argument 1 to "import_structural_annotation_set" has incompatible type "dict[str, Sequence[Collection[str]]]"; expected "StructuralAnnotationSetExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:617: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "content_hash"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:709: error: Argument 1 to "import_structural_annotation_set" has incompatible type "dict[str, Sequence[Collection[str]]]"; expected "StructuralAnnotationSetExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:712: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "content_hash"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:775: error: Argument 1 to "import_structural_annotation_set" has incompatible type "dict[str, Sequence[Collection[str]]]"; expected "StructuralAnnotationSetExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:784: error: Item "None" of "Relationship | None" has no attribute "relationship_label"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:785: error: Item "None" of "Relationship | None" has no attribute "structural"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:788: error: Item "None" of "Relationship | None" has no attribute "source_annotations"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:789: error: Item "None" of "Relationship | None" has no attribute "target_annotations"  [union-attr]
opencontractserver/tests/test_corpus_export_import_v2.py:822: error: Argument 1 to "import_structural_annotation_set" has incompatible type "dict[str, Sequence[Collection[str]]]"; expected "StructuralAnnotationSetExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:915: error: Argument 1 to "import_structural_annotation_set" has incompatible type "dict[str, Sequence[Collection[str]]]"; expected "StructuralAnnotationSetExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:967: error: Need type annotation for "label_lookup" (hint: "label_lookup: dict[<type>, <type>] = ...")  [var-annotated]
opencontractserver/tests/test_corpus_export_import_v2.py:968: error: Argument 1 to "import_structural_annotation_set" has incompatible type "dict[str, object]"; expected "StructuralAnnotationSetExport"  [arg-type]
opencontractserver/tests/test_corpus_export_import_v2.py:995: error: Argument 1 to "import_corpus_folders" has incompatible type "list[dict[str, object]]"; expected "list[CorpusFolderExport]"  [arg-type]
opencontractserver/tests/test_corpus_export_with_analysis_filters.py:239: error: Argument "annotation_filter_mode" to "build_label_lookups" has incompatible type "str"; expected "AnnotationFilterMode"  [arg-type]
opencontractserver/tests/test_corpus_export_with_analysis_filters.py:249: error: Argument "annotation_filter_mode" to "build_label_lookups" has incompatible type "str"; expected "AnnotationFilterMode"  [arg-type]
opencontractserver/tests/test_corpus_export_with_analysis_filters.py:258: error: Argument "annotation_filter_mode" to "build_label_lookups" has incompatible type "str"; expected "AnnotationFilterMode"  [arg-type]
opencontractserver/tests/test_corpus_export_with_analysis_filters.py:280: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export_with_analysis_filters.py:297: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export_with_analysis_filters.py:313: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_corpus_export_with_analysis_filters.py:52: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_export_with_analysis_filters.py:72: error: Item "None" of "DocumentPath | None" has no attribute "document"  [union-attr]
opencontractserver/tests/test_corpus_folder_mutations.py:122: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:173: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:237: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:322: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:345: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:371: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:404: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:430: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:455: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:501: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:530: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:584: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:620: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folder_mutations.py:85: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folders.py:232: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_folders.py:236: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1024: error: Item "None" of "Relationship | None" has no attribute "source_annotations"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:1029: error: Item "None" of "Relationship | None" has no attribute "target_annotations"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:1036: error: Item "None" of "Relationship | None" has no attribute "relationship_label"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:1040: error: Item "None" of "AnnotationLabel | Any | None" has no attribute "text"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:1040: error: Item "None" of "Relationship | None" has no attribute "relationship_label"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:1056: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1088: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1140: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1180: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1208: error: Item "None" of "DocumentPath | None" has no attribute "folder"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:1224: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1259: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1292: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1314: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1345: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1352: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1381: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1416: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1477: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1508: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1569: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1604: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1608: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1631: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1640: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1694: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1711: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1753: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1776: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1823: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1846: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1888: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1895: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1913: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1953: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1960: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1979: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:1988: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2022: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2029: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2048: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2057: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2096: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2112: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2154: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2170: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2198: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2199: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2218: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2271: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2325: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2389: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2395: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2441: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2475: error: Item "None" of "Datacell | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:2480: error: Item "None" of "Datacell | None" has no attribute "data_definition"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:2493: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2545: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2582: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2586: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2638: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:265: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2677: error: Item "None" of "Datacell | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:2686: error: Item "None" of "Datacell | None" has no attribute "pk"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:2696: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2705: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2736: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2739: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2785: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2813: error: Item "None" of "Datacell | None" has no attribute "approved_by"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:2817: error: Item "None" of "Datacell | None" has no attribute "rejected_by"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:2829: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2835: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2888: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2922: error: Item "None" of "Datacell | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:2956: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:295: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:2969: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:3005: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:3016: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:3063: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:3072: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:3095: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:332: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:346: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:365: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:365: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Relationship"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:413: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:449: error: Argument 1 to "from_corpus" of "CorpusSnapshot" has incompatible type "Corpus | None"; expected "Corpus"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:481: error: Argument 1 to "from_corpus" of "CorpusSnapshot" has incompatible type "Corpus | None"; expected "Corpus"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:509: error: Argument 1 to "from_corpus" of "CorpusSnapshot" has incompatible type "Corpus | None"; expected "Corpus"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:537: error: Item "None" of "Corpus | None" has no attribute "parent_id"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:542: error: Item "None" of "Corpus | None" has no attribute "parent"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:580: error: Argument 1 to "from_corpus" of "CorpusSnapshot" has incompatible type "Corpus | None"; expected "Corpus"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:581: error: Argument 1 to "append" of "list" has incompatible type "Corpus | None"; expected "Corpus"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:583: error: Incompatible types in assignment (expression has type "Corpus | None", variable has type "Corpus")  [assignment]
opencontractserver/tests/test_corpus_fork_round_trip.py:678: error: Argument 1 to "append" of "list" has incompatible type "Corpus | None"; expected "Corpus"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:679: error: Incompatible types in assignment (expression has type "Corpus | None", variable has type "Corpus")  [assignment]
opencontractserver/tests/test_corpus_fork_round_trip.py:749: error: Incompatible types in assignment (expression has type "Corpus | None", variable has type "Corpus")  [assignment]
opencontractserver/tests/test_corpus_fork_round_trip.py:770: error: Item "None" of "Corpus | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:773: error: Item "None" of "Corpus | None" has no attribute "get_documents"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:777: error: Argument 1 to "_execute_fork" of "CorpusForkRoundTripTestCase" has incompatible type "Corpus | None"; expected "Corpus"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:780: error: Item "None" of "Corpus | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:785: error: Item "None" of "Corpus | None" has no attribute "get_documents"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:793: error: Argument 1 to "_execute_fork" of "CorpusForkRoundTripTestCase" has incompatible type "Corpus | None"; expected "Corpus"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:796: error: Item "None" of "Corpus | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:808: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:813: error: Argument 1 to "from_corpus" of "CorpusSnapshot" has incompatible type "Corpus | None"; expected "Corpus"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:817: error: Item "None" of "Corpus | None" has no attribute "parent_id"  [union-attr]
opencontractserver/tests/test_corpus_fork_round_trip.py:922: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_fork_round_trip.py:990: error: Need type annotation for "folder_ids" (hint: "folder_ids: list[<type>] = ...")  [var-annotated]
opencontractserver/tests/test_corpus_fork_round_trip.py:999: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_forking.py:228: error: Need type annotation for "forked_by_source" (hint: "forked_by_source: dict[<type>, <type>] = ...")  [var-annotated]
opencontractserver/tests/test_corpus_forking.py:245: error: Item "None" of "Any | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:248: error: Item "None" of "Any | None" has no attribute "source_document_id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:251: error: Item "None" of "Any | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:255: error: Item "None" of "Any | None" has no attribute "creator_id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:263: error: Item "None" of "Any | None" has no attribute "pdf_file"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:269: error: Item "None" of "Any | None" has no attribute "txt_extract_file"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:275: error: Item "None" of "Any | None" has no attribute "pawls_parse_file"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:302: error: Need type annotation for "original_by_key" (hint: "original_by_key: dict[<type>, <type>] = ...")  [var-annotated]
opencontractserver/tests/test_corpus_forking.py:313: error: Need type annotation for "forked_by_key" (hint: "forked_by_key: dict[<type>, <type>] = ...")  [var-annotated]
opencontractserver/tests/test_corpus_forking.py:334: error: Item "None" of "Any | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:337: error: Item "None" of "Any | None" has no attribute "page"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:338: error: Item "None" of "Any | None" has no attribute "raw_text"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:339: error: Item "None" of "Any | None" has no attribute "json"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:340: error: Item "None" of "Any | None" has no attribute "annotation_type"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:344: error: Item "None" of "Any | None" has no attribute "creator_id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:354: error: Item "None" of "Any | None" has no attribute "annotation_label_id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:361: error: Item "None" of "Any | None" has no attribute "corpus_id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:435: error: Need type annotation for "forked_rel_by_key" (hint: "forked_rel_by_key: dict[<type>, <type>] = ...")  [var-annotated]
opencontractserver/tests/test_corpus_forking.py:486: error: Item "None" of "Relationship | None" has no attribute "corpus_id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:492: error: Item "None" of "Relationship | None" has no attribute "relationship_label_id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:498: error: Item "None" of "Relationship | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_corpus_forking.py:53: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_import.py:129: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_import.py:158: error: Incompatible return value type (got "Document | None", expected "Document")  [return-value]
opencontractserver/tests/test_corpus_import.py:173: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_import.py:173: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "AnnotationLabel"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_corpus_import.py:422: error: Argument "relationships_data" to "import_relationships" has incompatible type "list[dict[str, object]]"; expected "list[OpenContractsRelationshipPythonType]"  [arg-type]
opencontractserver/tests/test_corpus_import.py:424: error: Argument "annotation_id_map" to "import_relationships" has incompatible type "dict[str, Any]"; expected "dict[str | int, int]"  [arg-type]
opencontractserver/tests/test_corpus_import.py:437: error: Item "None" of "Annotation | None" has no attribute "pk"  [union-attr]
opencontractserver/tests/test_corpus_import.py:438: error: Item "None" of "Annotation | None" has no attribute "pk"  [union-attr]
opencontractserver/tests/test_corpus_import.py:485: error: Argument "relationships_data" to "import_relationships" has incompatible type "list[dict[str, object]]"; expected "list[OpenContractsRelationshipPythonType]"  [arg-type]
opencontractserver/tests/test_corpus_import.py:487: error: Argument "annotation_id_map" to "import_relationships" has incompatible type "dict[str, Any]"; expected "dict[str | int, int]"  [arg-type]
opencontractserver/tests/test_corpus_import.py:526: error: Argument "relationships_data" to "import_relationships" has incompatible type "list[dict[str, object]]"; expected "list[OpenContractsRelationshipPythonType]"  [arg-type]
opencontractserver/tests/test_corpus_import.py:528: error: Argument "annotation_id_map" to "import_relationships" has incompatible type "dict[str, Any]"; expected "dict[str | int, int]"  [arg-type]
opencontractserver/tests/test_corpus_license.py:114: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:127: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:154: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_license.py:162: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:176: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:192: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:207: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:229: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:242: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:270: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_license.py:279: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:295: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:321: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:341: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_license.py:347: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:372: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_license.py:382: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:413: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_corpus_license.py:422: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:448: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:462: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:82: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_license.py:97: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:103: error: "TestCorpusDocumentCountField" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:115: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:128: error: "TestCorpusDocumentCountField" has no attribute "empty_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:140: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:166: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:189: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:196: error: "type[TestCorpusAnnotationCountField]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:199: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:203: error: "type[TestCorpusAnnotationCountField]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:205: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:210: error: "type[TestCorpusAnnotationCountField]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:210: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:211: error: "type[TestCorpusAnnotationCountField]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:211: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:212: error: "type[TestCorpusAnnotationCountField]" has no attribute "doc3"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:212: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:215: error: "type[TestCorpusAnnotationCountField]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:216: error: "type[TestCorpusAnnotationCountField]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:221: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:224: error: "type[TestCorpusAnnotationCountField]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:225: error: "type[TestCorpusAnnotationCountField]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:230: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:234: error: "type[TestCorpusAnnotationCountField]" has no attribute "doc3"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:235: error: "type[TestCorpusAnnotationCountField]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:240: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:246: error: "type[TestCorpusAnnotationCountField]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:247: error: "type[TestCorpusAnnotationCountField]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:248: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:254: error: "type[TestCorpusAnnotationCountField]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:255: error: "type[TestCorpusAnnotationCountField]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:256: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:262: error: "type[TestCorpusAnnotationCountField]" has no attribute "doc3"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:263: error: "type[TestCorpusAnnotationCountField]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:264: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:270: error: "type[TestCorpusAnnotationCountField]" has no attribute "empty_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:272: error: "type[TestCorpusAnnotationCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:280: error: "TestCorpusAnnotationCountField" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:285: error: "TestCorpusAnnotationCountField" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:297: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:30: error: "type[TestCorpusDocumentCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:310: error: "TestCorpusAnnotationCountField" has no attribute "empty_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:322: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:348: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:37: error: "type[TestCorpusDocumentCountField]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:382: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:39: error: "type[TestCorpusDocumentCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:402: error: "type[TestLabelSetCountOptimization]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:409: error: "type[TestLabelSetCountOptimization]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:411: error: "type[TestLabelSetCountOptimization]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:415: error: "type[TestLabelSetCountOptimization]" has no attribute "doc_labels"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:420: error: "type[TestLabelSetCountOptimization]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:422: error: "type[TestLabelSetCountOptimization]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:423: error: "type[TestLabelSetCountOptimization]" has no attribute "doc_labels"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:425: error: "type[TestLabelSetCountOptimization]" has no attribute "span_labels"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:430: error: "type[TestLabelSetCountOptimization]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:432: error: "type[TestLabelSetCountOptimization]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:433: error: "type[TestLabelSetCountOptimization]" has no attribute "span_labels"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:435: error: "type[TestLabelSetCountOptimization]" has no attribute "token_labels"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:440: error: "type[TestLabelSetCountOptimization]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:442: error: "type[TestLabelSetCountOptimization]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:443: error: "type[TestLabelSetCountOptimization]" has no attribute "token_labels"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:446: error: "type[TestLabelSetCountOptimization]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:448: error: "type[TestLabelSetCountOptimization]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:44: error: "type[TestCorpusDocumentCountField]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:450: error: "type[TestLabelSetCountOptimization]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:457: error: "TestLabelSetCountOptimization" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:46: error: "type[TestCorpusDocumentCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:482: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:48: error: "type[TestCorpusDocumentCountField]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:499: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_corpus_query_optimization.py:501: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_corpus_query_optimization.py:50: error: "type[TestCorpusDocumentCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:513: error: "type[TestCorpusBySlugsCounts]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:519: error: "type[TestCorpusBySlugsCounts]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:521: error: "type[TestCorpusBySlugsCounts]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:525: error: "type[TestCorpusBySlugsCounts]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:525: error: "type[TestCorpusBySlugsCounts]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:526: error: "type[TestCorpusBySlugsCounts]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:526: error: "type[TestCorpusBySlugsCounts]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:529: error: "type[TestCorpusBySlugsCounts]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:52: error: "type[TestCorpusDocumentCountField]" has no attribute "doc3"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:530: error: "type[TestCorpusBySlugsCounts]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:535: error: "type[TestCorpusBySlugsCounts]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:538: error: "type[TestCorpusBySlugsCounts]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:539: error: "type[TestCorpusBySlugsCounts]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:544: error: "type[TestCorpusBySlugsCounts]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:54: error: "type[TestCorpusDocumentCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:550: error: "type[TestCorpusBySlugsCounts]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:554: error: "type[TestCorpusBySlugsCounts]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:556: error: "type[TestCorpusBySlugsCounts]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:564: error: "TestCorpusBySlugsCounts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:578: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:581: error: "TestCorpusBySlugsCounts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:582: error: "TestCorpusBySlugsCounts" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:59: error: "type[TestCorpusDocumentCountField]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:602: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:605: error: "TestCorpusBySlugsCounts" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:606: error: "TestCorpusBySlugsCounts" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:60: error: "type[TestCorpusDocumentCountField]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:626: error: "type[TestCorpusQueryEfficiency]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:633: error: "type[TestCorpusQueryEfficiency]" has no attribute "corpuses"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:637: error: "type[TestCorpusQueryEfficiency]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:640: error: "type[TestCorpusQueryEfficiency]" has no attribute "corpuses"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:646: error: "type[TestCorpusQueryEfficiency]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:655: error: "type[TestCorpusQueryEfficiency]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:65: error: "type[TestCorpusDocumentCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:662: error: "type[TestCorpusQueryEfficiency]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:668: error: "type[TestCorpusQueryEfficiency]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:677: error: "TestCorpusQueryEfficiency" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:68: error: "type[TestCorpusDocumentCountField]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:69: error: "type[TestCorpusDocumentCountField]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:703: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:717: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:74: error: "type[TestCorpusDocumentCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:78: error: "type[TestCorpusDocumentCountField]" has no attribute "doc3"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:79: error: "type[TestCorpusDocumentCountField]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:84: error: "type[TestCorpusDocumentCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:88: error: "type[TestCorpusDocumentCountField]" has no attribute "empty_corpus"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:90: error: "type[TestCorpusDocumentCountField]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_corpus_query_optimization.py:98: error: "TestCorpusDocumentCountField" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_datacell_mutations.py:119: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_datacell_mutations.py:74: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_datacell_mutations.py:97: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:103: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:107: error: "type[TestCoreAnnotationVectorStore]" has no attribute "label_important"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:109: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:111: error: "type[TestCoreAnnotationVectorStore]" has no attribute "label_minor"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:113: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:117: error: "type[TestCoreAnnotationVectorStore]" has no attribute "anno1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:118: error: "type[TestCoreAnnotationVectorStore]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:119: error: "type[TestCoreAnnotationVectorStore]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:120: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:122: error: "type[TestCoreAnnotationVectorStore]" has no attribute "label_important"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:125: error: "type[TestCoreAnnotationVectorStore]" has no attribute "anno2"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:126: error: "type[TestCoreAnnotationVectorStore]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:127: error: "type[TestCoreAnnotationVectorStore]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:128: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:130: error: "type[TestCoreAnnotationVectorStore]" has no attribute "label_minor"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:133: error: "type[TestCoreAnnotationVectorStore]" has no attribute "anno3"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:134: error: "type[TestCoreAnnotationVectorStore]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:135: error: "type[TestCoreAnnotationVectorStore]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:136: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:138: error: "type[TestCoreAnnotationVectorStore]" has no attribute "label_important"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:141: error: "type[TestCoreAnnotationVectorStore]" has no attribute "anno4"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:142: error: "type[TestCoreAnnotationVectorStore]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:143: error: "type[TestCoreAnnotationVectorStore]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:144: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:154: error: "type[TestCoreAnnotationVectorStore]" has no attribute "anno1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:158: error: "type[TestCoreAnnotationVectorStore]" has no attribute "anno2"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:162: error: "type[TestCoreAnnotationVectorStore]" has no attribute "anno3"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:173: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:174: error: "TestCoreAnnotationVectorStore" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:206: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:207: error: "TestCoreAnnotationVectorStore" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:208: error: "TestCoreAnnotationVectorStore" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:218: error: Unsupported right operand type for in ("str | None")  [operator]
opencontractserver/tests/test_django_annotation_vector_store.py:219: error: Unsupported right operand type for in ("str | None")  [operator]
opencontractserver/tests/test_django_annotation_vector_store.py:226: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:227: error: "TestCoreAnnotationVectorStore" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:237: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_django_annotation_vector_store.py:252: error: "TestCoreAnnotationVectorStore" has no attribute "anno4"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:256: error: "TestCoreAnnotationVectorStore" has no attribute "anno1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:257: error: "TestCoreAnnotationVectorStore" has no attribute "anno2"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:258: error: "TestCoreAnnotationVectorStore" has no attribute "anno3"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:290: error: "TestCoreAnnotationVectorStore" has no attribute "anno4"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:310: error: Unsupported right operand type for in ("str | None")  [operator]
opencontractserver/tests/test_django_annotation_vector_store.py:311: error: Unsupported right operand type for in ("str | None")  [operator]
opencontractserver/tests/test_django_annotation_vector_store.py:344: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:350: error: "TestCoreAnnotationVectorStore" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:351: error: "TestCoreAnnotationVectorStore" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:352: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:354: error: "TestCoreAnnotationVectorStore" has no attribute "label_important"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:360: error: "TestCoreAnnotationVectorStore" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:362: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:364: error: "TestCoreAnnotationVectorStore" has no attribute "label_important"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:385: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:386: error: "TestCoreAnnotationVectorStore" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:431: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:436: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:455: error: "TestCoreAnnotationVectorStore" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:456: error: "TestCoreAnnotationVectorStore" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:464: error: "TestCoreAnnotationVectorStore" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:465: error: "TestCoreAnnotationVectorStore" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:62: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:68: error: "type[TestCoreAnnotationVectorStore]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:70: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:74: error: "type[TestCoreAnnotationVectorStore]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:76: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:80: error: "type[TestCoreAnnotationVectorStore]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:82: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:88: error: "type[TestCoreAnnotationVectorStore]" has no attribute "doc1"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:89: error: "type[TestCoreAnnotationVectorStore]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:94: error: "type[TestCoreAnnotationVectorStore]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:97: error: "type[TestCoreAnnotationVectorStore]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_django_annotation_vector_store.py:98: error: "type[TestCoreAnnotationVectorStore]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_doc_parser_docling_rest.py:127: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docling_rest.py:128: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docling_rest.py:129: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docling_rest.py:132: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "OpenContractDocExport | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_doc_parser_docling_rest.py:133: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docling_rest.py:468: error: Argument "bounds" to "_find_images_in_bounds" of "DoclingParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_docling_rest.py:496: error: Argument "bounds" to "_find_images_in_bounds" of "DoclingParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_docling_rest.py:510: error: Argument "bounds" to "_find_images_in_bounds" of "DoclingParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_docling_rest.py:659: error: Value of type "object" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docling_rest.py:709: error: Value of type "object" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docling_rest.py:802: error: Argument "bounds" to "_find_images_in_bounds" of "DoclingParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_docling_rest.py:804: error: Argument "pawls_pages" to "_find_images_in_bounds" of "DoclingParser" has incompatible type "list[str]"; expected "list[dict[str, Any]]"  [arg-type]
opencontractserver/tests/test_doc_parser_docling_rest.py:816: error: Argument "bounds" to "_find_images_in_bounds" of "DoclingParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_docling_rest.py:833: error: Argument "bounds" to "_find_images_in_bounds" of "DoclingParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_docling_rest.py:873: error: Value of type "object" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docling_rest.py:8: error: Library stubs not installed for "requests.exceptions"  [import-untyped]
opencontractserver/tests/test_doc_parser_docxodus.py:10: error: Library stubs not installed for "requests.exceptions"  [import-untyped]
opencontractserver/tests/test_doc_parser_docxodus.py:129: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docxodus.py:130: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docxodus.py:131: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docxodus.py:133: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_doc_parser_docxodus.py:291: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_doc_parser_docxodus.py:292: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_doc_parser_docxodus.py:322: error: "None" object is not iterable  [misc]
opencontractserver/tests/test_doc_parser_docxodus.py:343: error: "None" object is not iterable  [misc]
opencontractserver/tests/test_doc_parser_docxodus.py:356: error: Incompatible types in assignment (expression has type "str | None", variable has type "tuple[bytes, str] | None")  [assignment]
opencontractserver/tests/test_doc_parser_llamaparse.py:1094: error: Argument "bounds" to "find_image_tokens_in_bounds" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:1114: error: Argument "bounds" to "find_image_tokens_in_bounds" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:1127: error: Argument "bounds" to "find_image_tokens_in_bounds" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:1146: error: Argument "bounds" to "find_image_tokens_in_bounds" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:1169: error: Argument "bounds" to "_create_annotation" of "LlamaParseParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:1170: error: Argument "token_refs" to "_create_annotation" of "LlamaParseParser" has incompatible type "list[dict[str, int]]"; expected "list[TokenIdPythonType] | None"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:1194: error: Argument "bounds" to "_create_annotation" of "LlamaParseParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:1195: error: Argument "token_refs" to "_create_annotation" of "LlamaParseParser" has incompatible type "list[dict[str, int]]"; expected "list[TokenIdPythonType] | None"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:1214: error: Argument "bounds" to "_create_annotation" of "LlamaParseParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:506: error: Argument "bbox" to "_create_pawls_tokens_from_bbox" of "LlamaParseParser" has incompatible type "list[float]"; expected "dict[str, Any]"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:614: error: Argument "bounds" to "_create_annotation" of "LlamaParseParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:628: error: TypedDict "CompactAnnotationJsonType" has no key "0"  [typeddict-item]
opencontractserver/tests/test_doc_parser_llamaparse.py:628: error: TypedDict "TextSpanData" has no key "0"  [typeddict-item]
opencontractserver/tests/test_doc_parser_llamaparse.py:648: error: Argument "bounds" to "_create_annotation" of "LlamaParseParser" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:649: error: Argument "token_refs" to "_create_annotation" of "LlamaParseParser" has incompatible type "list[dict[str, int]]"; expected "list[TokenIdPythonType] | None"  [arg-type]
opencontractserver/tests/test_doc_parser_llamaparse.py:653: error: TypedDict "CompactAnnotationJsonType" has no key "0"  [typeddict-item]
opencontractserver/tests/test_doc_parser_llamaparse.py:653: error: TypedDict "TextSpanData" has no key "0"  [typeddict-item]
opencontractserver/tests/test_doc_tasks.py:218: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_doc_tasks.py:223: error: Item "None" of "Any | None" has no attribute "__iter__" (not iterable)  [union-attr]
opencontractserver/tests/test_doc_tasks.py:232: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_document_admin.py:112: error: "TestDocumentAdmin" has no attribute "document2"  [attr-defined]
opencontractserver/tests/test_document_admin.py:136: error: "TestDocumentAdmin" has no attribute "document2"  [attr-defined]
opencontractserver/tests/test_document_admin.py:141: error: "TestDocumentAdmin" has no attribute "document2"  [attr-defined]
opencontractserver/tests/test_document_admin.py:172: error: "TestDocumentAdmin" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_document_admin.py:173: error: "TestDocumentAdmin" has no attribute "document2"  [attr-defined]
opencontractserver/tests/test_document_admin.py:199: error: "TestDocumentAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:202: error: "TestDocumentAdmin" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_admin.py:203: error: "TestDocumentAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:235: error: "TestDocumentAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:238: error: "TestDocumentAdmin" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_admin.py:239: error: "TestDocumentAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:246: error: "TestDocumentAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:252: error: "TestDocumentAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:258: error: "TestDocumentAdmin" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:36: error: "type[TestDocumentAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:43: error: "type[TestDocumentAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_admin.py:43: error: "type[TestDocumentAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:48: error: "type[TestDocumentAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:51: error: "type[TestDocumentAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_admin.py:51: error: "type[TestDocumentAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_document_admin.py:52: error: "type[TestDocumentAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:55: error: "type[TestDocumentAdmin]" has no attribute "embedding_384"  [attr-defined]
opencontractserver/tests/test_document_admin.py:56: error: "type[TestDocumentAdmin]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_document_admin.py:60: error: "type[TestDocumentAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:67: error: "type[TestDocumentAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:70: error: "type[TestDocumentAdmin]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_admin.py:70: error: "type[TestDocumentAdmin]" has no attribute "document2"  [attr-defined]
opencontractserver/tests/test_document_admin.py:71: error: "type[TestDocumentAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:74: error: "type[TestDocumentAdmin]" has no attribute "embedding2_384"  [attr-defined]
opencontractserver/tests/test_document_admin.py:75: error: "type[TestDocumentAdmin]" has no attribute "document2"  [attr-defined]
opencontractserver/tests/test_document_admin.py:77: error: "type[TestDocumentAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_admin.py:80: error: "type[TestDocumentAdmin]" has no attribute "embedding2_768"  [attr-defined]
opencontractserver/tests/test_document_admin.py:81: error: "type[TestDocumentAdmin]" has no attribute "document2"  [attr-defined]
opencontractserver/tests/test_document_admin.py:83: error: "type[TestDocumentAdmin]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_document_analysis_row.py:146: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_analysis_row.py:146: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "DocumentAnalysisRow"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_document_analysis_row.py:163: error: Argument 1 to "get_users_permissions_for_obj" has incompatible type "User"; expected "type[User?]"  [arg-type]
opencontractserver/tests/test_document_analysis_row.py:163: error: Argument 2 to "get_users_permissions_for_obj" has incompatible type "DocumentAnalysisRow"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_document_analysis_row.py:168: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_analysis_row.py:169: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "DocumentAnalysisRow"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_document_analysis_row.py:197: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_analysis_row.py:197: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "DocumentAnalysisRow"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:118: error: Argument 1 to "create_document_index" has incompatible type "list[dict[str, object]]"; expected "list[IndexEntryItem]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:119: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:120: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:121: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:141: error: Argument 1 to "create_document_index" has incompatible type "list[dict[str, object]]"; expected "list[IndexEntryItem]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:142: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:143: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:144: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:158: error: Argument 1 to "create_document_index" has incompatible type "list[dict[str, object]]"; expected "list[IndexEntryItem]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:159: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:160: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:161: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:175: error: Argument 1 to "create_document_index" has incompatible type "list[dict[str, object]]"; expected "list[IndexEntryItem]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:176: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:177: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:178: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:197: error: Argument 1 to "create_document_index" has incompatible type "list[dict[str, object]]"; expected "list[IndexEntryItem]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:198: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:199: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:200: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:209: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:210: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:215: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:219: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:221: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:227: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:232: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:232: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:237: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:238: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:244: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:249: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:249: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:254: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:255: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:275: error: Argument 1 to "create_document_index" has incompatible type "list[dict[str, object]]"; expected "list[IndexEntryItem]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:276: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:277: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:278: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:290: error: "type[TestCreateDocumentIndexText]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:291: error: "type[TestCreateDocumentIndexText]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:291: error: "type[TestCreateDocumentIndexText]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:294: error: "type[TestCreateDocumentIndexText]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:295: error: "type[TestCreateDocumentIndexText]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:300: error: "type[TestCreateDocumentIndexText]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:303: error: "type[TestCreateDocumentIndexText]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:304: error: "type[TestCreateDocumentIndexText]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:304: error: "type[TestCreateDocumentIndexText]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:304: error: "type[TestCreateDocumentIndexText]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:307: error: "TestCreateDocumentIndexText" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:308: error: "TestCreateDocumentIndexText" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:309: error: "TestCreateDocumentIndexText" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:310: error: "TestCreateDocumentIndexText" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:311: error: "TestCreateDocumentIndexText" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:326: error: Argument 1 to "create_document_index" has incompatible type "list[dict[str, object]]"; expected "list[IndexEntryItem]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:327: error: "TestCreateDocumentIndexText" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:328: error: "TestCreateDocumentIndexText" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:329: error: "TestCreateDocumentIndexText" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:33: error: "type[TestCreateDocumentIndexPDF]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:34: error: "type[TestCreateDocumentIndexPDF]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:34: error: "type[TestCreateDocumentIndexPDF]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:361: error: Argument 1 to "create_document_index" has incompatible type "list[dict[str, object]]"; expected "list[IndexEntryItem]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:362: error: "TestCreateDocumentIndexText" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:363: error: "TestCreateDocumentIndexText" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:364: error: "TestCreateDocumentIndexText" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:376: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:377: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:377: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:381: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:382: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:388: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:391: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:392: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:392: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:392: error: "type[TestUpdateAnnotationLongDescription]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:395: error: "TestUpdateAnnotationLongDescription" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:396: error: "TestUpdateAnnotationLongDescription" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:397: error: "TestUpdateAnnotationLongDescription" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:398: error: "TestUpdateAnnotationLongDescription" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:399: error: "TestUpdateAnnotationLongDescription" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:39: error: "type[TestCreateDocumentIndexPDF]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:40: error: "type[TestCreateDocumentIndexPDF]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:414: error: "TestUpdateAnnotationLongDescription" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:415: error: "TestUpdateAnnotationLongDescription" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:416: error: "TestUpdateAnnotationLongDescription" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:442: error: "TestUpdateAnnotationLongDescription" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:443: error: "TestUpdateAnnotationLongDescription" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:444: error: "TestUpdateAnnotationLongDescription" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:463: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:464: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:464: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:467: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:468: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:46: error: "type[TestCreateDocumentIndexPDF]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:473: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:476: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:477: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:477: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:477: error: "type[TestLongDescriptionExportImportRoundTrip]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:480: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:481: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:482: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:483: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:484: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:49: error: "type[TestCreateDocumentIndexPDF]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:501: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:502: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:503: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:50: error: "type[TestCreateDocumentIndexPDF]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:50: error: "type[TestCreateDocumentIndexPDF]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:50: error: "type[TestCreateDocumentIndexPDF]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:532: error: List item 0 has incompatible type "dict[str, Any]"; expected "OpenContractsAnnotationPythonType"  [list-item]
opencontractserver/tests/test_document_index_tool.py:533: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:534: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:537: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:53: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:54: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:55: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:560: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:561: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:562: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:56: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:57: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:589: error: List item 0 has incompatible type "dict[str, Any]"; expected "OpenContractsAnnotationPythonType"  [list-item]
opencontractserver/tests/test_document_index_tool.py:590: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:591: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:594: error: "TestLongDescriptionExportImportRoundTrip" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:77: error: Argument 1 to "create_document_index" has incompatible type "list[dict[str, object]]"; expected "list[IndexEntryItem]"  [arg-type]
opencontractserver/tests/test_document_index_tool.py:78: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:79: error: "TestCreateDocumentIndexPDF" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:80: error: "TestCreateDocumentIndexPDF" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_index_tool.py:88: error: "TestCreateDocumentIndexPDF" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_document_mutations.py:140: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_mutations.py:188: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_mutations.py:206: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_mutations.py:230: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_mutations.py:247: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_mutations.py:262: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_mutations.py:278: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_mutations.py:330: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_mutations.py:341: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_mutations.py:351: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_mutations.py:88: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_path_migration.py:444: error: "MockContext" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_document_path_migration.py:446: error: "MockContext" has no attribute "context"  [attr-defined]
opencontractserver/tests/test_document_queries.py:115: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_queries.py:72: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_relationship_mutations.py:1081: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1083: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1086: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1136: error: Item "None" of "Any | None" has no attribute "relationship_type"  [union-attr]
opencontractserver/tests/test_document_relationship_mutations.py:118: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:121: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1236: error: Item "None" of "DocumentRelationship | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_document_relationship_mutations.py:123: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:127: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:130: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:133: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1408: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1410: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1413: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1418: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1421: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1424: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1534: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1537: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1556: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:1559: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:374: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:496: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:499: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:501: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:506: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:509: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:512: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:693: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:696: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:698: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:879: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:882: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_mutations.py:884: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:133: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:136: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:138: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:143: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:146: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:149: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:312: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:315: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:317: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:345: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:348: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:351: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:438: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:441: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:443: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:448: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:451: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:598: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:601: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:604: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:762: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:765: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationship_permissions.py:768: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_relationships.py:133: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_relationships.py:174: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_relationships.py:209: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_uploads.py:108: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_uploads.py:197: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_uploads.py:205: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_uploads.py:232: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_uploads.py:234: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_uploads.py:261: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_uploads.py:263: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning.py:1500: error: Argument 1 to "get_content_history" has incompatible type "Document | None"; expected "Document"  [arg-type]
opencontractserver/tests/test_document_versioning.py:1554: error: Item "None" of "str | None" has no attribute "endswith"  [union-attr]
opencontractserver/tests/test_document_versioning.py:1580: error: Item "None" of "str | None" has no attribute "endswith"  [union-attr]
opencontractserver/tests/test_document_versioning.py:1643: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_document_versioning.py:1660: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_document_versioning.py:1764: error: Item "None" of "str | None" has no attribute "endswith"  [union-attr]
opencontractserver/tests/test_document_versioning_graphql.py:1018: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1028: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1037: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1046: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1069: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1095: error: Item "None" of "Document | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_document_versioning_graphql.py:1111: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1135: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1159: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:117: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1180: error: Item "None" of "DocumentPath | None" has no attribute "version_number"  [union-attr]
opencontractserver/tests/test_document_versioning_graphql.py:1181: error: Item "None" of "DocumentPath | None" has no attribute "parent"  [union-attr]
opencontractserver/tests/test_document_versioning_graphql.py:1197: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1235: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1247: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1259: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1270: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1293: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1318: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1341: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1362: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:137: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1402: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1425: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1462: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1471: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1480: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1505: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1537: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1559: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1561: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1578: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:157: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1617: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1636: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1652: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:1670: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:1686: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:177: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:197: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:217: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:239: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:260: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:340: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:384: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:465: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:507: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:568: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:573: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:580: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:585: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:592: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:597: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:615: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:635: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:655: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:678: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:697: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:778: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:820: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:855: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:866: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:891: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:911: error: Item "None" of "DocumentPath | None" has no attribute "is_deleted"  [union-attr]
opencontractserver/tests/test_document_versioning_graphql.py:923: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_document_versioning_graphql.py:937: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:962: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:96: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_document_versioning_graphql.py:984: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_dual_embeddings.py:215: error: Argument "embedder" to "_create_text_embedding" has incompatible type "MockEmbedder"; expected "BaseEmbedder"  [arg-type]
opencontractserver/tests/test_dual_embeddings.py:232: error: Argument "embedder" to "_create_text_embedding" has incompatible type "MockEmbedder"; expected "BaseEmbedder"  [arg-type]
opencontractserver/tests/test_dual_embeddings.py:250: error: Argument "embedder" to "_create_text_embedding" has incompatible type "MockEmbedder"; expected "BaseEmbedder"  [arg-type]
opencontractserver/tests/test_duplicate_tool_registration.py:142: error: Missing return statement  [empty-body]
opencontractserver/tests/test_duplicate_tool_registration.py:215: error: Argument "tools" to "for_document" of "AgentAPI" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?] | None"  [arg-type]
opencontractserver/tests/test_duplicate_tool_registration.py:215: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_duplicate_tool_registration.py:215: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_duplicate_tool_registration.py:83: error: Argument "tools" to "for_document" of "AgentAPI" has incompatible type "list[str]"; expected "list[str | CoreTool | callable?] | None"  [arg-type]
opencontractserver/tests/test_duplicate_tool_registration.py:83: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_duplicate_tool_registration.py:83: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_embedder_management.py:135: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_embedder_management.py:801: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:126: error: "EmbeddingManagerStoreEmbeddingTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:151: error: "type[EmbeddingManagerConcurrentTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:160: error: "EmbeddingManagerConcurrentTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:166: error: "EmbeddingManagerConcurrentTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:172: error: "EmbeddingManagerConcurrentTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:205: error: "EmbeddingManagerConcurrentTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:272: error: "type[EmbeddingManager2048DimensionTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:281: error: "EmbeddingManager2048DimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:287: error: "EmbeddingManager2048DimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:293: error: "EmbeddingManager2048DimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:310: error: "EmbeddingManager2048DimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:31: error: "type[EmbeddingManagerStoreEmbeddingTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:333: error: "EmbeddingManager2048DimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:344: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:346: error: Argument 1 to "list" has incompatible type "list[float] | None"; expected "Iterable[Any]"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:360: error: "EmbeddingManager2048DimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:397: error: "type[HasEmbeddingMixinDimensionTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:406: error: "HasEmbeddingMixinDimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:40: error: "EmbeddingManagerStoreEmbeddingTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:412: error: "HasEmbeddingMixinDimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:418: error: "HasEmbeddingMixinDimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:435: error: "HasEmbeddingMixinDimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:444: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:445: error: Argument 1 to "list" has incompatible type "list[float] | None"; expected "Iterable[Any]"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:457: error: "HasEmbeddingMixinDimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:466: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:467: error: Argument 1 to "list" has incompatible type "list[float] | None"; expected "Iterable[Any]"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:46: error: "EmbeddingManagerStoreEmbeddingTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:479: error: "HasEmbeddingMixinDimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:488: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:489: error: Argument 1 to "list" has incompatible type "list[float] | None"; expected "Iterable[Any]"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:501: error: "HasEmbeddingMixinDimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:510: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:511: error: Argument 1 to "list" has incompatible type "list[float] | None"; expected "Iterable[Any]"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:523: error: "HasEmbeddingMixinDimensionTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:52: error: "EmbeddingManagerStoreEmbeddingTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:532: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:533: error: Argument 1 to "list" has incompatible type "list[float] | None"; expected "Iterable[Any]"  [arg-type]
opencontractserver/tests/test_embedding_manager.py:67: error: "EmbeddingManagerStoreEmbeddingTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_embedding_manager.py:95: error: "EmbeddingManagerStoreEmbeddingTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:104: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:123: error: "TestCorpusEngagementMetricsGraphQL" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:139: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:151: error: "type[TestUserReputationGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:156: error: "type[TestUserReputationGraphQL]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:162: error: "type[TestUserReputationGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:164: error: "type[TestUserReputationGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:170: error: "type[TestUserReputationGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:173: error: "type[TestUserReputationGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:176: error: "type[TestUserReputationGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:177: error: "type[TestUserReputationGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:179: error: "type[TestUserReputationGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:182: error: "type[TestUserReputationGraphQL]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:183: error: "type[TestUserReputationGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:185: error: "type[TestUserReputationGraphQL]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:192: error: "TestUserReputationGraphQL" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:207: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:214: error: "TestUserReputationGraphQL" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:226: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:264: error: "type[TestLeaderboardGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:267: error: "type[TestLeaderboardGraphQL]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:270: error: "type[TestLeaderboardGraphQL]" has no attribute "user3"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:274: error: "type[TestLeaderboardGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:276: error: "type[TestLeaderboardGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:282: error: "type[TestLeaderboardGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:285: error: "type[TestLeaderboardGraphQL]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:288: error: "type[TestLeaderboardGraphQL]" has no attribute "user3"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:293: error: "type[TestLeaderboardGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:293: error: "type[TestLeaderboardGraphQL]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:296: error: "type[TestLeaderboardGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:296: error: "type[TestLeaderboardGraphQL]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:299: error: "type[TestLeaderboardGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:299: error: "type[TestLeaderboardGraphQL]" has no attribute "user3"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:306: error: "TestLeaderboardGraphQL" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:321: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:336: error: "TestLeaderboardGraphQL" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:348: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:371: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:384: error: "TestLeaderboardGraphQL" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:397: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:41: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:47: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:50: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:55: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:58: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:59: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:62: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "msg"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:63: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:66: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:70: error: "type[TestCorpusEngagementMetricsGraphQL]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:76: error: "TestCorpusEngagementMetricsGraphQL" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_graphql.py:81: error: "TestCorpusEngagementMetricsGraphQL" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:102: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "msg2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:104: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:111: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:115: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:119: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:126: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:130: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:140: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:143: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:144: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:156: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:170: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:171: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:173: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:182: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:183: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:185: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:194: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "msg1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:195: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "msg1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:197: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:207: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:210: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:215: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:228: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:248: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:249: error: "TestUpdateCorpusEngagementMetricsTask" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:266: error: "type[TestUpdateAllCorpusEngagementMetricsTask]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:273: error: "type[TestUpdateAllCorpusEngagementMetricsTask]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:275: error: "type[TestUpdateAllCorpusEngagementMetricsTask]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:277: error: "type[TestUpdateAllCorpusEngagementMetricsTask]" has no attribute "corpus2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:279: error: "type[TestUpdateAllCorpusEngagementMetricsTask]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:281: error: "type[TestUpdateAllCorpusEngagementMetricsTask]" has no attribute "corpus3"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:283: error: "type[TestUpdateAllCorpusEngagementMetricsTask]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:293: error: "TestUpdateAllCorpusEngagementMetricsTask" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:294: error: "TestUpdateAllCorpusEngagementMetricsTask" has no attribute "corpus2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:295: error: "TestUpdateAllCorpusEngagementMetricsTask" has no attribute "corpus3"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:314: error: "type[TestMetricsTaskPerformance]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:319: error: "type[TestMetricsTaskPerformance]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:325: error: "type[TestMetricsTaskPerformance]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:327: error: "type[TestMetricsTaskPerformance]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:335: error: "type[TestMetricsTaskPerformance]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:336: error: "type[TestMetricsTaskPerformance]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:344: error: "type[TestMetricsTaskPerformance]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:344: error: "type[TestMetricsTaskPerformance]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:352: error: "TestMetricsTaskPerformance" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:43: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:48: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:54: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:57: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:62: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:65: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:66: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:68: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "thread2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:71: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:72: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:76: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "msg1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:77: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:80: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:82: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "msg2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:83: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "thread1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:86: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:88: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "msg3"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:89: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "thread2"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:92: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:97: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "msg1"  [attr-defined]
opencontractserver/tests/test_engagement_metrics_tasks.py:99: error: "type[TestUpdateCorpusEngagementMetricsTask]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_etl_utils.py:16: error: "type" has no attribute "model_fields"  [attr-defined]
opencontractserver/tests/test_export_mutations.py:42: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_extract_mutations.py:105: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_mutations.py:137: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_mutations.py:163: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_mutations.py:190: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_mutations.py:231: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_mutations.py:272: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_mutations.py:313: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_mutations.py:324: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_extract_mutations.py:324: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_extract_mutations.py:338: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_mutations.py:66: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:109: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:127: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:146: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:205: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:214: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:223: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:240: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:268: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:317: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:377: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:385: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:417: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:464: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:492: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_queries.py:67: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_extract_queries.py:89: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_extract_tasks.py:268: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_extract_tasks.py:268: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_extract_tasks.py:311: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_extract_tasks.py:311: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_extract_tasks.py:334: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_extract_tasks.py:334: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_extract_tasks.py:356: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_extract_tasks.py:356: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Extract"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_feedback.py:107: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:108: error: "TestUserFeedbackModel" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:122: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:123: error: "TestUserFeedbackModel" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:135: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:146: error: "TestUserFeedbackModel" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_feedback.py:147: error: "TestUserFeedbackModel" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_feedback.py:148: error: "TestUserFeedbackModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_feedback.py:149: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:152: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:161: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:170: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:192: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:199: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:207: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:226: error: "type[TestUserFeedbackQuerySet]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:229: error: "type[TestUserFeedbackQuerySet]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_feedback.py:232: error: "type[TestUserFeedbackQuerySet]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_feedback.py:233: error: "type[TestUserFeedbackQuerySet]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:235: error: "type[TestUserFeedbackQuerySet]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_feedback.py:237: error: "type[TestUserFeedbackQuerySet]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:240: error: "type[TestUserFeedbackQuerySet]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_feedback.py:242: error: "type[TestUserFeedbackQuerySet]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:245: error: "type[TestUserFeedbackQuerySet]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:248: error: "type[TestUserFeedbackQuerySet]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_feedback.py:249: error: "type[TestUserFeedbackQuerySet]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_feedback.py:250: error: "type[TestUserFeedbackQuerySet]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_feedback.py:251: error: "type[TestUserFeedbackQuerySet]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:255: error: "type[TestUserFeedbackQuerySet]" has no attribute "approved_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:256: error: "type[TestUserFeedbackQuerySet]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:257: error: "type[TestUserFeedbackQuerySet]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:261: error: "type[TestUserFeedbackQuerySet]" has no attribute "rejected_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:262: error: "type[TestUserFeedbackQuerySet]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:263: error: "type[TestUserFeedbackQuerySet]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:267: error: "type[TestUserFeedbackQuerySet]" has no attribute "pending_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:268: error: "type[TestUserFeedbackQuerySet]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_feedback.py:269: error: "type[TestUserFeedbackQuerySet]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:272: error: "type[TestUserFeedbackQuerySet]" has no attribute "commented_pending"  [attr-defined]
opencontractserver/tests/test_feedback.py:273: error: "type[TestUserFeedbackQuerySet]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_feedback.py:274: error: "type[TestUserFeedbackQuerySet]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:281: error: "TestUserFeedbackQuerySet" has no attribute "approved_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:286: error: "TestUserFeedbackQuerySet" has no attribute "rejected_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:292: error: "TestUserFeedbackQuerySet" has no attribute "pending_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:293: error: "TestUserFeedbackQuerySet" has no attribute "commented_pending"  [attr-defined]
opencontractserver/tests/test_feedback.py:302: error: "TestUserFeedbackQuerySet" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:314: error: "TestUserFeedbackQuerySet" has no attribute "pending_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:317: error: "TestUserFeedbackQuerySet" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:320: error: "TestUserFeedbackQuerySet" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_feedback.py:323: error: "TestUserFeedbackQuerySet" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_feedback.py:326: error: "TestUserFeedbackQuerySet" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_feedback.py:329: error: "TestUserFeedbackQuerySet" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_feedback.py:331: error: "TestUserFeedbackQuerySet" has no attribute "commented_pending"  [attr-defined]
opencontractserver/tests/test_feedback.py:339: error: "type[TestUserFeedbackVisibility]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:342: error: "type[TestUserFeedbackVisibility]" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_feedback.py:345: error: "type[TestUserFeedbackVisibility]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_feedback.py:348: error: "type[TestUserFeedbackVisibility]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_feedback.py:349: error: "type[TestUserFeedbackVisibility]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:34: error: "type[TestUserFeedbackModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:351: error: "type[TestUserFeedbackVisibility]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_feedback.py:353: error: "type[TestUserFeedbackVisibility]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:356: error: "type[TestUserFeedbackVisibility]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_feedback.py:358: error: "type[TestUserFeedbackVisibility]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:361: error: "type[TestUserFeedbackVisibility]" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:364: error: "type[TestUserFeedbackVisibility]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_feedback.py:365: error: "type[TestUserFeedbackVisibility]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_feedback.py:366: error: "type[TestUserFeedbackVisibility]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_feedback.py:367: error: "type[TestUserFeedbackVisibility]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:370: error: "type[TestUserFeedbackVisibility]" has no attribute "private_annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:373: error: "type[TestUserFeedbackVisibility]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_feedback.py:374: error: "type[TestUserFeedbackVisibility]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_feedback.py:375: error: "type[TestUserFeedbackVisibility]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_feedback.py:376: error: "type[TestUserFeedbackVisibility]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:37: error: "type[TestUserFeedbackModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_feedback.py:381: error: "type[TestUserFeedbackVisibility]" has no attribute "public_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:382: error: "type[TestUserFeedbackVisibility]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:383: error: "type[TestUserFeedbackVisibility]" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:388: error: "type[TestUserFeedbackVisibility]" has no attribute "private_feedback_public_ann"  [attr-defined]
opencontractserver/tests/test_feedback.py:389: error: "type[TestUserFeedbackVisibility]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:38: error: "type[TestUserFeedbackModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:390: error: "type[TestUserFeedbackVisibility]" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:395: error: "type[TestUserFeedbackVisibility]" has no attribute "private_feedback_private_ann"  [attr-defined]
opencontractserver/tests/test_feedback.py:396: error: "type[TestUserFeedbackVisibility]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:397: error: "type[TestUserFeedbackVisibility]" has no attribute "private_annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:402: error: "type[TestUserFeedbackVisibility]" has no attribute "other_user_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:403: error: "type[TestUserFeedbackVisibility]" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_feedback.py:404: error: "type[TestUserFeedbackVisibility]" has no attribute "private_annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:40: error: "type[TestUserFeedbackModel]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_feedback.py:410: error: "TestUserFeedbackVisibility" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_feedback.py:417: error: "TestUserFeedbackVisibility" has no attribute "public_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:420: error: "TestUserFeedbackVisibility" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_feedback.py:426: error: "TestUserFeedbackVisibility" has no attribute "public_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:427: error: "TestUserFeedbackVisibility" has no attribute "private_feedback_public_ann"  [attr-defined]
opencontractserver/tests/test_feedback.py:428: error: "TestUserFeedbackVisibility" has no attribute "private_feedback_private_ann"  [attr-defined]
opencontractserver/tests/test_feedback.py:42: error: "type[TestUserFeedbackModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:431: error: "TestUserFeedbackVisibility" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_feedback.py:436: error: "TestUserFeedbackVisibility" has no attribute "public_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:437: error: "TestUserFeedbackVisibility" has no attribute "private_feedback_public_ann"  [attr-defined]
opencontractserver/tests/test_feedback.py:438: error: "TestUserFeedbackVisibility" has no attribute "other_user_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:440: error: "TestUserFeedbackVisibility" has no attribute "private_feedback_private_ann"  [attr-defined]
opencontractserver/tests/test_feedback.py:443: error: "TestUserFeedbackVisibility" has no attribute "public_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:444: error: "TestUserFeedbackVisibility" has no attribute "public_feedback"  [attr-defined]
opencontractserver/tests/test_feedback.py:45: error: "type[TestUserFeedbackModel]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_feedback.py:47: error: "type[TestUserFeedbackModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:50: error: "type[TestUserFeedbackModel]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:53: error: "type[TestUserFeedbackModel]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_feedback.py:54: error: "type[TestUserFeedbackModel]" has no attribute "document"  [attr-defined]
opencontractserver/tests/test_feedback.py:55: error: "type[TestUserFeedbackModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_feedback.py:56: error: "type[TestUserFeedbackModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:61: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:62: error: "TestUserFeedbackModel" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:75: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:76: error: "TestUserFeedbackModel" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:86: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:87: error: "TestUserFeedbackModel" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_feedback.py:97: error: "TestUserFeedbackModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_feedback.py:98: error: "TestUserFeedbackModel" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_get_tasks_by_name.py:20: error: callable? not callable  [misc]
opencontractserver/tests/test_graphql_analyzer_endpoints.py:163: error: Argument 1 to "create_mock_submission_response" has incompatible type "str"; expected "int"  [arg-type]
opencontractserver/tests/test_graphql_analyzer_endpoints.py:183: error: Item "None" of "Analyzer | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_graphql_analyzer_endpoints.py:190: error: Item "None" of "Analyzer | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_graphql_analyzer_endpoints.py:203: error: Argument "doc_ids" to "generate_random_analyzer_return_values" has incompatible type "list[int]"; expected "list[int | str] | None"  [arg-type]
opencontractserver/tests/test_graphql_analyzer_endpoints.py:203: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_graphql_analyzer_endpoints.py:203: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_graphql_analyzer_endpoints.py:302: error: Item "None" of "Analyzer | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_graphql_analyzer_endpoints.py:354: error: Item "None" of "Analyzer | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_graphql_import_export_mutations.py:155: error: Incompatible types (expression has type "list[dict[str, dict[str, dict[str, Collection[Collection[str]]]] | int | str | None]]", TypedDict item "labelled_text" has type "list[OpenContractsAnnotationPythonType]")  [typeddict-item]
opencontractserver/tests/test_graphql_import_export_mutations.py:168: error: Incompatible types (expression has type "dict[str, dict[str, str]]", TypedDict item "text_labels" has type "dict[str, AnnotationLabelPythonType]")  [typeddict-item]
opencontractserver/tests/test_graphql_import_export_mutations.py:169: error: Incompatible types (expression has type "dict[str, dict[str, str]]", TypedDict item "doc_labels" has type "dict[str, AnnotationLabelPythonType]")  [typeddict-item]
opencontractserver/tests/test_graphql_import_export_mutations.py:23: error: Variable "opencontractserver.tests.test_graphql_import_export_mutations.User" is not valid as a type  [valid-type]
opencontractserver/tests/test_graphql_import_export_mutations.py:23: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
opencontractserver/tests/test_hybrid_search.py:100: error: "type[TestHybridSearch]" has no attribute "anno_beta"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:101: error: "type[TestHybridSearch]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:102: error: "type[TestHybridSearch]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:103: error: "type[TestHybridSearch]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:105: error: "type[TestHybridSearch]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:108: error: "type[TestHybridSearch]" has no attribute "anno_gamma"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:109: error: "type[TestHybridSearch]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:110: error: "type[TestHybridSearch]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:111: error: "type[TestHybridSearch]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:113: error: "type[TestHybridSearch]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:120: error: "type[TestHybridSearch]" has no attribute "anno_alpha"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:121: error: "type[TestHybridSearch]" has no attribute "anno_beta"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:122: error: "type[TestHybridSearch]" has no attribute "anno_gamma"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:126: error: "TestHybridSearch" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:127: error: "TestHybridSearch" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:259: error: "type[TestSearchByEmbeddingRefactor]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:264: error: "type[TestSearchByEmbeddingRefactor]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:266: error: "type[TestSearchByEmbeddingRefactor]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:272: error: "type[TestSearchByEmbeddingRefactor]" has no attribute "annotations"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:275: error: "type[TestSearchByEmbeddingRefactor]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:276: error: "type[TestSearchByEmbeddingRefactor]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:280: error: "type[TestSearchByEmbeddingRefactor]" has no attribute "annotations"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:287: error: "type[TestSearchByEmbeddingRefactor]" has no attribute "annotations"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:373: error: "type[TestSequentialScanFallback]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:378: error: "type[TestSequentialScanFallback]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:380: error: "type[TestSequentialScanFallback]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:383: error: "type[TestSequentialScanFallback]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:384: error: "type[TestSequentialScanFallback]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:385: error: "type[TestSequentialScanFallback]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:392: error: "type[TestSequentialScanFallback]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:432: error: "type[TestSearchVectorTrigger]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:437: error: "type[TestSearchVectorTrigger]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:439: error: "type[TestSearchVectorTrigger]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:456: error: "TestSearchVectorTrigger" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:457: error: "TestSearchVectorTrigger" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:464: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_hybrid_search.py:465: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_hybrid_search.py:467: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_hybrid_search.py:473: error: "TestSearchVectorTrigger" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:474: error: "TestSearchVectorTrigger" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:480: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_hybrid_search.py:490: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_hybrid_search.py:491: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_hybrid_search.py:496: error: "TestSearchVectorTrigger" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:497: error: "TestSearchVectorTrigger" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:510: error: "TestSearchVectorTrigger" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:511: error: "TestSearchVectorTrigger" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:62: error: "type[TestHybridSearch]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:67: error: "type[TestHybridSearch]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:69: error: "type[TestHybridSearch]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:72: error: "type[TestHybridSearch]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:74: error: "type[TestHybridSearch]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:78: error: "type[TestHybridSearch]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:79: error: "type[TestHybridSearch]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:84: error: "type[TestHybridSearch]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:86: error: "type[TestHybridSearch]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:88: error: "type[TestHybridSearch]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:92: error: "type[TestHybridSearch]" has no attribute "anno_alpha"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:93: error: "type[TestHybridSearch]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:94: error: "type[TestHybridSearch]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:95: error: "type[TestHybridSearch]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_hybrid_search.py:97: error: "type[TestHybridSearch]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1001: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1007: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1008: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1009: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1015: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1029: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1031: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1040: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1041: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1042: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1055: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1066: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1079: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1081: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1089: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1090: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1091: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1103: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1113: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1125: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1127: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1132: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1139: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1140: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1146: error: "ImageToolsPermissionEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1158: error: "type[ImageToolsStructuralAnnotationTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:115: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1161: error: "type[ImageToolsStructuralAnnotationTest]" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1164: error: "type[ImageToolsStructuralAnnotationTest]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1166: error: "type[ImageToolsStructuralAnnotationTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1168: error: "type[ImageToolsStructuralAnnotationTest]" has no attribute "content_hash"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1179: error: "ImageToolsStructuralAnnotationTest" has no attribute "content_hash"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1180: error: "ImageToolsStructuralAnnotationTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1186: error: "ImageToolsStructuralAnnotationTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1189: error: "ImageToolsStructuralAnnotationTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1194: error: "ImageToolsStructuralAnnotationTest" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1195: error: "ImageToolsStructuralAnnotationTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1202: error: "ImageToolsStructuralAnnotationTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1218: error: "ImageToolsStructuralAnnotationTest" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1224: error: "ImageToolsStructuralAnnotationTest" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1230: error: "ImageToolsStructuralAnnotationTest" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1236: error: "ImageToolsStructuralAnnotationTest" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1237: error: "ImageToolsStructuralAnnotationTest" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1244: error: "ImageToolsStructuralAnnotationTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:125: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1270: error: "ImageToolsStructuralAnnotationTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1280: error: "type[ImageToolsPreExtractedContentTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1283: error: "type[ImageToolsPreExtractedContentTest]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1285: error: "type[ImageToolsPreExtractedContentTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:134: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:1362: error: Need type annotation for "image_content"  [var-annotated]
opencontractserver/tests/test_image_tools.py:151: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:213: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:256: error: Item "None" of "ImageData | None" has no attribute "base64_data"  [union-attr]
opencontractserver/tests/test_image_tools.py:305: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:308: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:316: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:328: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:349: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:350: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:357: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:367: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:391: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:400: error: "ImageToolsTestCase" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:410: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:41: error: "type[ImageToolsTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:422: error: "ImageToolsTestCase" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:432: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:441: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:442: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:447: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:44: error: "type[ImageToolsTestCase]" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:452: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:463: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:472: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:480: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:481: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:488: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:499: error: "ImageToolsTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:509: error: "ImageToolsTestCase" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:519: error: "type[ImageToolsStoragePathTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:543: error: "ImageToolsStoragePathTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:573: error: "ImageToolsStoragePathTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:665: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_image_tools.py:735: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_image_tools.py:843: error: "type[ImageToolsEdgeCasesTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:846: error: "type[ImageToolsEdgeCasesTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:848: error: "type[ImageToolsEdgeCasesTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:850: error: "type[ImageToolsEdgeCasesTest]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:852: error: "type[ImageToolsEdgeCasesTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:870: error: "ImageToolsEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:876: error: "ImageToolsEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:876: error: "ImageToolsEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:899: error: "ImageToolsEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:905: error: "ImageToolsEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:905: error: "ImageToolsEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:925: error: "ImageToolsEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:931: error: "ImageToolsEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:931: error: "ImageToolsEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:951: error: "ImageToolsEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:954: error: "ImageToolsEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:954: error: "ImageToolsEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:958: error: "ImageToolsEdgeCasesTest" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:959: error: "ImageToolsEdgeCasesTest" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:960: error: "ImageToolsEdgeCasesTest" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:974: error: "type[ImageToolsPermissionEdgeCasesTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:977: error: "type[ImageToolsPermissionEdgeCasesTest]" has no attribute "other_user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:980: error: "type[ImageToolsPermissionEdgeCasesTest]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_image_tools.py:983: error: "type[ImageToolsPermissionEdgeCasesTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_image_tools.py:985: error: "type[ImageToolsPermissionEdgeCasesTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_image_tools.py:987: error: "type[ImageToolsPermissionEdgeCasesTest]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_image_tools.py:989: error: "type[ImageToolsPermissionEdgeCasesTest]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:123: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "int | str": "OpenContractsSinglePageAnnotationType"  [dict-item]
opencontractserver/tests/test_import_utils.py:133: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "int | str": "OpenContractsSinglePageAnnotationType"  [dict-item]
opencontractserver/tests/test_import_utils.py:143: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "int | str": "OpenContractsSinglePageAnnotationType"  [dict-item]
opencontractserver/tests/test_import_utils.py:152: error: "TestImportUtils" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:153: error: "TestImportUtils" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_import_utils.py:154: error: "TestImportUtils" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_import_utils.py:156: error: "TestImportUtils" has no attribute "label_lookup"  [attr-defined]
opencontractserver/tests/test_import_utils.py:178: error: "TestImportUtils" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:179: error: "TestImportUtils" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_import_utils.py:180: error: "TestImportUtils" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_import_utils.py:182: error: "TestImportUtils" has no attribute "label_lookup"  [attr-defined]
opencontractserver/tests/test_import_utils.py:24: error: "type[TestImportUtils]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:32: error: "type[TestImportUtils]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_import_utils.py:32: error: "type[TestImportUtils]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:33: error: "type[TestImportUtils]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_import_utils.py:33: error: "type[TestImportUtils]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:36: error: "type[TestImportUtils]" has no attribute "label_1"  [attr-defined]
opencontractserver/tests/test_import_utils.py:38: error: "type[TestImportUtils]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:41: error: "type[TestImportUtils]" has no attribute "label_2"  [attr-defined]
opencontractserver/tests/test_import_utils.py:43: error: "type[TestImportUtils]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:46: error: "type[TestImportUtils]" has no attribute "rel_label"  [attr-defined]
opencontractserver/tests/test_import_utils.py:48: error: "type[TestImportUtils]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:52: error: "type[TestImportUtils]" has no attribute "label_lookup"  [attr-defined]
opencontractserver/tests/test_import_utils.py:53: error: "type[TestImportUtils]" has no attribute "label_1"  [attr-defined]
opencontractserver/tests/test_import_utils.py:54: error: "type[TestImportUtils]" has no attribute "label_2"  [attr-defined]
opencontractserver/tests/test_import_utils.py:55: error: "type[TestImportUtils]" has no attribute "rel_label"  [attr-defined]
opencontractserver/tests/test_import_utils.py:69: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "int | str": "OpenContractsSinglePageAnnotationType"  [dict-item]
opencontractserver/tests/test_import_utils.py:79: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "int | str": "OpenContractsSinglePageAnnotationType"  [dict-item]
opencontractserver/tests/test_import_utils.py:87: error: "TestImportUtils" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_import_utils.py:88: error: "TestImportUtils" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_import_utils.py:89: error: "TestImportUtils" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_import_utils.py:91: error: "TestImportUtils" has no attribute "label_lookup"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1173: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:1173: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:1176: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:1176: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:1182: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1193: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1203: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1214: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1235: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1262: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1284: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1318: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:1318: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:1366: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1407: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1456: error: Item "None" of "IngestionSource | None" has no attribute "pk"  [union-attr]
opencontractserver/tests/test_ingestion_source.py:1482: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:1482: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:152: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:1633: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:1669: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:170: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:186: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:219: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:219: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:224: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:239: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:254: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:262: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:276: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:292: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:314: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:314: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:317: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:325: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:336: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:336: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:352: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:373: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:373: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:389: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:416: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:446: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:507: error: Argument 1 to "_import_ingestion_sources" has incompatible type "list[IngestionSourceExport]"; expected "list[dict[Any, Any]]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:565: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:565: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:569: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:579: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:586: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:599: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:620: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:656: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:656: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:666: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:666: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "IngestionSource"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:671: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:680: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:694: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_ingestion_source.py:843: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_ingestion_source.py:939: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_job_notifications.py:111: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_job_notifications.py:131: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_job_notifications.py:155: error: Item "None" of "Notification | None" has no attribute "recipient"  [union-attr]
opencontractserver/tests/test_job_notifications.py:228: error: Item "None" of "Notification | None" has no attribute "notification_type"  [union-attr]
opencontractserver/tests/test_job_notifications.py:230: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_job_notifications.py:250: error: Item "None" of "Notification | None" has no attribute "notification_type"  [union-attr]
opencontractserver/tests/test_job_notifications.py:252: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_job_notifications.py:310: error: Item "None" of "Notification | None" has no attribute "notification_type"  [union-attr]
opencontractserver/tests/test_job_notifications.py:312: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_job_notifications.py:382: error: Item "None" of "Notification | None" has no attribute "recipient"  [union-attr]
opencontractserver/tests/test_job_notifications.py:383: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_job_notifications.py:58: error: Item "None" of "Notification | None" has no attribute "recipient"  [union-attr]
opencontractserver/tests/test_job_notifications.py:60: error: Item "None" of "Notification | None" has no attribute "notification_type"  [union-attr]
opencontractserver/tests/test_job_notifications.py:62: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_jwt_utils.py:127: error: "TestValidateGraphqlJwtToken" has no attribute "inactive_user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:140: error: "type[TestValidateAuth0Token]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:145: error: "type[TestValidateAuth0Token]" has no attribute "inactive_user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:155: error: "TestValidateAuth0Token" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:159: error: "TestValidateAuth0Token" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:183: error: "TestValidateAuth0Token" has no attribute "inactive_user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:196: error: "type[TestGraphQLJWTAuthentication]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:227: error: "TestGraphQLJWTAuthentication" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:234: error: "TestGraphQLJWTAuthentication" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:240: error: "TestGraphQLJWTAuthentication" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:247: error: "TestGraphQLJWTAuthentication" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:277: error: "TestGraphQLJWTAuthentication" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:282: error: "TestGraphQLJWTAuthentication" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:36: error: "type[TestGetUserFromJwtToken]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:46: error: "TestGetUserFromJwtToken" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:50: error: "TestGetUserFromJwtToken" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:57: error: "TestGetUserFromJwtToken" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:61: error: "TestGetUserFromJwtToken" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:70: error: "type[TestValidateGraphqlJwtToken]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:75: error: "type[TestValidateGraphqlJwtToken]" has no attribute "inactive_user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:87: error: "TestValidateGraphqlJwtToken" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_jwt_utils.py:91: error: "TestValidateGraphqlJwtToken" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:110: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:119: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:165: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:202: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:232: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:262: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:290: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:326: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:347: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:378: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:401: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_leaderboard.py:402: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_leaderboard.py:417: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:446: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:488: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:492: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:515: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:546: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:577: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:596: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:616: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:649: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:89: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_leaderboard.py:99: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:104: error: "TestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:104: error: "TestLLMAnnotationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:119: error: Argument 1 to "add_annotations_from_exact_strings" has incompatible type "list[dict[str, str]]"; expected "list[AnnotationItem]"  [arg-type]
opencontractserver/tests/test_llm_annotation_tools.py:121: error: "TestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:122: error: "TestLLMAnnotationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:127: error: "TestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:128: error: "TestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:144: error: "TestLLMAnnotationTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:146: error: "TestLLMAnnotationTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:147: error: "TestLLMAnnotationTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:148: error: "TestLLMAnnotationTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:149: error: "TestLLMAnnotationTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:164: error: "AsyncTestLLMAnnotationTools" has no attribute "pdf_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:166: error: "AsyncTestLLMAnnotationTools" has no attribute "pdf_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:167: error: "AsyncTestLLMAnnotationTools" has no attribute "pdf_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:168: error: "AsyncTestLLMAnnotationTools" has no attribute "pdf_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:169: error: "AsyncTestLLMAnnotationTools" has no attribute "pdf_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:180: error: "AsyncTestLLMAnnotationTools" has no attribute "txt_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:182: error: "AsyncTestLLMAnnotationTools" has no attribute "txt_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:183: error: "AsyncTestLLMAnnotationTools" has no attribute "txt_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:184: error: "AsyncTestLLMAnnotationTools" has no attribute "txt_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:185: error: "AsyncTestLLMAnnotationTools" has no attribute "txt_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:192: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:193: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:193: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:196: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "pdf_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:197: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:203: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "pdf_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:208: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:208: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "pdf_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:208: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:211: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "txt_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:212: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:217: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "txt_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:223: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:223: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "txt_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:223: error: "type[AsyncTestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:242: error: Argument 1 to "aadd_annotations_from_exact_strings" has incompatible type "list[dict[str, str]]"; expected "list[AnnotationItem]"  [arg-type]
opencontractserver/tests/test_llm_annotation_tools.py:243: error: "AsyncTestLLMAnnotationTools" has no attribute "pdf_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:244: error: "AsyncTestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:245: error: "AsyncTestLLMAnnotationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:248: error: Argument 1 to "aadd_annotations_from_exact_strings" has incompatible type "list[dict[str, str]]"; expected "list[AnnotationItem]"  [arg-type]
opencontractserver/tests/test_llm_annotation_tools.py:249: error: "AsyncTestLLMAnnotationTools" has no attribute "txt_doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:250: error: "AsyncTestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:251: error: "AsyncTestLLMAnnotationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:263: error: "AsyncTestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:35: error: "type[TestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:36: error: "type[TestLLMAnnotationTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:36: error: "type[TestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:41: error: "type[TestLLMAnnotationTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:42: error: "type[TestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:48: error: "type[TestLLMAnnotationTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:51: error: "type[TestLLMAnnotationTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:54: error: "type[TestLLMAnnotationTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:54: error: "type[TestLLMAnnotationTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:54: error: "type[TestLLMAnnotationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:68: error: Argument 1 to "add_annotations_from_exact_strings" has incompatible type "list[dict[str, str]]"; expected "list[AnnotationItem]"  [arg-type]
opencontractserver/tests/test_llm_annotation_tools.py:69: error: "TestLLMAnnotationTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:70: error: "TestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:71: error: "TestLLMAnnotationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:77: error: "TestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:78: error: "TestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:79: error: "TestLLMAnnotationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:85: error: "TestLLMAnnotationTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_annotation_tools.py:93: error: "TestLLMAnnotationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:1794: error: Need type annotation for "search_strings" (hint: "search_strings: list[<type>] = ...")  [var-annotated]
opencontractserver/tests/test_llm_tools.py:233: error: Item "None" of "NoteRevision | None" has no attribute "version"  [union-attr]
opencontractserver/tests/test_llm_tools.py:824: error: "type[AsyncTestDuplicateTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:827: error: "type[AsyncTestDuplicateTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:828: error: "type[AsyncTestDuplicateTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:834: error: "type[AsyncTestDuplicateTools]" has no attribute "txt_content"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:837: error: "type[AsyncTestDuplicateTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:838: error: "type[AsyncTestDuplicateTools]" has no attribute "txt_content"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:841: error: "type[AsyncTestDuplicateTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:843: error: "type[AsyncTestDuplicateTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:846: error: "type[AsyncTestDuplicateTools]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:849: error: "type[AsyncTestDuplicateTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:850: error: "type[AsyncTestDuplicateTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:851: error: "type[AsyncTestDuplicateTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:863: error: "AsyncTestDuplicateTools" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:865: error: "AsyncTestDuplicateTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:878: error: "AsyncTestDuplicateTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:884: error: "AsyncTestDuplicateTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:895: error: "type[AsyncTestLLMTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:898: error: "type[AsyncTestLLMTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:899: error: "type[AsyncTestLLMTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:905: error: "type[AsyncTestLLMTools]" has no attribute "txt_content"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:908: error: "type[AsyncTestLLMTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:909: error: "type[AsyncTestLLMTools]" has no attribute "txt_content"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:912: error: "type[AsyncTestLLMTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:914: error: "type[AsyncTestLLMTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:917: error: "type[AsyncTestLLMTools]" has no attribute "annotation"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:920: error: "type[AsyncTestLLMTools]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:921: error: "type[AsyncTestLLMTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:922: error: "type[AsyncTestLLMTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:939: error: "AsyncTestLLMTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:947: error: "AsyncTestLLMTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:948: error: "AsyncTestLLMTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:949: error: "AsyncTestLLMTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:951: error: "AsyncTestLLMTools" has no attribute "txt_content"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:956: error: "AsyncTestLLMTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:957: error: "AsyncTestLLMTools" has no attribute "txt_content"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:961: error: "AsyncTestLLMTools" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_llm_tools.py:962: error: "AsyncTestLLMTools" has no attribute "txt_content"  [attr-defined]
opencontractserver/tests/test_long_conversation_api.py:177: error: Incompatible type for lookup 'id': (got "int | None", expected "str | int")  [misc]
opencontractserver/tests/test_long_conversation_api.py:470: error: Incompatible type for lookup 'id': (got "int | None", expected "str | int")  [misc]
opencontractserver/tests/test_markdown_parser.py:103: error: "TestMarkdownParser" has no attribute "parser"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:103: error: "TestMarkdownParser" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:20: error: "type[TestMarkdownParser]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:23: error: "type[TestMarkdownParser]" has no attribute "parser"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:29: error: "TestMarkdownParser" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:38: error: "TestMarkdownParser" has no attribute "parser"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:38: error: "TestMarkdownParser" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:54: error: "TestMarkdownParser" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:56: error: "TestMarkdownParser" has no attribute "parser"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:56: error: "TestMarkdownParser" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:70: error: "TestMarkdownParser" has no attribute "parser"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:70: error: "TestMarkdownParser" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:86: error: "TestMarkdownParser" has no attribute "parser"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:86: error: "TestMarkdownParser" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_markdown_parser.py:95: error: "TestMarkdownParser" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_mcp_extended.py:502: error: Argument 1 to "len" has incompatible type "str | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_mcp_extended.py:571: error: Need type annotation for "scope"  [var-annotated]
opencontractserver/tests/test_mcp_extended.py:619: error: Need type annotation for "scope"  [var-annotated]
opencontractserver/tests/test_mention_parser.py:199: error: Need type annotation for "mentioned_ids"  [var-annotated]
opencontractserver/tests/test_mention_parser.py:221: error: Argument 2 to "link_message_to_resources" has incompatible type "dict[str, set[str | None]]"; expected "dict[str, set[str]]"  [arg-type]
opencontractserver/tests/test_mention_parser.py:248: error: Argument 2 to "link_message_to_resources" has incompatible type "dict[str, set[str | None]]"; expected "dict[str, set[str]]"  [arg-type]
opencontractserver/tests/test_mention_parser.py:358: error: Argument 2 to "link_message_to_resources" has incompatible type "dict[str, object]"; expected "dict[str, set[str]]"  [arg-type]
opencontractserver/tests/test_mention_parser.py:569: error: Argument 2 to "link_message_to_resources" has incompatible type "dict[str, set[str | None]]"; expected "dict[str, set[str]]"  [arg-type]
opencontractserver/tests/test_mention_parser.py:591: error: Argument 2 to "link_message_to_resources" has incompatible type "dict[str, set[str | None]]"; expected "dict[str, set[str]]"  [arg-type]
opencontractserver/tests/test_mention_parser.py:612: error: Argument 2 to "link_message_to_resources" has incompatible type "dict[str, set[str | None]]"; expected "dict[str, set[str]]"  [arg-type]
opencontractserver/tests/test_mention_parser.py:633: error: Argument 2 to "link_message_to_resources" has incompatible type "dict[str, set[str | None]]"; expected "dict[str, set[str]]"  [arg-type]
opencontractserver/tests/test_mention_parser.py:678: error: Argument 2 to "link_message_to_resources" has incompatible type "dict[str, set[str | None]]"; expected "dict[str, set[str]]"  [arg-type]
opencontractserver/tests/test_mention_permissions.py:230: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mention_permissions.py:260: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mention_permissions.py:361: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mention_permissions.py:366: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mention_permissions.py:373: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mention_permissions.py:376: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mention_permissions.py:52: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mention_permissions.py:57: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mentions.py:101: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mentions.py:131: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:172: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:214: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:250: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:262: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:295: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:331: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:365: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:413: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mentions.py:415: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mentions.py:417: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mentions.py:419: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mentions.py:440: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:452: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:482: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:494: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:519: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_mentions.py:92: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mentions.py:95: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_mentions.py:98: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_metadata_columns_graphql.py:144: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_metadata_columns_graphql.py:144: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Column"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_metadata_columns_graphql.py:170: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_metadata_columns_graphql.py:225: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_metadata_columns_graphql.py:284: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_metadata_columns_graphql.py:316: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_metadata_columns_graphql.py:316: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Datacell"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_metadata_columns_graphql.py:337: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_metadata_columns_graphql.py:37: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_metadata_columns_graphql.py:381: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_metadata_columns_graphql.py:39: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_metadata_columns_graphql.py:452: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_metadata_columns_graphql.py:515: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_metadata_columns_graphql.py:75: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_migration_0055_rollback.py:126: error: Item "None" of "Match[str] | None" has no attribute "group"  [union-attr]
opencontractserver/tests/test_migration_0055_rollback.py:198: error: Item "None" of "Match[str] | None" has no attribute "group"  [union-attr]
opencontractserver/tests/test_migration_0055_rollback.py:96: error: Item "None" of "Match[str] | None" has no attribute "group"  [union-attr]
opencontractserver/tests/test_moderation.py:1042: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:1080: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:1111: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:1139: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:1166: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:1234: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:1264: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:1295: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:192: error: Item "None" of "ModerationAction | None" has no attribute "action_type"  [union-attr]
opencontractserver/tests/test_moderation.py:193: error: Item "None" of "ModerationAction | None" has no attribute "moderator"  [union-attr]
opencontractserver/tests/test_moderation.py:194: error: Item "None" of "ModerationAction | None" has no attribute "reason"  [union-attr]
opencontractserver/tests/test_moderation.py:654: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:680: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:723: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:767: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:849: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:870: error: Item "None" of "ModerationAction | None" has no attribute "reason"  [union-attr]
opencontractserver/tests/test_moderation.py:887: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:924: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_moderation.py:999: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_move_document_tool.py:216: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_move_document_tool.py:219: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_move_document_tool.py:276: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_move_document_tool.py:52: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_multimodal_embedder_unit.py:17: error: Library stubs not installed for "requests.exceptions"  [import-untyped]
opencontractserver/tests/test_multimodal_embedder_unit.py:194: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_multimodal_embedder_unit.py:311: error: Argument 1 to "len" has incompatible type "list[list[float]] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_multimodal_embedder_unit.py:312: error: Item "None" of "list[list[float]] | None" has no attribute "__iter__" (not iterable)  [union-attr]
opencontractserver/tests/test_multimodal_embedder_unit.py:390: error: Argument 1 to "len" has incompatible type "list[list[float]] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_multimodal_embedder_unit.py:391: error: Item "None" of "list[list[float]] | None" has no attribute "__iter__" (not iterable)  [union-attr]
opencontractserver/tests/test_multimodal_embedder_unit.py:441: error: Argument 1 to "len" has incompatible type "list[list[float]] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_multimodal_embedder_unit.py:442: error: Item "None" of "list[list[float]] | None" has no attribute "__iter__" (not iterable)  [union-attr]
opencontractserver/tests/test_multimodal_embedder_unit.py:521: error: Argument 1 to "len" has incompatible type "list[list[float]] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_multimodal_embedder_unit.py:522: error: Item "None" of "list[list[float]] | None" has no attribute "__iter__" (not iterable)  [union-attr]
opencontractserver/tests/test_multimodal_embedder_unit.py:813: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_multimodal_embedder_unit.py:829: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_multimodal_embedder_unit.py:96: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_multimodal_embeddings_utils.py:214: error: "type[TestGetAnnotationImageTokens]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:217: error: "type[TestGetAnnotationImageTokens]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:219: error: "type[TestGetAnnotationImageTokens]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:221: error: "type[TestGetAnnotationImageTokens]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:223: error: "type[TestGetAnnotationImageTokens]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:239: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:245: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:245: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:261: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:266: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:267: error: "TestGetAnnotationImageTokens" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:268: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:288: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:289: error: "TestGetAnnotationImageTokens" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:290: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:320: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:321: error: "TestGetAnnotationImageTokens" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:322: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:358: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:361: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:361: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:364: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:365: error: "TestGetAnnotationImageTokens" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:366: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:396: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:397: error: "TestGetAnnotationImageTokens" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:398: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:439: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:440: error: "TestGetAnnotationImageTokens" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:441: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:462: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:463: error: "TestGetAnnotationImageTokens" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:464: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:476: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:479: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:479: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:483: error: "TestGetAnnotationImageTokens" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:484: error: "TestGetAnnotationImageTokens" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:485: error: "TestGetAnnotationImageTokens" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:489: error: Argument "pawls_data" to "get_annotation_image_tokens" has incompatible type "list[str]"; expected "list[dict[Any, Any]] | None"  [arg-type]
opencontractserver/tests/test_multimodal_embeddings_utils.py:521: error: Generator has incompatible item type "float | Any"; expected "bool"  [misc]
opencontractserver/tests/test_multimodal_embeddings_utils.py:521: error: Item "None" of "list[float] | None" has no attribute "__iter__" (not iterable)  [union-attr]
opencontractserver/tests/test_multimodal_embeddings_utils.py:565: error: "type[TestGenerateMultimodalEmbedding]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:568: error: "type[TestGenerateMultimodalEmbedding]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:570: error: "type[TestGenerateMultimodalEmbedding]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:572: error: "type[TestGenerateMultimodalEmbedding]" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:574: error: "type[TestGenerateMultimodalEmbedding]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:590: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:596: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:596: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:603: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:606: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:606: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:610: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:611: error: "TestGenerateMultimodalEmbedding" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:612: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:621: error: Value of type "list[float] | None" is not indexable  [index]
opencontractserver/tests/test_multimodal_embeddings_utils.py:646: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:647: error: "TestGenerateMultimodalEmbedding" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:648: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:657: error: Value of type "list[float] | None" is not indexable  [index]
opencontractserver/tests/test_multimodal_embeddings_utils.py:683: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:684: error: "TestGenerateMultimodalEmbedding" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:685: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:707: error: Value of type "list[float] | None" is not indexable  [index]
opencontractserver/tests/test_multimodal_embeddings_utils.py:713: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:716: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:716: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:720: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:721: error: "TestGenerateMultimodalEmbedding" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:722: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:755: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:756: error: "TestGenerateMultimodalEmbedding" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:757: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:793: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:794: error: "TestGenerateMultimodalEmbedding" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:795: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:819: error: Value of type "list[float] | None" is not indexable  [index]
opencontractserver/tests/test_multimodal_embeddings_utils.py:825: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:828: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:828: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:832: error: "TestGenerateMultimodalEmbedding" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:833: error: "TestGenerateMultimodalEmbedding" has no attribute "label"  [attr-defined]
opencontractserver/tests/test_multimodal_embeddings_utils.py:834: error: "TestGenerateMultimodalEmbedding" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:101: error: "type[TestMultimodalEmbedderService]" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:105: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:125: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:140: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:144: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:148: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:152: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:159: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:166: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:167: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:168: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:169: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:180: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:187: error: "TestMultimodalEmbedderService" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:217: error: "type[TestMultimodalEmbedderBatch]" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:227: error: "TestMultimodalEmbedderBatch" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:243: error: "TestMultimodalEmbedderBatch" has no attribute "embedder"  [attr-defined]
opencontractserver/tests/test_multimodal_integration.py:335: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "OpenContractDocExport | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_multimodal_integration.py:339: error: Value of type "OpenContractDocExport | None" is not indexable  [index]
opencontractserver/tests/test_multimodal_integration.py:429: error: Item "None" of "OpenContractDocExport | None" has no attribute "get"  [union-attr]
opencontractserver/tests/test_multimodal_integration.py:442: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_multimodal_integration.py:445: error: Item "None" of "OpenContractDocExport | None" has no attribute "get"  [union-attr]
opencontractserver/tests/test_multimodal_integration.py:452: error: Argument 1 to "_extract_image_data" of "TestFullMultimodalPipeline" has incompatible type "PawlsTokenPythonType | Any"; expected "dict[Any, Any]"  [arg-type]
opencontractserver/tests/test_nested_approval_gates.py:130: error: Variable "opencontractserver.tests.test_nested_approval_gates.User" is not valid as a type  [valid-type]
opencontractserver/tests/test_nested_approval_gates.py:130: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
opencontractserver/tests/test_nested_approval_gates.py:194: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:206: error: "CoreAgent" has no attribute "_effective_tools"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:207: error: "CoreAgent" has no attribute "_mock_sub_agent"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:229: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:365: error: Argument "pending_tool_call" to "_FakeApprovalEvent" has incompatible type "str"; expected "dict[str, Any]"  [arg-type]
opencontractserver/tests/test_nested_approval_gates.py:426: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:433: error: "CoreAgent" has no attribute "conversation_manager"; maybe "get_conversation_messages"?  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:456: error: "Coroutine[Any, Any, UnifiedChatResponse | AsyncGenerator[ThoughtEvent | ContentEvent | SourceEvent | ApprovalNeededEvent | ApprovalResultEvent | ResumeEvent | FinalEvent | ErrorEvent, None]]" has no attribute "__aiter__" (not async iterable)  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:498: error: "None" has no attribute "config"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:510: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:512: error: No overload variant of "__setitem__" of "list" matches argument types "int", "CoreAgent"  [call-overload]
opencontractserver/tests/test_nested_approval_gates.py:512: note:     def __setitem__(self, SupportsIndex, None, /) -> None
opencontractserver/tests/test_nested_approval_gates.py:512: note:     def __setitem__(self, slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], Iterable[None], /) -> None
opencontractserver/tests/test_nested_approval_gates.py:512: note: Possible overload variants:
opencontractserver/tests/test_nested_approval_gates.py:518: error: "CoreAgent" has no attribute "conversation_manager"; maybe "get_conversation_messages"?  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:536: error: "CoreAgent" has no attribute "config"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:539: error: "Coroutine[Any, Any, UnifiedChatResponse | AsyncGenerator[ThoughtEvent | ContentEvent | SourceEvent | ApprovalNeededEvent | ApprovalResultEvent | ResumeEvent | FinalEvent | ErrorEvent, None]]" has no attribute "__aiter__" (not async iterable)  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:547: error: "CoreAgent" has no attribute "config"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:580: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:587: error: "CoreAgent" has no attribute "conversation_manager"; maybe "get_conversation_messages"?  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:606: error: "Coroutine[Any, Any, UnifiedChatResponse | AsyncGenerator[ThoughtEvent | ContentEvent | SourceEvent | ApprovalNeededEvent | ApprovalResultEvent | ResumeEvent | FinalEvent | ErrorEvent, None]]" has no attribute "__aiter__" (not async iterable)  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:609: error: "CoreAgent" has no attribute "config"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:651: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:655: error: "CoreAgent" has no attribute "config"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:661: error: "CoreAgent" has no attribute "conversation_manager"; maybe "get_conversation_messages"?  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:678: error: "Coroutine[Any, Any, UnifiedChatResponse | AsyncGenerator[ThoughtEvent | ContentEvent | SourceEvent | ApprovalNeededEvent | ApprovalResultEvent | ResumeEvent | FinalEvent | ErrorEvent, None]]" has no attribute "__aiter__" (not async iterable)  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:723: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:726: error: "CoreAgent" has no attribute "config"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:732: error: "CoreAgent" has no attribute "conversation_manager"; maybe "get_conversation_messages"?  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:750: error: "Coroutine[Any, Any, UnifiedChatResponse | AsyncGenerator[ThoughtEvent | ContentEvent | SourceEvent | ApprovalNeededEvent | ApprovalResultEvent | ResumeEvent | FinalEvent | ErrorEvent, None]]" has no attribute "__aiter__" (not async iterable)  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:906: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:908: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_nested_approval_gates.py:937: error: Item "None" of "Any | None" has no attribute "core_tool"  [union-attr]
opencontractserver/tests/test_nested_approval_gates.py:945: error: Item "None" of "Any | None" has no attribute "requires_approval"  [union-attr]
opencontractserver/tests/test_nested_approval_gates.py:985: error: Item "None" of "Any | None" has no attribute "requires_approval"  [union-attr]
opencontractserver/tests/test_non_pdf_export.py:34: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_note_tree.py:133: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_note_tree.py:225: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_note_tree.py:247: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_note_tree.py:262: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_note_tree.py:263: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_note_tree.py:309: error: Item "None" of "NoteRevision | None" has no attribute "version"  [union-attr]
opencontractserver/tests/test_note_tree.py:310: error: Item "None" of "NoteRevision | None" has no attribute "snapshot"  [union-attr]
opencontractserver/tests/test_note_tree.py:311: error: Item "None" of "NoteRevision | None" has no attribute "author"  [union-attr]
opencontractserver/tests/test_note_tree.py:97: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:117: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:150: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:171: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:198: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:227: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:255: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:326: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:361: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:389: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:411: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:438: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:462: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:488: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_graphql.py:514: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_notification_websocket.py:108: error: Variable "opencontractserver.tests.test_notification_websocket.User" is not valid as a type  [valid-type]
opencontractserver/tests/test_notification_websocket.py:108: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
opencontractserver/tests/test_notification_websocket.py:62: error: Variable "opencontractserver.tests.test_notification_websocket.User" is not valid as a type  [valid-type]
opencontractserver/tests/test_notification_websocket.py:62: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
opencontractserver/tests/test_notification_websocket.py:72: error: Variable "opencontractserver.tests.test_notification_websocket.User" is not valid as a type  [valid-type]
opencontractserver/tests/test_notification_websocket.py:72: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
opencontractserver/tests/test_notifications.py:109: error: "TestNotificationModel" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:111: error: "TestNotificationModel" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_notifications.py:166: error: "TestNotificationModel" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:168: error: "TestNotificationModel" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_notifications.py:172: error: "TestNotificationModel" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:174: error: "TestNotificationModel" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_notifications.py:184: error: "TestNotificationModel" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:186: error: "TestNotificationModel" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_notifications.py:191: error: "TestNotificationModel" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:260: error: Item "None" of "Notification | None" has no attribute "actor"  [union-attr]
opencontractserver/tests/test_notifications.py:261: error: Item "None" of "Notification | None" has no attribute "message"  [union-attr]
opencontractserver/tests/test_notifications.py:262: error: Item "None" of "Notification | None" has no attribute "conversation"  [union-attr]
opencontractserver/tests/test_notifications.py:346: error: Item "None" of "Notification | None" has no attribute "actor"  [union-attr]
opencontractserver/tests/test_notifications.py:347: error: Item "None" of "Notification | None" has no attribute "message"  [union-attr]
opencontractserver/tests/test_notifications.py:408: error: Item "None" of "Notification | None" has no attribute "actor"  [union-attr]
opencontractserver/tests/test_notifications.py:409: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_notifications.py:410: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_notifications.py:41: error: "type[TestNotificationModel]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:437: error: Item "None" of "Notification | None" has no attribute "actor"  [union-attr]
opencontractserver/tests/test_notifications.py:438: error: Item "None" of "Notification | None" has no attribute "conversation"  [union-attr]
opencontractserver/tests/test_notifications.py:439: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_notifications.py:465: error: Item "None" of "Notification | None" has no attribute "actor"  [union-attr]
opencontractserver/tests/test_notifications.py:466: error: Item "None" of "Notification | None" has no attribute "message"  [union-attr]
opencontractserver/tests/test_notifications.py:47: error: "type[TestNotificationModel]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_notifications.py:53: error: "type[TestNotificationModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_notifications.py:56: error: "type[TestNotificationModel]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:60: error: "type[TestNotificationModel]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_notifications.py:64: error: "type[TestNotificationModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_notifications.py:65: error: "type[TestNotificationModel]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:69: error: "type[TestNotificationModel]" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_notifications.py:70: error: "type[TestNotificationModel]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_notifications.py:73: error: "type[TestNotificationModel]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:79: error: "TestNotificationModel" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:81: error: "TestNotificationModel" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_notifications.py:82: error: "TestNotificationModel" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_notifications.py:83: error: "TestNotificationModel" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_notifications.py:86: error: "TestNotificationModel" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:88: error: "TestNotificationModel" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_notifications.py:89: error: "TestNotificationModel" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_notifications.py:90: error: "TestNotificationModel" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_notifications.py:96: error: "TestNotificationModel" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_notifications.py:98: error: "TestNotificationModel" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:119: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:122: error: "OGCorpusMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:123: error: "OGCorpusMetadataTestCase" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:139: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:142: error: "OGCorpusMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:159: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:163: error: "OGCorpusMetadataTestCase" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:177: error: "type[OGDocumentMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:184: error: "type[OGDocumentMetadataTestCase]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:187: error: "type[OGDocumentMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:192: error: "type[OGDocumentMetadataTestCase]" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:195: error: "type[OGDocumentMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:203: error: Incompatible types in assignment (expression has type "None", variable has type "User | AnonymousUser")  [assignment]
opencontractserver/tests/test_og_metadata_queries.py:218: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:221: error: "OGDocumentMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:222: error: "OGDocumentMetadataTestCase" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:245: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:248: error: "OGDocumentMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:249: error: "OGDocumentMetadataTestCase" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:263: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:270: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:273: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:279: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:283: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:283: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:284: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:291: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:294: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:294: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:295: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:299: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:301: error: "type[OGDocumentInCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:309: error: Incompatible types in assignment (expression has type "None", variable has type "User | AnonymousUser")  [assignment]
opencontractserver/tests/test_og_metadata_queries.py:335: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:338: error: "OGDocumentInCorpusMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:339: error: "OGDocumentInCorpusMetadataTestCase" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:340: error: "OGDocumentInCorpusMetadataTestCase" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:375: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:378: error: "OGDocumentInCorpusMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:379: error: "OGDocumentInCorpusMetadataTestCase" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:380: error: "OGDocumentInCorpusMetadataTestCase" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:410: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:413: error: "OGDocumentInCorpusMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:414: error: "OGDocumentInCorpusMetadataTestCase" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:41: error: "type[OGCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:429: error: "type[OGThreadMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:436: error: "type[OGThreadMetadataTestCase]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:438: error: "type[OGThreadMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:442: error: "type[OGThreadMetadataTestCase]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:445: error: "type[OGThreadMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:446: error: "type[OGThreadMetadataTestCase]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:452: error: "type[OGThreadMetadataTestCase]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:455: error: "type[OGThreadMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:459: error: "type[OGThreadMetadataTestCase]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:461: error: "type[OGThreadMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:465: error: "type[OGThreadMetadataTestCase]" has no attribute "private_thread"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:468: error: "type[OGThreadMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:469: error: "type[OGThreadMetadataTestCase]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:476: error: Incompatible types in assignment (expression has type "None", variable has type "User | AnonymousUser")  [assignment]
opencontractserver/tests/test_og_metadata_queries.py:48: error: "type[OGCorpusMetadataTestCase]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:500: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:503: error: "OGThreadMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:504: error: "OGThreadMetadataTestCase" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:505: error: "OGThreadMetadataTestCase" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:51: error: "type[OGCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:535: error: "OGThreadMetadataTestCase" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:536: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:539: error: "OGThreadMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:540: error: "OGThreadMetadataTestCase" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:568: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:56: error: "type[OGCorpusMetadataTestCase]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:571: error: "OGThreadMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:572: error: "OGThreadMetadataTestCase" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:573: error: "OGThreadMetadataTestCase" has no attribute "private_thread"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:587: error: "type[OGExtractMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:594: error: "type[OGExtractMetadataTestCase]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:596: error: "type[OGExtractMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:59: error: "type[OGCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:600: error: "type[OGExtractMetadataTestCase]" has no attribute "fieldset"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:603: error: "type[OGExtractMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:606: error: "type[OGExtractMetadataTestCase]" has no attribute "extract"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:608: error: "type[OGExtractMetadataTestCase]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:609: error: "type[OGExtractMetadataTestCase]" has no attribute "fieldset"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:610: error: "type[OGExtractMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:614: error: "type[OGExtractMetadataTestCase]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:616: error: "type[OGExtractMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:620: error: "type[OGExtractMetadataTestCase]" has no attribute "private_extract"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:622: error: "type[OGExtractMetadataTestCase]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:623: error: "type[OGExtractMetadataTestCase]" has no attribute "fieldset"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:624: error: "type[OGExtractMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:631: error: Incompatible types in assignment (expression has type "None", variable has type "User | AnonymousUser")  [assignment]
opencontractserver/tests/test_og_metadata_queries.py:647: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:649: error: "OGExtractMetadataTestCase" has no attribute "extract"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:670: error: "OGExtractMetadataTestCase" has no attribute "extract"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:671: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:67: error: "type[OGCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:690: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:692: error: "OGExtractMetadataTestCase" has no attribute "private_extract"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:707: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:70: error: "type[OGCorpusMetadataTestCase]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:70: error: "type[OGCorpusMetadataTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:721: error: "type[OGMetadataEmptyDescriptionTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:727: error: "type[OGMetadataEmptyDescriptionTestCase]" has no attribute "corpus_empty_desc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:730: error: "type[OGMetadataEmptyDescriptionTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:735: error: "type[OGMetadataEmptyDescriptionTestCase]" has no attribute "doc_empty_desc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:738: error: "type[OGMetadataEmptyDescriptionTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:745: error: Incompatible types in assignment (expression has type "None", variable has type "User | AnonymousUser")  [assignment]
opencontractserver/tests/test_og_metadata_queries.py:758: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:761: error: "OGMetadataEmptyDescriptionTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:762: error: "OGMetadataEmptyDescriptionTestCase" has no attribute "corpus_empty_desc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:77: error: Incompatible types in assignment (expression has type "None", variable has type "User | AnonymousUser")  [assignment]
opencontractserver/tests/test_og_metadata_queries.py:780: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:783: error: "OGMetadataEmptyDescriptionTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:784: error: "OGMetadataEmptyDescriptionTestCase" has no attribute "doc_empty_desc"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:93: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:96: error: "OGCorpusMetadataTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_og_metadata_queries.py:97: error: "OGCorpusMetadataTestCase" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_openai_embedder.py:132: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_openai_embedder.py:308: error: Item "None" of "PipelineComponentDefinition | None" has no attribute "vector_size"  [union-attr]
opencontractserver/tests/test_openai_embedder.py:309: error: Item "None" of "PipelineComponentDefinition | None" has no attribute "is_multimodal"  [union-attr]
opencontractserver/tests/test_openai_embedder.py:310: error: Item "None" of "PipelineComponentDefinition | None" has no attribute "supports_text"  [union-attr]
opencontractserver/tests/test_page_imaging_tool.py:61: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_pdf_redaction.py:106: error: Incompatible return value type (got "list[dict[str, object]]", expected "list[OpenContractsAnnotationPythonType]")  [return-value]
opencontractserver/tests/test_pdf_redaction.py:166: error: Extra key "icon" for TypedDict "OpenContractCorpusType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:166: error: Missing keys ("icon_data", "icon_name", "creator", "id", "label_set") for TypedDict "OpenContractCorpusType"  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:171: error: Extra key "icon" for TypedDict "OpenContractsLabelSetType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:171: error: Missing keys ("id", "icon_data", "icon_name", "creator") for TypedDict "OpenContractsLabelSetType"  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:257: error: Extra key "icon" for TypedDict "OpenContractCorpusType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:257: error: Missing keys ("icon_data", "icon_name", "creator", "id", "label_set") for TypedDict "OpenContractCorpusType"  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:262: error: Extra key "icon" for TypedDict "OpenContractsLabelSetType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:262: error: Missing keys ("id", "icon_data", "icon_name", "creator") for TypedDict "OpenContractsLabelSetType"  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:326: error: Extra key "icon" for TypedDict "OpenContractCorpusType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:326: error: Missing keys ("icon_data", "icon_name", "creator", "id", "label_set") for TypedDict "OpenContractCorpusType"  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:331: error: Extra key "icon" for TypedDict "OpenContractsLabelSetType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:331: error: Missing keys ("id", "icon_data", "icon_name", "creator") for TypedDict "OpenContractsLabelSetType"  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:437: error: Incompatible types (expression has type "list[dict[str, object]]", TypedDict item "labelled_text" has type "list[OpenContractsAnnotationPythonType]")  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:442: error: Extra key "icon" for TypedDict "OpenContractCorpusType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:442: error: Missing keys ("icon_data", "icon_name", "creator", "id", "label_set") for TypedDict "OpenContractCorpusType"  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:447: error: Extra key "icon" for TypedDict "OpenContractsLabelSetType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:447: error: Missing keys ("id", "icon_data", "icon_name", "creator") for TypedDict "OpenContractsLabelSetType"  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:602: error: Incompatible types (expression has type "list[dict[str, object]]", TypedDict item "labelled_text" has type "list[OpenContractsAnnotationPythonType]")  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:607: error: Extra key "icon" for TypedDict "OpenContractCorpusType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:607: error: Missing keys ("icon_data", "icon_name", "creator", "id", "label_set") for TypedDict "OpenContractCorpusType"  [typeddict-item]
opencontractserver/tests/test_pdf_redaction.py:612: error: Extra key "icon" for TypedDict "OpenContractsLabelSetType"  [typeddict-unknown-key]
opencontractserver/tests/test_pdf_redaction.py:612: error: Missing keys ("id", "icon_data", "icon_name", "creator") for TypedDict "OpenContractsLabelSetType"  [typeddict-item]
opencontractserver/tests/test_pdf_token_extraction.py:308: error: Unsupported left operand type for + ("object")  [operator]
opencontractserver/tests/test_pdf_token_extraction.py:309: error: Unsupported left operand type for + ("object")  [operator]
opencontractserver/tests/test_pdf_token_extraction.py:322: error: Argument "bbox" to "find_tokens_in_bbox" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:326: error: Argument "tokens" to "find_tokens_in_bbox" has incompatible type "list[dict[str, object]]"; expected "list[PawlsTokenPythonType] | None"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:340: error: Argument "bbox" to "find_tokens_in_bbox" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:344: error: Argument "tokens" to "find_tokens_in_bbox" has incompatible type "list[dict[str, object]]"; expected "list[PawlsTokenPythonType] | None"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:354: error: Argument "bbox" to "find_tokens_in_bbox" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:368: error: Argument "bbox" to "find_tokens_in_bbox" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:383: error: Argument "bbox" to "find_tokens_in_bbox" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:387: error: Argument "tokens" to "find_tokens_in_bbox" has incompatible type "list[dict[str, object]]"; expected "list[PawlsTokenPythonType] | None"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:399: error: Argument "bbox" to "find_tokens_in_bbox" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:403: error: Argument "tokens" to "find_tokens_in_bbox" has incompatible type "list[dict[str, object]]"; expected "list[PawlsTokenPythonType] | None"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:415: error: Argument "bbox" to "find_tokens_in_bbox" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:419: error: Argument "tokens" to "find_tokens_in_bbox" has incompatible type "list[dict[str, object]]"; expected "list[PawlsTokenPythonType] | None"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:531: error: Argument 3 to "crop_image_from_pdf" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:536: error: Value of type "PawlsTokenPythonType | None" is not indexable  [index]
opencontractserver/tests/test_pdf_token_extraction.py:537: error: Value of type "PawlsTokenPythonType | None" is not indexable  [index]
opencontractserver/tests/test_pdf_token_extraction.py:538: error: Value of type "PawlsTokenPythonType | None" is not indexable  [index]
opencontractserver/tests/test_pdf_token_extraction.py:539: error: Value of type "PawlsTokenPythonType | None" is not indexable  [index]
opencontractserver/tests/test_pdf_token_extraction.py:540: error: Value of type "PawlsTokenPythonType | None" is not indexable  [index]
opencontractserver/tests/test_pdf_token_extraction.py:541: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "PawlsTokenPythonType | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:542: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "PawlsTokenPythonType | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:551: error: Argument 3 to "crop_image_from_pdf" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:568: error: Argument 3 to "crop_image_from_pdf" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:572: error: Value of type "PawlsTokenPythonType | None" is not indexable  [index]
opencontractserver/tests/test_pdf_token_extraction.py:573: error: Value of type "PawlsTokenPythonType | None" is not indexable  [index]
opencontractserver/tests/test_pdf_token_extraction.py:592: error: Argument 3 to "crop_image_from_pdf" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:603: error: Value of type "PawlsTokenPythonType | None" is not indexable  [index]
opencontractserver/tests/test_pdf_token_extraction.py:605: error: Argument 2 to "assertNotIn" of "TestCase" has incompatible type "PawlsTokenPythonType | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:626: error: Argument 3 to "crop_image_from_pdf" has incompatible type "dict[str, int]"; expected "BoundingBoxPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:634: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "PawlsTokenPythonType | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:635: error: Argument 2 to "assertNotIn" of "TestCase" has incompatible type "PawlsTokenPythonType | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:652: error: Argument 1 to "get_image_as_base64" has incompatible type "dict[str, object]"; expected "PawlsTokenPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:671: error: Argument 1 to "get_image_as_base64" has incompatible type "dict[str, object]"; expected "PawlsTokenPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:692: error: Argument 1 to "get_image_as_base64" has incompatible type "dict[str, object]"; expected "PawlsTokenPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:708: error: Argument 1 to "get_image_as_base64" has incompatible type "dict[str, object]"; expected "PawlsTokenPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:723: error: Argument 1 to "get_image_as_base64" has incompatible type "dict[str, object]"; expected "PawlsTokenPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:738: error: Argument 1 to "get_image_data_url" has incompatible type "dict[str, object]"; expected "PawlsTokenPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:753: error: Argument 1 to "get_image_data_url" has incompatible type "dict[str, object]"; expected "PawlsTokenPythonType"  [arg-type]
opencontractserver/tests/test_pdf_token_extraction.py:755: error: Item "None" of "str | None" has no attribute "startswith"  [union-attr]
opencontractserver/tests/test_pdf_token_extraction.py:767: error: Argument 1 to "get_image_data_url" has incompatible type "dict[str, object]"; expected "PawlsTokenPythonType"  [arg-type]
opencontractserver/tests/test_pdf_utils.py:148: error: Argument "target_format" to "split_pdf_into_images" has incompatible type "Literal['jpeg']"; expected "Literal['PNG', 'JPEG']"  [arg-type]
opencontractserver/tests/test_pdf_utils.py:162: error: Argument "target_format" to "split_pdf_into_images" has incompatible type "Literal['TIFF']"; expected "Literal['PNG', 'JPEG']"  [arg-type]
opencontractserver/tests/test_permanent_deletion.py:723: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permanent_deletion.py:763: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permanent_deletion.py:776: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permanent_deletion.py:845: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_permanent_deletion.py:869: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_permanent_deletion.py:900: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_permanent_deletion.py:934: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_permanent_deletion.py:969: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_permanent_deletion.py:997: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_permission_fixes.py:207: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:209: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:286: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:369: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:433: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:436: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:436: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Fieldset"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:481: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:620: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:707: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:717: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:72: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:734: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:74: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:886: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_permission_fixes.py:896: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_personal_corpus.py:1015: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_personal_corpus.py:1019: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_personal_corpus.py:547: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_personal_corpus.py:585: error: Item "None" of "DocumentPath | None" has no attribute "corpus_id"  [union-attr]
opencontractserver/tests/test_personal_corpus.py:601: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_personal_corpus.py:607: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_personal_corpus.py:644: error: Item "None" of "DocumentPath | None" has no attribute "corpus_id"  [union-attr]
opencontractserver/tests/test_personal_corpus.py:666: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_personal_corpus.py:703: error: Item "None" of "DocumentPath | None" has no attribute "corpus_id"  [union-attr]
opencontractserver/tests/test_personal_corpus.py:948: error: Argument "file_type" to "_create_content_file" has incompatible type "None"; expected "str"  [arg-type]
opencontractserver/tests/test_personal_corpus.py:953: error: Item "None" of "str | None" has no attribute "endswith"  [union-attr]
opencontractserver/tests/test_personal_corpus.py:986: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_personal_corpus.py:990: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_pipeline_component_base.py:229: error: Item "None" of "Any | None" has no attribute "timeout"  [union-attr]
opencontractserver/tests/test_pipeline_component_base.py:230: error: Item "None" of "Any | None" has no attribute "debug"  [union-attr]
opencontractserver/tests/test_pipeline_component_base.py:241: error: Item "None" of "Any | None" has no attribute "api_key"  [union-attr]
opencontractserver/tests/test_pipeline_component_base.py:242: error: Item "None" of "Any | None" has no attribute "timeout"  [union-attr]
opencontractserver/tests/test_pipeline_component_base.py:243: error: Item "None" of "Any | None" has no attribute "debug"  [union-attr]
opencontractserver/tests/test_pipeline_component_base.py:250: error: Item "None" of "Any | None" has no attribute "timeout"  [union-attr]
opencontractserver/tests/test_pipeline_component_base.py:259: error: Item "None" of "Any | None" has no attribute "timeout"  [union-attr]
opencontractserver/tests/test_pipeline_component_base.py:331: error: Item "None" of "Any | None" has no attribute "timeout"  [union-attr]
opencontractserver/tests/test_pipeline_component_queries.py:121: error: "type[PipelineComponentQueriesTestCase]" has no attribute "post_processor_code"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:148: error: "type[PipelineComponentQueriesTestCase]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:151: error: "type[PipelineComponentQueriesTestCase]" has no attribute "embedder_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:154: error: "type[PipelineComponentQueriesTestCase]" has no attribute "thumbnailer_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:161: error: "type[PipelineComponentQueriesTestCase]" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:170: error: "type[PipelineComponentQueriesTestCase]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:171: error: "type[PipelineComponentQueriesTestCase]" has no attribute "embedder_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:173: error: "type[PipelineComponentQueriesTestCase]" has no attribute "thumbnailer_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:176: error: "type[PipelineComponentQueriesTestCase]" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:190: error: "type[PipelineComponentQueriesTestCase]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:191: error: "type[PipelineComponentQueriesTestCase]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:192: error: "type[PipelineComponentQueriesTestCase]" has no attribute "parser_code"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:193: error: "type[PipelineComponentQueriesTestCase]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:193: error: "type[PipelineComponentQueriesTestCase]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:195: error: "type[PipelineComponentQueriesTestCase]" has no attribute "embedder_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:196: error: "type[PipelineComponentQueriesTestCase]" has no attribute "embedder_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:197: error: "type[PipelineComponentQueriesTestCase]" has no attribute "embedder_code"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:198: error: "type[PipelineComponentQueriesTestCase]" has no attribute "embedder_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:198: error: "type[PipelineComponentQueriesTestCase]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:200: error: "type[PipelineComponentQueriesTestCase]" has no attribute "thumbnailer_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:201: error: "type[PipelineComponentQueriesTestCase]" has no attribute "thumbnailer_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:202: error: "type[PipelineComponentQueriesTestCase]" has no attribute "thumbnailer_code"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:203: error: "type[PipelineComponentQueriesTestCase]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:203: error: "type[PipelineComponentQueriesTestCase]" has no attribute "thumbnailer_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:206: error: "type[PipelineComponentQueriesTestCase]" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:207: error: "type[PipelineComponentQueriesTestCase]" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:208: error: "type[PipelineComponentQueriesTestCase]" has no attribute "post_processor_code"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:209: error: "type[PipelineComponentQueriesTestCase]" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:209: error: "type[PipelineComponentQueriesTestCase]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:214: error: "type[PipelineComponentQueriesTestCase]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:217: error: "type[PipelineComponentQueriesTestCase]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:26: error: "type[PipelineComponentQueriesTestCase]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:302: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:353: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:56: error: "type[PipelineComponentQueriesTestCase]" has no attribute "parser_code"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:580: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_pipeline_component_queries.py:621: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:77: error: "type[PipelineComponentQueriesTestCase]" has no attribute "embedder_code"  [attr-defined]
opencontractserver/tests/test_pipeline_component_queries.py:99: error: "type[PipelineComponentQueriesTestCase]" has no attribute "thumbnailer_code"  [attr-defined]
opencontractserver/tests/test_pipeline_hardening.py:148: error: Item "None" of "Notification | None" has no attribute "data"  [union-attr]
opencontractserver/tests/test_pipeline_hardening.py:303: error: Library stubs not installed for "requests.exceptions"  [import-untyped]
opencontractserver/tests/test_pipeline_registry.py:145: error: Item "None" of "PipelineComponentDefinition | None" has no attribute "name"  [union-attr]
opencontractserver/tests/test_pipeline_registry.py:160: error: Item "None" of "PipelineComponentDefinition | None" has no attribute "class_name"  [union-attr]
opencontractserver/tests/test_pipeline_registry.py:232: error: Item "None" of "PipelineComponentDefinition | None" has no attribute "name"  [union-attr]
opencontractserver/tests/test_pipeline_registry.py:305: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
opencontractserver/tests/test_pipeline_registry.py:96: error: Property "name" defined in "PipelineComponentDefinition" is read-only  [misc]
opencontractserver/tests/test_pipeline_settings.py:1246: error: Argument 1 to "bytes" has incompatible type "bytes | memoryview[int] | None"; expected "Iterable[SupportsIndex] | SupportsIndex | SupportsBytes | Buffer"  [arg-type]
opencontractserver/tests/test_pipeline_settings.py:1249: error: Argument 1 to "bytes" has incompatible type "bytes | memoryview[int] | None"; expected "Iterable[SupportsIndex] | SupportsIndex | SupportsBytes | Buffer"  [arg-type]
opencontractserver/tests/test_pipeline_settings.py:1748: error: Item "None" of "PipelineComponentDefinition | None" has no attribute "name"  [union-attr]
opencontractserver/tests/test_pipeline_settings.py:774: error: Value of type "Any | None" is not indexable  [index]
opencontractserver/tests/test_pipeline_settings.py:959: error: Argument 1 to "bytes" has incompatible type "bytes | memoryview[int] | None"; expected "Iterable[SupportsIndex] | SupportsIndex | SupportsBytes | Buffer"  [arg-type]
opencontractserver/tests/test_pipeline_settings_schema.py:323: error: Item "None" of "Any | None" has no attribute "api_key"  [union-attr]
opencontractserver/tests/test_pipeline_settings_schema.py:324: error: Item "None" of "Any | None" has no attribute "service_url"  [union-attr]
opencontractserver/tests/test_pipeline_settings_schema.py:554: error: Item "None" of "PipelineSetting | None" has no attribute "setting_type"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:118: error: "type[TestPipelineUtils]" has no attribute "thumbnailer_code"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:140: error: "type[TestPipelineUtils]" has no attribute "post_processor_code"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:179: error: "type[TestPipelineUtils]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:182: error: "type[TestPipelineUtils]" has no attribute "embedder_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:185: error: "type[TestPipelineUtils]" has no attribute "thumbnailer_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:192: error: "type[TestPipelineUtils]" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:201: error: "type[TestPipelineUtils]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:202: error: "type[TestPipelineUtils]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:203: error: "type[TestPipelineUtils]" has no attribute "parser_code"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:204: error: "type[TestPipelineUtils]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:204: error: "type[TestPipelineUtils]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:206: error: "type[TestPipelineUtils]" has no attribute "embedder_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:207: error: "type[TestPipelineUtils]" has no attribute "embedder_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:208: error: "type[TestPipelineUtils]" has no attribute "embedder_code"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:209: error: "type[TestPipelineUtils]" has no attribute "embedder_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:209: error: "type[TestPipelineUtils]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:211: error: "type[TestPipelineUtils]" has no attribute "thumbnailer_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:212: error: "type[TestPipelineUtils]" has no attribute "thumbnailer_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:213: error: "type[TestPipelineUtils]" has no attribute "thumbnailer_code"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:214: error: "type[TestPipelineUtils]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:214: error: "type[TestPipelineUtils]" has no attribute "thumbnailer_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:216: error: "type[TestPipelineUtils]" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:217: error: "type[TestPipelineUtils]" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:218: error: "type[TestPipelineUtils]" has no attribute "post_processor_code"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:219: error: "type[TestPipelineUtils]" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:219: error: "type[TestPipelineUtils]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:225: error: "type[TestPipelineUtils]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:226: error: "type[TestPipelineUtils]" has no attribute "parser_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:280: error: "type[TestPipelineUtils]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:289: error: "TestPipelineUtils" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:290: error: "TestPipelineUtils" has no attribute "post_processor_path"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:291: error: "TestPipelineUtils" has no attribute "post_processor_code"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:313: error: "type" has no attribute "title"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:320: error: "type" has no attribute "title"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:327: error: "type" has no attribute "title"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:359: error: Argument 1 to "get_components_by_mimetype" has incompatible type "str"; expected "FileTypeEnum | None"  [arg-type]
opencontractserver/tests/test_pipeline_utils.py:374: error: Argument 1 to "get_components_by_mimetype" has incompatible type "str"; expected "FileTypeEnum | None"  [arg-type]
opencontractserver/tests/test_pipeline_utils.py:395: error: Invalid "type: ignore" comment  [syntax]
opencontractserver/tests/test_pipeline_utils.py:39: error: "type[TestPipelineUtils]" has no attribute "test_files"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:423: error: Invalid "type: ignore" comment  [syntax]
opencontractserver/tests/test_pipeline_utils.py:42: error: "type[TestPipelineUtils]" has no attribute "parser_code"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:431: error: Invalid "type: ignore" comment  [syntax]
opencontractserver/tests/test_pipeline_utils.py:438: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/test_pipeline_utils.py:446: error: Unused "type: ignore" comment  [unused-ignore]
opencontractserver/tests/test_pipeline_utils.py:467: error: Extra key "icon" for TypedDict "OpenContractCorpusType"  [typeddict-unknown-key]
opencontractserver/tests/test_pipeline_utils.py:467: error: Missing keys ("icon_data", "icon_name", "creator", "id", "label_set") for TypedDict "OpenContractCorpusType"  [typeddict-item]
opencontractserver/tests/test_pipeline_utils.py:472: error: Extra key "icon" for TypedDict "OpenContractsLabelSetType"  [typeddict-unknown-key]
opencontractserver/tests/test_pipeline_utils.py:472: error: Missing keys ("id", "icon_data", "icon_name", "creator") for TypedDict "OpenContractsLabelSetType"  [typeddict-item]
opencontractserver/tests/test_pipeline_utils.py:547: error: Argument 1 to "get_dimension_from_embedder" has incompatible type "type[BaseEmbedder] | None"; expected "type[BaseEmbedder] | str"  [arg-type]
opencontractserver/tests/test_pipeline_utils.py:548: error: Argument 1 to "get_dimension_from_embedder" has incompatible type "type[BaseEmbedder] | None"; expected "type[BaseEmbedder] | str"  [arg-type]
opencontractserver/tests/test_pipeline_utils.py:594: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:598: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:640: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:644: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:647: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:64: error: "type[TestPipelineUtils]" has no attribute "embedder_code"  [attr-defined]
opencontractserver/tests/test_pipeline_utils.py:651: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:654: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:658: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:662: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pipeline_utils.py:687: error: Item "None" of "type[BaseEmbedder] | None" has no attribute "title"  [union-attr]
opencontractserver/tests/test_pydantic_ai_agents.py:1062: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:1063: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:1220: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:1221: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:565: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:566: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:567: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:652: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:653: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:654: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents.py:655: error: "CoreAgent" has no attribute "conversation_manager"; maybe "get_conversation_messages"?  [attr-defined]
opencontractserver/tests/test_pydantic_ai_agents.py:700: error: Value of type "dict[str, Any] | None" is not indexable  [index]
opencontractserver/tests/test_pydantic_ai_agents.py:709: error: Argument 1 to "len" has incompatible type "list[float] | None"; expected "Sized"  [arg-type]
opencontractserver/tests/test_pydantic_ai_agents.py:74: error: Need type annotation for "sources" (hint: "sources: list[<type>] = ...")  [var-annotated]
opencontractserver/tests/test_pydantic_ai_agents.py:85: error: Need type annotation for "sources" (hint: "sources: list[<type>] = ...")  [var-annotated]
opencontractserver/tests/test_pydantic_ai_agents.py:982: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/test_pydantic_ai_agents_integration.py:476: error: Item "None" of "PaymentInfo | None" has no attribute "amount"  [union-attr]
opencontractserver/tests/test_pydantic_ai_agents_integration.py:477: error: Item "None" of "PaymentInfo | None" has no attribute "deadline"  [union-attr]
opencontractserver/tests/test_pydantic_ai_agents_integration.py:478: error: Item "None" of "PaymentInfo | None" has no attribute "method"  [union-attr]
opencontractserver/tests/test_pydantic_ai_conversation_adapters.py:146: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_pydantic_ai_conversation_adapters.py:147: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_pydantic_ai_conversation_adapters.py:232: error: Need type annotation for "results" (hint: "results: list[<type>] = ...")  [var-annotated]
opencontractserver/tests/test_pydantic_ai_conversation_adapters.py:243: error: Need type annotation for "results" (hint: "results: list[<type>] = ...")  [var-annotated]
opencontractserver/tests/test_pydantic_ai_conversation_adapters.py:63: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_pydantic_ai_conversation_adapters.py:64: error: Argument "instance" to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_pydantic_ai_integration_testmodel.py:510: error: Item "None" of "PaymentInfo | None" has no attribute "amount"  [union-attr]
opencontractserver/tests/test_pydantic_ai_integration_testmodel.py:511: error: Item "None" of "PaymentInfo | None" has no attribute "deadline"  [union-attr]
opencontractserver/tests/test_pydantic_ai_integration_testmodel.py:512: error: Item "None" of "PaymentInfo | None" has no attribute "method"  [union-attr]
opencontractserver/tests/test_pydantic_ai_tools_module.py:257: error: "type[TestCheckUserPermissions]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:260: error: "type[TestCheckUserPermissions]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:261: error: "type[TestCheckUserPermissions]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:265: error: "type[TestCheckUserPermissions]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:267: error: "type[TestCheckUserPermissions]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:267: error: "type[TestCheckUserPermissions]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:267: error: "type[TestCheckUserPermissions]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:308: error: "TestCheckUserPermissions" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:324: error: "TestCheckUserPermissions" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:341: error: "TestCheckUserPermissions" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:517: error: "type[TestValidateResourceIdParams]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:522: error: "type[TestValidateResourceIdParams]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:523: error: "type[TestValidateResourceIdParams]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:528: error: "type[TestValidateResourceIdParams]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:531: error: "type[TestValidateResourceIdParams]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:531: error: "type[TestValidateResourceIdParams]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:531: error: "type[TestValidateResourceIdParams]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:546: error: "TestValidateResourceIdParams" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:547: error: "TestValidateResourceIdParams" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:548: error: "TestValidateResourceIdParams" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:552: error: "TestValidateResourceIdParams" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:561: error: "TestValidateResourceIdParams" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:562: error: "TestValidateResourceIdParams" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:563: error: "TestValidateResourceIdParams" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:567: error: "TestValidateResourceIdParams" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:576: error: "TestValidateResourceIdParams" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:577: error: "TestValidateResourceIdParams" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:578: error: "TestValidateResourceIdParams" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:593: error: "TestValidateResourceIdParams" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:594: error: "TestValidateResourceIdParams" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:595: error: "TestValidateResourceIdParams" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:740: error: "type[TestContextInjectionIntegration]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:745: error: "type[TestContextInjectionIntegration]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:746: error: "type[TestContextInjectionIntegration]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:751: error: "type[TestContextInjectionIntegration]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:754: error: "type[TestContextInjectionIntegration]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:754: error: "type[TestContextInjectionIntegration]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:754: error: "type[TestContextInjectionIntegration]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:759: error: "TestContextInjectionIntegration" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:767: error: "TestContextInjectionIntegration" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:773: error: "TestContextInjectionIntegration" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:780: error: "TestContextInjectionIntegration" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:786: error: "TestContextInjectionIntegration" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_pydantic_ai_tools_module.py:793: error: "TestContextInjectionIntegration" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_query_optimizer_structural_sets.py:146: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_optimizer_structural_sets.py:149: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_optimizer_structural_sets.py:246: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_optimizer_structural_sets.py:248: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_optimizer_structural_sets.py:299: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_optimizer_structural_sets.py:391: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_optimizer_structural_sets.py:394: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_resolvers.py:108: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_resolvers.py:131: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:155: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:181: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:203: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_resolvers.py:266: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:331: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_resolvers.py:346: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_resolvers.py:381: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:409: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:437: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:468: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:499: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:50: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_resolvers.py:526: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_resolvers.py:541: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_query_resolvers.py:578: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:591: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:607: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:682: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:710: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:746: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:775: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_query_resolvers.py:86: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_rate_limiting.py:567: error: Cannot infer value of type parameter "_T" of "assertGreater" of "TestCase"  [misc]
opencontractserver/tests/test_rate_limiting.py:568: error: Argument 1 to "assertGreater" of "TestCase" has incompatible type "int | None"; expected "SupportsDunderGT[Any]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:110: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:111: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:115: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:118: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:208: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:211: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:414: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:417: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:455: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_relationship_mutation_permissions.py:458: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_resolvers.py:109: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:110: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:113: error: "type[PermissionBasedVisibilityTest]" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_resolvers.py:116: error: "type[PermissionBasedVisibilityTest]" has no attribute "anonymous_user"  [attr-defined]
opencontractserver/tests/test_resolvers.py:119: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:120: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:122: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:123: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:125: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:126: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:128: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:129: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:135: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:135: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:137: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:137: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:145: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:146: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:148: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:149: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:151: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:152: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:154: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:155: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:161: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:161: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:162: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:162: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:165: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:165: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:166: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:166: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:169: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:169: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:170: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:170: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:172: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:172: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:173: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:173: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:179: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:179: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:181: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:181: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:189: error: "type[PermissionBasedVisibilityTest]" has no attribute "test_label"  [attr-defined]
opencontractserver/tests/test_resolvers.py:190: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:192: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_resolvers.py:193: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:194: error: "type[PermissionBasedVisibilityTest]" has no attribute "test_label"  [attr-defined]
opencontractserver/tests/test_resolvers.py:195: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:198: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_annotation"  [attr-defined]
opencontractserver/tests/test_resolvers.py:199: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:200: error: "type[PermissionBasedVisibilityTest]" has no attribute "test_label"  [attr-defined]
opencontractserver/tests/test_resolvers.py:201: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:204: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc_annotation"  [attr-defined]
opencontractserver/tests/test_resolvers.py:205: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:206: error: "type[PermissionBasedVisibilityTest]" has no attribute "test_label"  [attr-defined]
opencontractserver/tests/test_resolvers.py:207: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:215: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:216: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc_annotation"  [attr-defined]
opencontractserver/tests/test_resolvers.py:219: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:220: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc_annotation"  [attr-defined]
opencontractserver/tests/test_resolvers.py:262: error: "QuerySet[Any, Any]" has no attribute "_prefetch_related_lookups"; maybe "prefetch_related"?  [attr-defined]
opencontractserver/tests/test_resolvers.py:300: error: "PermissionBasedVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:307: error: "PermissionBasedVisibilityTest" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:316: error: "PermissionBasedVisibilityTest" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_resolvers.py:322: error: "PermissionBasedVisibilityTest" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:326: error: "PermissionBasedVisibilityTest" has no attribute "anonymous_user"  [attr-defined]
opencontractserver/tests/test_resolvers.py:332: error: "PermissionBasedVisibilityTest" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_resolvers.py:338: error: "PermissionBasedVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:350: error: "PermissionBasedVisibilityTest" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:358: error: "PermissionBasedVisibilityTest" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_resolvers.py:364: error: "PermissionBasedVisibilityTest" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:367: error: "PermissionBasedVisibilityTest" has no attribute "anonymous_user"  [attr-defined]
opencontractserver/tests/test_resolvers.py:373: error: "PermissionBasedVisibilityTest" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_resolvers.py:378: error: "PermissionBasedVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:387: error: "PermissionBasedVisibilityTest" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_resolvers.py:390: error: "PermissionBasedVisibilityTest" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_resolvers.py:394: error: "PermissionBasedVisibilityTest" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_resolvers.py:396: error: "PermissionBasedVisibilityTest" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_resolvers.py:397: error: "PermissionBasedVisibilityTest" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_resolvers.py:400: error: "PermissionBasedVisibilityTest" has no attribute "anonymous_user"  [attr-defined]
opencontractserver/tests/test_resolvers.py:412: error: "PermissionBasedVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_resolvers.py:425: error: "PermissionBasedVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_security_hardening.py:178: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_security_hardening.py:194: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_security_hardening.py:201: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_security_hardening.py:208: error: "_MonkeyPatchedWSGIResponse" has no attribute "url"  [attr-defined]
opencontractserver/tests/test_security_hardening.py:239: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:246: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:368: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:374: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:480: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:489: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:489: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:499: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:499: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:567: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:675: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:682: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:768: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:776: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_security_hardening.py:776: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Fieldset"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_security_headers_middleware.py:154: error: "WSGIRequest" has no attribute "csp_nonce"  [attr-defined]
opencontractserver/tests/test_security_headers_middleware.py:180: error: "WSGIRequest" has no attribute "csp_nonce"  [attr-defined]
opencontractserver/tests/test_security_headers_middleware.py:49: error: Item "None" of "Match[str] | None" has no attribute "group"  [union-attr]
opencontractserver/tests/test_security_headers_middleware.py:95: error: "WSGIRequest" has no attribute "csp_nonce"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:135: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:164: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:198: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:226: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:255: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:311: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:339: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:367: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:407: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:438: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_semantic_search_graphql.py:476: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_semantic_search_graphql.py:72: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_semantic_search_graphql.py:83: error: Argument "user_val" to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_shared_utils.py:152: error: Argument 1 to "sanitize_slug" has incompatible type "None"; expected "str"  [arg-type]
opencontractserver/tests/test_sidecar_import.py:1645: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_sidecar_import.py:1782: error: List item 0 has incompatible type "str"; expected "dict[Any, Any]"  [list-item]
opencontractserver/tests/test_sidecar_import.py:1799: error: List item 0 has incompatible type "str"; expected "dict[Any, Any]"  [list-item]
opencontractserver/tests/test_sidecar_import.py:1838: error: List item 1 has incompatible type "int"; expected "str"  [list-item]
opencontractserver/tests/test_sidecar_import.py:1838: error: List item 2 has incompatible type "dict[str, bool]"; expected "str"  [list-item]
opencontractserver/tests/test_sidecar_import.py:1865: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_sidecar_import.py:335: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_sidecar_import.py:437: error: Item "None" of "DocumentPath | None" has no attribute "document"  [union-attr]
opencontractserver/tests/test_sidecar_import.py:549: error: Item "None" of "Relationship | None" has no attribute "source_annotations"  [union-attr]
opencontractserver/tests/test_sidecar_import.py:550: error: Item "None" of "Relationship | None" has no attribute "target_annotations"  [union-attr]
opencontractserver/tests/test_sidecar_import.py:551: error: Item "None" of "AnnotationLabel | Any | None" has no attribute "text"  [union-attr]
opencontractserver/tests/test_sidecar_import.py:551: error: Item "None" of "Relationship | None" has no attribute "relationship_label"  [union-attr]
opencontractserver/tests/test_sidecar_import.py:699: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_sidecar_import.py:699: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "LabelSet"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_single_doc_analyzer_and_extract.py:163: error: Argument 1 to "create_mock_submission_response" has incompatible type "str"; expected "int"  [arg-type]
opencontractserver/tests/test_single_doc_analyzer_and_extract.py:183: error: Item "None" of "Analyzer | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_single_doc_analyzer_and_extract.py:190: error: Item "None" of "Analyzer | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_single_doc_analyzer_and_extract.py:203: error: Argument "doc_ids" to "generate_random_analyzer_return_values" has incompatible type "list[int]"; expected "list[int | str] | None"  [arg-type]
opencontractserver/tests/test_single_doc_analyzer_and_extract.py:203: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_single_doc_analyzer_and_extract.py:203: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_single_doc_analyzer_and_extract.py:305: error: Item "None" of "Document | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_single_doc_analyzer_and_extract.py:354: error: Item "None" of "Analyzer | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_slug_resolvers.py:100: error: "SlugResolverTestCase" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:100: error: "SlugResolverTestCase" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:100: error: "SlugResolverTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:103: error: "SlugResolverTestCase" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:106: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:109: error: "SlugResolverTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:110: error: "SlugResolverTestCase" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:111: error: "SlugResolverTestCase" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:21: error: "type[SlugResolverTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:23: error: "type[SlugResolverTestCase]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:23: error: "type[SlugResolverTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:25: error: "type[SlugResolverTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:27: error: "type[SlugResolverTestCase]" has no attribute "original_doc_slug"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:30: error: "type[SlugResolverTestCase]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:30: error: "type[SlugResolverTestCase]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:30: error: "type[SlugResolverTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:32: error: "type[SlugResolverTestCase]" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:32: error: "type[SlugResolverTestCase]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:34: error: "type[SlugResolverTestCase]" has no attribute "user_b"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:35: error: "type[SlugResolverTestCase]" has no attribute "corpus_b"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:35: error: "type[SlugResolverTestCase]" has no attribute "user_b"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:36: error: "type[SlugResolverTestCase]" has no attribute "doc_b"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:37: error: "type[SlugResolverTestCase]" has no attribute "user_b"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:41: error: "SlugResolverTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:45: error: "SlugResolverTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:47: error: "SlugResolverTestCase" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:49: error: "SlugResolverTestCase" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:49: error: "SlugResolverTestCase" has no attribute "doc2"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:51: error: "SlugResolverTestCase" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:51: error: "SlugResolverTestCase" has no attribute "corpus_b"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:53: error: "SlugResolverTestCase" has no attribute "doc_b"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:53: error: "SlugResolverTestCase" has no attribute "original_doc_slug"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:61: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:61: error: "SlugResolverTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:63: error: "SlugResolverTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:71: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:72: error: "SlugResolverTestCase" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:72: error: "SlugResolverTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:75: error: "SlugResolverTestCase" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:83: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:84: error: "SlugResolverTestCase" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:84: error: "SlugResolverTestCase" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:87: error: "SlugResolverTestCase" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_slug_resolvers.py:98: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:131: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:154: error: Item "None" of "AnnotationLabel | None" has no attribute "color"  [union-attr]
opencontractserver/tests/test_smart_label_mutations.py:155: error: Item "None" of "AnnotationLabel | None" has no attribute "description"  [union-attr]
opencontractserver/tests/test_smart_label_mutations.py:204: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:262: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:339: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:376: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:394: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:437: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:447: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:485: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:525: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_smart_label_mutations.py:52: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_smart_label_mutations.py:62: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_smart_label_mutations.py:62: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "LabelSet"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_smart_label_mutations.py:72: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_structural_annotation_portability.py:210: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "structural_relationships"  [union-attr]
opencontractserver/tests/test_structural_annotation_sets.py:368: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "structural_annotations"  [union-attr]
opencontractserver/tests/test_structural_annotation_sets.py:371: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "structural_annotations"  [union-attr]
opencontractserver/tests/test_structural_annotation_sets.py:714: error: Item "None" of "Annotation | None" has no attribute "content_modalities"  [union-attr]
opencontractserver/tests/test_structural_annotation_sets.py:715: error: Item "None" of "Annotation | None" has no attribute "content_modalities"  [union-attr]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:237: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:302: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:344: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:385: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:461: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:528: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:560: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:620: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:625: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:63: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:672: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:686: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:719: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:737: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:751: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:77: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:782: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:794: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:895: error: Item "None" of "Any | None" has no attribute "structural"  [union-attr]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:896: error: Item "None" of "Any | None" has no attribute "relationship_label"  [union-attr]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:935: error: Item "None" of "Any | None" has no attribute "structural"  [union-attr]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:936: error: Item "None" of "Any | None" has no attribute "relationship_label"  [union-attr]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:939: error: Item "None" of "Any | None" has no attribute "source_annotations"  [union-attr]
opencontractserver/tests/test_structural_annotations_graphql_backwards_compat.py:940: error: Item "None" of "Any | None" has no attribute "target_annotations"  [union-attr]
opencontractserver/tests/test_structural_protection.py:88: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_structural_protection.py:89: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_structured_response_api.py:53: error: Function "builtins.any" is not valid as a type  [valid-type]
opencontractserver/tests/test_structured_response_api.py:53: note: Perhaps you meant "typing.Any" instead of "any"?
opencontractserver/tests/test_structured_response_simple.py:47: error: Function "builtins.any" is not valid as a type  [valid-type]
opencontractserver/tests/test_structured_response_simple.py:47: note: Perhaps you meant "typing.Any" instead of "any"?
opencontractserver/tests/test_task_decorators.py:111: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:151: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:171: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:189: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:199: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:209: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:255: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:268: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:281: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:296: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:306: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:31: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:335: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:351: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:366: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:380: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:390: error: callable? not callable  [misc]
opencontractserver/tests/test_task_decorators.py:402: error: callable? not callable  [misc]
opencontractserver/tests/test_telemetry.py:248: error: "type[TelemetryMigrationTestCase]" has no attribute "migration_module"  [attr-defined]
opencontractserver/tests/test_telemetry.py:261: error: "TelemetryMigrationTestCase" has no attribute "migration_module"  [attr-defined]
opencontractserver/tests/test_telemetry.py:285: error: "TelemetryMigrationTestCase" has no attribute "migration_module"  [attr-defined]
opencontractserver/tests/test_telemetry.py:300: error: "TelemetryMigrationTestCase" has no attribute "migration_module"  [attr-defined]
opencontractserver/tests/test_telemetry.py:308: error: "TelemetryMigrationTestCase" has no attribute "migration_module"  [attr-defined]
opencontractserver/tests/test_text_thumbnails.py:31: error: Incompatible types in assignment (expression has type "Image", variable has type "ImageFile")  [assignment]
opencontractserver/tests/test_thread_corpus_actions.py:1061: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:106: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:109: error: "TestModerationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:1108: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:1236: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:124: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:126: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:1295: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:133: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:135: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:1479: error: Item "None" of "AgentActionResult | None" has no attribute "status"  [union-attr]
opencontractserver/tests/test_thread_corpus_actions.py:1480: error: Item "None" of "AgentActionResult | None" has no attribute "error_message"  [union-attr]
opencontractserver/tests/test_thread_corpus_actions.py:152: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:1539: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:154: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:1590: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:166: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:168: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:175: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:183: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:198: error: Item "None" of "ModerationAction | None" has no attribute "reason"  [union-attr]
opencontractserver/tests/test_thread_corpus_actions.py:203: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:208: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:217: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:222: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:236: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:248: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:253: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:268: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:270: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:276: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:289: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:296: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:310: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:314: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:322: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:390: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:424: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:467: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:485: error: "type[TestCorpusActionExecutionModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:490: error: "type[TestCorpusActionExecutionModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:492: error: "type[TestCorpusActionExecutionModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:494: error: "type[TestCorpusActionExecutionModel]" has no attribute "agent_config"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:496: error: "type[TestCorpusActionExecutionModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:498: error: "type[TestCorpusActionExecutionModel]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:500: error: "type[TestCorpusActionExecutionModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:501: error: "type[TestCorpusActionExecutionModel]" has no attribute "agent_config"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:504: error: "type[TestCorpusActionExecutionModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:512: error: "TestCorpusActionExecutionModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:513: error: "TestCorpusActionExecutionModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:515: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:521: error: "TestCorpusActionExecutionModel" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:522: error: "TestCorpusActionExecutionModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:528: error: "TestCorpusActionExecutionModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:540: error: "TestCorpusActionExecutionModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:541: error: "TestCorpusActionExecutionModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:543: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:550: error: "TestCorpusActionExecutionModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:552: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:558: error: "TestCorpusActionExecutionModel" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:559: error: "TestCorpusActionExecutionModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:566: error: "TestCorpusActionExecutionModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:578: error: "TestCorpusActionExecutionModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:579: error: "TestCorpusActionExecutionModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:581: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:587: error: "TestCorpusActionExecutionModel" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:588: error: "TestCorpusActionExecutionModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:594: error: "TestCorpusActionExecutionModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:607: error: "type[TestAgentActionResultModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:612: error: "type[TestAgentActionResultModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:614: error: "type[TestAgentActionResultModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:616: error: "type[TestAgentActionResultModel]" has no attribute "agent_config"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:618: error: "type[TestAgentActionResultModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:620: error: "type[TestAgentActionResultModel]" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:622: error: "type[TestAgentActionResultModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:623: error: "type[TestAgentActionResultModel]" has no attribute "agent_config"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:626: error: "type[TestAgentActionResultModel]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:634: error: "TestAgentActionResultModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:635: error: "TestAgentActionResultModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:637: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:641: error: "TestAgentActionResultModel" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:644: error: "TestAgentActionResultModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:656: error: "TestAgentActionResultModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:657: error: "TestAgentActionResultModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:659: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:666: error: "TestAgentActionResultModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:668: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:672: error: "TestAgentActionResultModel" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:676: error: "TestAgentActionResultModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:687: error: "TestAgentActionResultModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:688: error: "TestAgentActionResultModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:690: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:694: error: "TestAgentActionResultModel" has no attribute "corpus_action"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:697: error: "TestAgentActionResultModel" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:72: error: "type[TestModerationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:732: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/test_thread_corpus_actions.py:753: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/test_thread_corpus_actions.py:770: error: Value of type "dict[Any, Any] | None" is not indexable  [index]
opencontractserver/tests/test_thread_corpus_actions.py:77: error: "type[TestModerationTools]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:799: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:79: error: "type[TestModerationTools]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:87: error: "TestModerationTools" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:88: error: "TestModerationTools" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:91: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:933: error: "Conversation" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_thread_corpus_actions.py:943: error: "ChatMessage" has no attribute "_skip_signals"  [attr-defined]
opencontractserver/tests/test_threading.py:108: error: "type[TestAgentTypes]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:114: error: "type[TestAgentTypes]" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_threading.py:116: error: "type[TestAgentTypes]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:122: error: "TestAgentTypes" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_threading.py:125: error: "TestAgentTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:133: error: "TestAgentTypes" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_threading.py:137: error: "TestAgentTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:146: error: "TestAgentTypes" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_threading.py:150: error: "TestAgentTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:159: error: "TestAgentTypes" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_threading.py:163: error: "TestAgentTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:167: error: "TestAgentTypes" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_threading.py:171: error: "TestAgentTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:175: error: "TestAgentTypes" has no attribute "conversation"  [attr-defined]
opencontractserver/tests/test_threading.py:178: error: "TestAgentTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:200: error: "type[TestThreadedReplies]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:206: error: "type[TestThreadedReplies]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:209: error: "type[TestThreadedReplies]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:215: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:218: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:227: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:230: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:234: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:238: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:249: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:252: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:256: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:260: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:264: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:268: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:272: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:276: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:293: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:296: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:300: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:304: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:308: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:312: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:316: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:320: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:331: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:334: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:338: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:342: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:346: error: "TestThreadedReplies" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_threading.py:350: error: "TestThreadedReplies" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:373: error: "type[TestSoftDelete]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:383: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:39: error: "type[TestConversationTypes]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:402: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:409: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:428: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:433: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:451: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:458: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:45: error: "type[TestConversationTypes]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_threading.py:465: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:483: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:48: error: "type[TestConversationTypes]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:507: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:514: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:542: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:548: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:554: error: "TestSoftDelete" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:56: error: "TestConversationTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:573: error: "type[TestBackwardCompatibility]" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:57: error: "TestConversationTypes" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_threading.py:584: error: "TestBackwardCompatibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:592: error: "TestBackwardCompatibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:599: error: "TestBackwardCompatibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:617: error: "TestBackwardCompatibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:623: error: "TestBackwardCompatibility" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:642: error: "type[TestThreadIntegration]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:648: error: "type[TestThreadIntegration]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_threading.py:654: error: "type[TestThreadIntegration]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_threading.py:657: error: "type[TestThreadIntegration]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:668: error: "TestThreadIntegration" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_threading.py:669: error: "TestThreadIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:677: error: "TestThreadIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:687: error: "TestThreadIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:68: error: "TestConversationTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:696: error: "TestThreadIntegration" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_threading.py:69: error: "TestConversationTypes" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_threading.py:705: error: "TestThreadIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:733: error: "TestThreadIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:741: error: "TestThreadIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:749: error: "TestThreadIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:757: error: "TestThreadIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_threading.py:773: error: Item "None" of "ChatMessage | None" has no attribute "id"  [union-attr]
opencontractserver/tests/test_threading.py:80: error: "TestConversationTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_threading.py:86: error: "TestConversationTypes" has no attribute "user"  [attr-defined]
opencontractserver/tests/test_thumbnails.py:186: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_tool_approval_gate.py:129: error: Variable "opencontractserver.tests.test_tool_approval_gate.User" is not valid as a type  [valid-type]
opencontractserver/tests/test_tool_approval_gate.py:129: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
opencontractserver/tests/test_tool_approval_gate.py:158: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_tool_approval_gate.py:159: error: Argument "tools" to "create_document_agent" of "UnifiedAgentFactory" has incompatible type "list[CoreTool]"; expected "list[CoreTool | Callable[..., Any] | str] | None"  [arg-type]
opencontractserver/tests/test_tool_approval_gate.py:159: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
opencontractserver/tests/test_tool_approval_gate.py:159: note: Consider using "Sequence" instead, which is covariant
opencontractserver/tests/test_tool_approval_gate.py:244: error: User? has no attribute "id"  [attr-defined]
opencontractserver/tests/test_txt_ingestor_pipeline.py:65: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "structural_annotations"  [union-attr]
opencontractserver/tests/test_txt_ingestor_pipeline.py:74: error: Item "None" of "Annotation | Any | None" has no attribute "annotation_label"  [union-attr]
opencontractserver/tests/test_txt_ingestor_pipeline.py:75: error: Item "None" of "Annotation | Any | None" has no attribute "annotation_type"  [union-attr]
opencontractserver/tests/test_txt_ingestor_pipeline.py:76: error: Item "None" of "Annotation | Any | None" has no attribute "structural"  [union-attr]
opencontractserver/tests/test_txt_ingestor_pipeline.py:77: error: Item "None" of "Annotation | Any | None" has no attribute "creator"  [union-attr]
opencontractserver/tests/test_txt_ingestor_pipeline.py:80: error: Item "None" of "Annotation | Any | None" has no attribute "json"  [union-attr]
opencontractserver/tests/test_txt_ingestor_pipeline.py:81: error: Item "None" of "Annotation | Any | None" has no attribute "json"  [union-attr]
opencontractserver/tests/test_txt_ingestor_pipeline.py:85: error: Item "None" of "str | Any | None" has no attribute "strip"  [union-attr]
opencontractserver/tests/test_types.py:259: error: Incompatible types (expression has type "str", TypedDict item "label_type" has type "LabelType")  [typeddict-item]
opencontractserver/tests/test_types.py:313: error: Incompatible types (expression has type "str", TypedDict item "id" has type "int")  [typeddict-item]
opencontractserver/tests/test_unified_rate_limiting.py:215: error: Need type annotation for "scope" (hint: "scope: dict[<type>, <type>] = ...")  [var-annotated]
opencontractserver/tests/test_unified_rate_limiting.py:669: error: Accessing "__init__" on an instance is unsound, since instance.__init__ could be from an incompatible subclass  [misc]
opencontractserver/tests/test_unified_rate_limiting.py:675: error: Accessing "__init__" on an instance is unsound, since instance.__init__ could be from an incompatible subclass  [misc]
opencontractserver/tests/test_user_profile.py:159: error: "QuerySet[ChatMessage, ChatMessage]" has no attribute "visible_to_user"  [attr-defined]
opencontractserver/tests/test_user_profile.py:167: error: "QuerySet[ChatMessage, ChatMessage]" has no attribute "visible_to_user"  [attr-defined]
opencontractserver/tests/test_user_profile.py:181: error: "QuerySet[ChatMessage, ChatMessage]" has no attribute "visible_to_user"  [attr-defined]
opencontractserver/tests/test_user_profile.py:189: error: "QuerySet[ChatMessage, ChatMessage]" has no attribute "visible_to_user"  [attr-defined]
opencontractserver/tests/test_user_profile.py:205: error: "QuerySet[Conversation, Conversation]" has no attribute "visible_to_user"  [attr-defined]
opencontractserver/tests/test_user_profile.py:212: error: "QuerySet[Conversation, Conversation]" has no attribute "visible_to_user"  [attr-defined]
opencontractserver/tests/test_v3_migration.py:1015: error: Incompatible type for "content_hash" of "StructuralAnnotationSet" (got "str | None", expected "str | int | Combinable")  [misc]
opencontractserver/tests/test_v3_migration.py:1052: error: Incompatible type for "content_hash" of "StructuralAnnotationSet" (got "str | None", expected "str | int | Combinable")  [misc]
opencontractserver/tests/test_v3_migration.py:443: error: Item "None" of "StructuralAnnotationSet | None" has no attribute "content_hash"  [union-attr]
opencontractserver/tests/test_version_aware_vector_store.py:117: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_version_aware_vector_store.py:420: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_version_aware_vector_store.py:550: error: Argument 2 to "assertIn" of "TestCase" has incompatible type "str | None"; expected "Iterable[Any] | Container[Any]"  [arg-type]
opencontractserver/tests/test_versioning_migration.py:248: error: Unsupported operand types for in ("str | None" and "str")  [operator]
opencontractserver/tests/test_visibility_managers.py:121: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:122: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:125: error: "type[PermissionBasedVisibilityTest]" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:128: error: "type[PermissionBasedVisibilityTest]" has no attribute "anonymous_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:131: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:132: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:134: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:135: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:137: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:138: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:140: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:141: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:147: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:147: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:149: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:149: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:157: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:158: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:160: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:161: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:163: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:164: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:166: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:167: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:173: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:173: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:174: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:174: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:177: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:177: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:178: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:178: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:181: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:181: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:182: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:182: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:184: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:184: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:185: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:185: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:191: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:191: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:193: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:193: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:201: error: "type[PermissionBasedVisibilityTest]" has no attribute "test_label"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:202: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:204: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:205: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:206: error: "type[PermissionBasedVisibilityTest]" has no attribute "test_label"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:207: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:210: error: "type[PermissionBasedVisibilityTest]" has no attribute "private_annotation"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:211: error: "type[PermissionBasedVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:212: error: "type[PermissionBasedVisibilityTest]" has no attribute "test_label"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:213: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:216: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc_annotation"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:217: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:218: error: "type[PermissionBasedVisibilityTest]" has no attribute "test_label"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:219: error: "type[PermissionBasedVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:227: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:228: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc_annotation"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:231: error: "type[PermissionBasedVisibilityTest]" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:232: error: "type[PermissionBasedVisibilityTest]" has no attribute "shared_doc_annotation"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:274: error: "QuerySet[Any, Any]" has no attribute "_prefetch_related_lookups"; maybe "prefetch_related"?  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:311: error: "PermissionBasedVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:318: error: "PermissionBasedVisibilityTest" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:326: error: "PermissionBasedVisibilityTest" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:332: error: "PermissionBasedVisibilityTest" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:335: error: "PermissionBasedVisibilityTest" has no attribute "anonymous_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:341: error: "PermissionBasedVisibilityTest" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:349: error: "PermissionBasedVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:367: error: "PermissionBasedVisibilityTest" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:375: error: "PermissionBasedVisibilityTest" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:381: error: "PermissionBasedVisibilityTest" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:384: error: "PermissionBasedVisibilityTest" has no attribute "anonymous_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:390: error: "PermissionBasedVisibilityTest" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:395: error: "PermissionBasedVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:404: error: "PermissionBasedVisibilityTest" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:407: error: "PermissionBasedVisibilityTest" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:411: error: "PermissionBasedVisibilityTest" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:413: error: "PermissionBasedVisibilityTest" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:414: error: "PermissionBasedVisibilityTest" has no attribute "public_annotation"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:417: error: "PermissionBasedVisibilityTest" has no attribute "anonymous_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:437: error: "PermissionBasedVisibilityTest" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:437: error: "QuerySet[Document, Document]" has no attribute "visible_to_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:438: error: "PermissionBasedVisibilityTest" has no attribute "collaborator"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:441: error: "PermissionBasedVisibilityTest" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:447: error: "PermissionBasedVisibilityTest" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:447: error: "QuerySet[Document, Document]" has no attribute "visible_to_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:448: error: "PermissionBasedVisibilityTest" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:451: error: "PermissionBasedVisibilityTest" has no attribute "shared_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:462: error: "type[NoteVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:463: error: "type[NoteVisibilityTest]" has no attribute "reader"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:464: error: "type[NoteVisibilityTest]" has no attribute "outsider"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:467: error: "type[NoteVisibilityTest]" has no attribute "anon"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:470: error: "type[NoteVisibilityTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:471: error: "type[NoteVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:473: error: "type[NoteVisibilityTest]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:474: error: "type[NoteVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:476: error: "type[NoteVisibilityTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:476: error: "type[NoteVisibilityTest]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:476: error: "type[NoteVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:479: error: "type[NoteVisibilityTest]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:480: error: "type[NoteVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:482: error: "type[NoteVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:483: error: "type[NoteVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:485: error: "type[NoteVisibilityTest]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:485: error: "type[NoteVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:486: error: "type[NoteVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:486: error: "type[NoteVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:490: error: "type[NoteVisibilityTest]" has no attribute "private_note"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:493: error: "type[NoteVisibilityTest]" has no attribute "doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:494: error: "type[NoteVisibilityTest]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:495: error: "type[NoteVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:498: error: "type[NoteVisibilityTest]" has no attribute "public_note"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:501: error: "type[NoteVisibilityTest]" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:502: error: "type[NoteVisibilityTest]" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:503: error: "type[NoteVisibilityTest]" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:508: error: "NoteVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:509: error: "NoteVisibilityTest" has no attribute "private_note"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:510: error: "NoteVisibilityTest" has no attribute "public_note"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:514: error: "NoteVisibilityTest" has no attribute "outsider"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:515: error: "NoteVisibilityTest" has no attribute "private_note"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:518: error: "NoteVisibilityTest" has no attribute "anon"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:519: error: "NoteVisibilityTest" has no attribute "public_note"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:520: error: "NoteVisibilityTest" has no attribute "private_note"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:534: error: "NoteVisibilityTest" has no attribute "public_doc"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:535: error: "NoteVisibilityTest" has no attribute "public_corpus"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:536: error: "NoteVisibilityTest" has no attribute "owner"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:540: error: "NoteVisibilityTest" has no attribute "outsider"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:549: error: "NoteVisibilityTest" has no attribute "outsider"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:549: error: "NoteVisibilityTest" has no attribute "private_note"  [attr-defined]
opencontractserver/tests/test_visibility_managers.py:550: error: "NoteVisibilityTest" has no attribute "private_note"  [attr-defined]
opencontractserver/tests/test_voting.py:100: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:101: error: "TestMessageVoting" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:107: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:109: error: "TestMessageVoting" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:115: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:117: error: "TestMessageVoting" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:123: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:125: error: "TestMessageVoting" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:129: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:131: error: "TestMessageVoting" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:134: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:135: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:136: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:141: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:143: error: "TestMessageVoting" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:157: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:159: error: "TestMessageVoting" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:174: error: "type[TestVoteCountDenormalization]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:180: error: "type[TestVoteCountDenormalization]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:186: error: "type[TestVoteCountDenormalization]" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:192: error: "type[TestVoteCountDenormalization]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_voting.py:195: error: "type[TestVoteCountDenormalization]" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:201: error: "TestVoteCountDenormalization" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_voting.py:204: error: "TestVoteCountDenormalization" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:217: error: "TestVoteCountDenormalization" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:229: error: "TestVoteCountDenormalization" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:241: error: "TestVoteCountDenormalization" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:247: error: "TestVoteCountDenormalization" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:259: error: "TestVoteCountDenormalization" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:265: error: "TestVoteCountDenormalization" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:277: error: "TestVoteCountDenormalization" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:297: error: "TestVoteCountDenormalization" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:313: error: "TestVoteCountDenormalization" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:331: error: "type[TestUserReputation]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:337: error: "type[TestUserReputation]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:343: error: "type[TestUserReputation]" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:349: error: "type[TestUserReputation]" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_voting.py:352: error: "type[TestUserReputation]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:356: error: "type[TestUserReputation]" has no attribute "corpus2"  [attr-defined]
opencontractserver/tests/test_voting.py:359: error: "type[TestUserReputation]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:366: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:371: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:382: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:383: error: "TestUserReputation" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_voting.py:387: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:390: error: "TestUserReputation" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_voting.py:396: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:397: error: "TestUserReputation" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_voting.py:399: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:404: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:405: error: "TestUserReputation" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_voting.py:407: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:40: error: "type[TestMessageVoting]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:416: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:423: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:430: error: "TestUserReputation" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:434: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:444: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:451: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:458: error: "TestUserReputation" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:464: error: "TestUserReputation" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:468: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:46: error: "type[TestMessageVoting]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:477: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:484: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:491: error: "TestUserReputation" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:497: error: "TestUserReputation" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:501: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:511: error: "TestUserReputation" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_voting.py:512: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:519: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:525: error: "TestUserReputation" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:52: error: "type[TestMessageVoting]" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:530: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:530: error: "TestUserReputation" has no attribute "corpus1"  [attr-defined]
opencontractserver/tests/test_voting.py:535: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:543: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:551: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:558: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:565: error: "TestUserReputation" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:571: error: "TestUserReputation" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:575: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:584: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:58: error: "type[TestMessageVoting]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_voting.py:591: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:597: error: "TestUserReputation" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:601: error: "TestUserReputation" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:619: error: "type[TestVoteIntegration]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:61: error: "type[TestMessageVoting]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:625: error: "type[TestVoteIntegration]" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:631: error: "type[TestVoteIntegration]" has no attribute "user3"  [attr-defined]
opencontractserver/tests/test_voting.py:637: error: "type[TestVoteIntegration]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_voting.py:640: error: "type[TestVoteIntegration]" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:650: error: "TestVoteIntegration" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_voting.py:651: error: "TestVoteIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:659: error: "TestVoteIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:65: error: "type[TestMessageVoting]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_voting.py:668: error: "TestVoteIntegration" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:674: error: "TestVoteIntegration" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:681: error: "TestVoteIntegration" has no attribute "user3"  [attr-defined]
opencontractserver/tests/test_voting.py:688: error: "TestVoteIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:68: error: "type[TestMessageVoting]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_voting.py:698: error: "TestVoteIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:699: error: "TestVoteIntegration" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:69: error: "type[TestMessageVoting]" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:706: error: "TestVoteIntegration" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_voting.py:706: error: "TestVoteIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:709: error: "TestVoteIntegration" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_voting.py:709: error: "TestVoteIntegration" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:720: error: "TestVoteIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:727: error: "TestVoteIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:72: error: "type[TestMessageVoting]" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:734: error: "TestVoteIntegration" has no attribute "user2"  [attr-defined]
opencontractserver/tests/test_voting.py:73: error: "type[TestMessageVoting]" has no attribute "thread"  [attr-defined]
opencontractserver/tests/test_voting.py:750: error: "TestVoteIntegration" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:76: error: "type[TestMessageVoting]" has no attribute "author"  [attr-defined]
opencontractserver/tests/test_voting.py:82: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:84: error: "TestMessageVoting" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:88: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:89: error: "TestMessageVoting" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting.py:94: error: "TestMessageVoting" has no attribute "message"  [attr-defined]
opencontractserver/tests/test_voting.py:96: error: "TestMessageVoting" has no attribute "user1"  [attr-defined]
opencontractserver/tests/test_voting_mutations_graphql.py:389: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:391: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:391: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:50: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:53: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:64: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:64: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:67: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:67: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "Conversation"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:77: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:77: error: Argument 2 to "set_permissions_for_obj_to_user" has incompatible type "ChatMessage"; expected "type[Model]"  [arg-type]
opencontractserver/tests/test_voting_mutations_graphql.py:92: error: "Client" has no attribute "execute"  [attr-defined]
opencontractserver/tests/test_web_search_tool.py:129: error: Item "None" of "ToolRegistryEntry | None" has no attribute "tool_class"  [union-attr]
opencontractserver/tests/test_worker_uploads.py:105: error: "TestWorkerAccountModel" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1120: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_worker_uploads.py:116: error: "TestWorkerAccountModel" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1171: error: "type[TestWorkerGraphQLMutations]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1176: error: "type[TestWorkerGraphQLMutations]" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1181: error: "type[TestWorkerGraphQLMutations]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1181: error: "type[TestWorkerGraphQLMutations]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1182: error: "type[TestWorkerGraphQLMutations]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1184: error: "type[TestWorkerGraphQLMutations]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1185: error: "type[TestWorkerGraphQLMutations]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:118: error: "TestWorkerAccountModel" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1211: error: "TestWorkerGraphQLMutations" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1226: error: "TestWorkerGraphQLMutations" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1232: error: "TestWorkerGraphQLMutations" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1248: error: "TestWorkerGraphQLMutations" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1251: error: "TestWorkerGraphQLMutations" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1269: error: "TestWorkerGraphQLMutations" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1272: error: "TestWorkerGraphQLMutations" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1279: error: "TestWorkerGraphQLMutations" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1288: error: "TestWorkerGraphQLMutations" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:128: error: "TestWorkerAccountModel" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1295: error: "TestWorkerGraphQLMutations" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1308: error: "type[TestWorkerGraphQLQueries]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1313: error: "type[TestWorkerGraphQLQueries]" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1318: error: "type[TestWorkerGraphQLQueries]" has no attribute "corpus_creator"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1324: error: "type[TestWorkerGraphQLQueries]" has no attribute "worker"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1327: error: "type[TestWorkerGraphQLQueries]" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1330: error: "type[TestWorkerGraphQLQueries]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1332: error: "type[TestWorkerGraphQLQueries]" has no attribute "corpus_creator"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1334: error: "type[TestWorkerGraphQLQueries]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1336: error: "type[TestWorkerGraphQLQueries]" has no attribute "corpus_creator"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1337: error: "type[TestWorkerGraphQLQueries]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1340: error: "type[TestWorkerGraphQLQueries]" has no attribute "plaintext"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1340: error: "type[TestWorkerGraphQLQueries]" has no attribute "token"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1341: error: "type[TestWorkerGraphQLQueries]" has no attribute "worker"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1342: error: "type[TestWorkerGraphQLQueries]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:134: error: "TestWorkerAccountModel" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1376: error: "TestWorkerGraphQLQueries" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1399: error: "TestWorkerGraphQLQueries" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:141: error: "TestWorkerAccountModel" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1426: error: "TestWorkerGraphQLQueries" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1427: error: "TestWorkerGraphQLQueries" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1445: error: "TestWorkerGraphQLQueries" has no attribute "corpus_creator"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1446: error: "TestWorkerGraphQLQueries" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1458: error: "TestWorkerGraphQLQueries" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1459: error: "TestWorkerGraphQLQueries" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1477: error: "TestWorkerGraphQLQueries" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1478: error: "TestWorkerGraphQLQueries" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1506: error: "TestWorkerGraphQLQueries" has no attribute "corpus_creator"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1507: error: "TestWorkerGraphQLQueries" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1507: error: "TestWorkerGraphQLQueries" has no attribute "worker"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:151: error: "type[TestCorpusAccessTokenModel]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1526: error: "TestWorkerGraphQLQueries" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1527: error: "TestWorkerGraphQLQueries" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1527: error: "TestWorkerGraphQLQueries" has no attribute "worker"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1535: error: "TestWorkerGraphQLQueries" has no attribute "worker"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1536: error: "TestWorkerGraphQLQueries" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1546: error: "TestWorkerGraphQLQueries" has no attribute "corpus_creator"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1559: error: "TestWorkerGraphQLQueries" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:156: error: "type[TestCorpusAccessTokenModel]" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1572: error: "TestWorkerGraphQLQueries" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:157: error: "type[TestCorpusAccessTokenModel]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1585: error: "TestWorkerGraphQLQueries" has no attribute "superuser"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:1598: error: "TestWorkerGraphQLQueries" has no attribute "regular_user"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:159: error: "type[TestCorpusAccessTokenModel]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:160: error: "type[TestCorpusAccessTokenModel]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:162: error: "type[TestCorpusAccessTokenModel]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:164: error: "type[TestCorpusAccessTokenModel]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:165: error: "type[TestCorpusAccessTokenModel]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:171: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:171: error: "TestCorpusAccessTokenModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:180: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:180: error: "TestCorpusAccessTokenModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:186: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:186: error: "TestCorpusAccessTokenModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:192: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:193: error: "TestCorpusAccessTokenModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:199: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:200: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:203: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:203: error: "TestCorpusAccessTokenModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:207: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:208: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:212: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:212: error: "TestCorpusAccessTokenModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:220: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:220: error: "TestCorpusAccessTokenModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:227: error: "TestCorpusAccessTokenModel" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:227: error: "TestCorpusAccessTokenModel" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:255: error: "type[TestWorkerTokenAuthentication]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:260: error: "type[TestWorkerTokenAuthentication]" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:261: error: "type[TestWorkerTokenAuthentication]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:263: error: "type[TestWorkerTokenAuthentication]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:263: error: "type[TestWorkerTokenAuthentication]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:264: error: "type[TestWorkerTokenAuthentication]" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:266: error: "type[TestWorkerTokenAuthentication]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:267: error: "type[TestWorkerTokenAuthentication]" has no attribute "label_set"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:273: error: "TestWorkerTokenAuthentication" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:273: error: "TestWorkerTokenAuthentication" has no attribute "corpus"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:333: error: "TestWorkerTokenAuthentication" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:334: error: "TestWorkerTokenAuthentication" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:341: error: "TestWorkerTokenAuthentication" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:342: error: "TestWorkerTokenAuthentication" has no attribute "account"  [attr-defined]
opencontractserver/tests/test_worker_uploads.py:377: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_worker_uploads.py:740: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_worker_uploads.py:910: error: Item "None" of "Embedding | None" has no attribute "vector_384"  [union-attr]
opencontractserver/tests/test_worker_uploads.py:950: error: Item "None" of "DocumentPath | None" has no attribute "folder"  [union-attr]
opencontractserver/tests/test_worker_uploads.py:95: error: "type[TestWorkerAccountModel]" has no attribute "admin"  [attr-defined]
opencontractserver/tests/test_zip_import_integration.py:1281: error: Item "None" of "AnnotationLabel | None" has no attribute "text"  [union-attr]
opencontractserver/tests/test_zip_import_integration.py:1301: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_zip_import_integration.py:1740: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_zip_import_integration.py:181: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_zip_import_integration.py:397: error: Item "None" of "str | None" has no attribute "startswith"  [union-attr]
opencontractserver/tests/test_zip_import_integration.py:52: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_zip_import_integration.py:615: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_zip_import_integration.py:773: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_zip_import_integration.py:876: error: Argument 1 to "set_permissions_for_obj_to_user" has incompatible type "User"; expected "int | str | type[User?]"  [arg-type]
opencontractserver/tests/test_zip_import_integration.py:939: error: Item "None" of "AnnotationLabel | None" has no attribute "text"  [union-attr]
opencontractserver/tests/websocket/test_agent_permission_escalation.py:128: error: "AgentConfigMixin" has no attribute "user"  [attr-defined]
opencontractserver/tests/websocket/test_agent_permission_escalation.py:136: error: "AgentConfigMixin" has no attribute "user"  [attr-defined]
opencontractserver/tests/websocket/test_agent_permission_escalation.py:566: error: Item "None" of "ToolDefinition | None" has no attribute "requires_write_permission"  [union-attr]
opencontractserver/tests/websocket/test_agent_permission_escalation.py:577: error: Item "None" of "ToolDefinition | None" has no attribute "requires_write_permission"  [union-attr]
opencontractserver/tests/websocket/test_agent_permission_escalation.py:588: error: Item "None" of "ToolDefinition | None" has no attribute "requires_write_permission"  [union-attr]
opencontractserver/tests/websocket/test_agent_permission_escalation.py:604: error: Item "None" of "ToolDefinition | None" has no attribute "requires_write_permission"  [union-attr]
opencontractserver/tests/websocket/test_agent_permission_escalation.py:613: error: Item "None" of "ToolDefinition | None" has no attribute "requires_write_permission"  [union-attr]
opencontractserver/tests/websocket/test_agent_permission_escalation.py:624: error: Item "None" of "ToolDefinition | None" has no attribute "requires_write_permission"  [union-attr]
opencontractserver/tests/websocket/test_unified_agent_consumer.py:698: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/websocket/test_unified_agent_consumer.py:699: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/websocket/test_unified_agent_consumer.py:751: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/websocket/test_unified_agent_consumer.py:752: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/websocket/test_unified_agent_consumer.py:785: error: Cannot assign to a method  [method-assign]
opencontractserver/tests/websocket/test_unified_agent_consumer.py:790: error: Cannot assign to a method  [method-assign]
opencontractserver/users/tasks.py:5: error: Library stubs not installed for "requests"  [import-untyped]
