microsoft / pyright

Static Type Checker for Python
Other
13.12k stars 1.4k forks source link

Ensure default version and platform only once #8802

Closed rchiodo closed 3 weeks ago

rchiodo commented 3 weeks ago

Addresses https://github.com/microsoft/pyright/issues/8797

github-actions[bot] commented 3 weeks ago

Diff from mypy_primer, showing the effect of this PR on open source code:


anyio (https://github.com/agronholm/anyio)
+   /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:32:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+ /tmp/mypy_primer/projects/anyio/src/anyio/to_process.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/to_process.py:24:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+ /tmp/mypy_primer/projects/anyio/src/anyio/to_thread.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/to_thread.py:14:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:100:10 - error: Import "exceptiongroup" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:101:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:142:35 - error: Argument of type "AbstractEventLoop | None" cannot be assigned to parameter "loop" of type "AbstractEventLoop" in function "_cancel_all_tasks"
+     Type "AbstractEventLoop | None" is incompatible with type "AbstractEventLoop"
+       "None" is incompatible with "AbstractEventLoop" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:143:22 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:143:46 - error: "shutdown_asyncgens" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:145:26 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:145:50 - error: "shutdown_default_executor" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:147:26 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:147:72 - error: Argument of type "AbstractEventLoop | None" cannot be assigned to parameter "loop" of type "AbstractEventLoop" in function "_shutdown_default_executor"
+     Type "AbstractEventLoop | None" is incompatible with type "AbstractEventLoop"
+       "None" is incompatible with "AbstractEventLoop" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:151:17 - error: "loop" is possibly unbound (reportPossiblyUnboundVariable)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:151:22 - error: "close" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:158:20 - error: Expression of type "AbstractEventLoop | None" is incompatible with return type "AbstractEventLoop"
+     Type "AbstractEventLoop | None" is incompatible with type "AbstractEventLoop"
+       "None" is incompatible with "AbstractEventLoop" (reportReturnType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:160:39 - error: Too few type arguments provided for "Coroutine"; expected 3 but received 1 (reportInvalidTypeArguments)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:175:28 - error: "run" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:175:43 - error: "create_task" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:194:35 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:232:28 - error: "call_soon_threadsafe" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:268:14 - error: Cannot assign to attribute "_executor_shutdown_called" for class "AbstractEventLoop"
+     Attribute "_executor_shutdown_called" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:269:17 - error: Cannot access attribute "_default_executor" for class "AbstractEventLoop"
+     Attribute "_default_executor" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:335:34 - error: Argument of type "_TaskCompatibleCoro[Unknown] | None" cannot be assigned to parameter "coroutine" of type "Coroutine[Any, Any, Any]" in function "getcoroutinestate"
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:335:34 - error: Argument of type "_TaskCompatibleCoro[Unknown]" cannot be assigned to parameter "coroutine" of type "Coroutine[Any, Any, Any]" in function "getcoroutinestate"
-     Type "_TaskCompatibleCoro[Unknown] | None" is incompatible with type "Coroutine[Any, Any, Any]"
+     Type "_TaskCompatibleCoro[Unknown]" is incompatible with type "Coroutine[Any, Any, Any]"
-       "None" is incompatible with "Coroutine[Any, Any, Any]" (reportArgumentType)
+       "Generator[_TaskYieldType, None, Unknown]" is incompatible with "Coroutine[Any, Any, Any]" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:456:36 - error: Cannot access attribute "uncancel" for class "Task[Unknown]"
+     Attribute "uncancel" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:637:30 - error: Cannot access attribute "exceptions" for class "BaseException"
+     Attribute "exceptions" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1845:64 - error: Argument of type "_TaskCompatibleCoro[Unknown] | None" cannot be assigned to parameter "coro" of type "Generator[Any, Any, Any] | Awaitable[Any]" in function "__init__" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1857:29 - error: Cannot access attribute "_fut_waiter" for class "Task[Unknown]"
+     Attribute "_fut_waiter" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1858:22 - error: Cannot access attribute "_fut_waiter" for class "Task[Unknown]"
+     Attribute "_fut_waiter" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1899:31 - error: Argument of type "type[BaseException] | None" cannot be assigned to parameter "exc_type" of type "type[BaseException]" in function "__exit__"
+     Type "type[BaseException] | None" is incompatible with type "type[BaseException]"
+       Type "None" is incompatible with type "type[BaseException]" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1899:41 - error: Argument of type "BaseException | None" cannot be assigned to parameter "exc_val" of type "BaseException" in function "__exit__"
+     Type "BaseException | None" is incompatible with type "BaseException"
+       "None" is incompatible with "BaseException" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1899:50 - error: Argument of type "TracebackType | None" cannot be assigned to parameter "exc_tb" of type "TracebackType" in function "__exit__"
+     Type "TracebackType | None" is incompatible with type "TracebackType"
+       "None" is incompatible with "TracebackType" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:74:10 - error: Import "exceptiongroup" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:75:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_eventloop.py:16:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_fileio.py:392:52 - error: Cannot access attribute "is_junction" for class "Path"
+     Attribute "is_junction" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_sockets.py:35:10 - error: Import "exceptiongroup" could not be resolved (reportMissingImports)
+ /tmp/mypy_primer/projects/anyio/src/anyio/abc/_eventloop.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/abc/_eventloop.py:24:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+ /tmp/mypy_primer/projects/anyio/src/anyio/abc/_tasks.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/abc/_tasks.py:12:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/streams/tls.py:24:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- 31 errors, 1 warning, 0 informations 
+ 58 errors, 10 warnings, 0 informations 

black (https://github.com/psf/black)
+   /tmp/mypy_primer/projects/black/src/black/cache.py:21:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/black/src/black/files.py:34:12 - error: Import "tomli" could not be resolved (reportMissingImports)
-   /tmp/mypy_primer/projects/black/src/black/files.py:48:16 - error: "tomllib" is possibly unbound (reportPossiblyUnboundVariable)
- 74 errors, 9 warnings, 0 informations 
+ 74 errors, 10 warnings, 0 informations 

artigraph (https://github.com/artigraph/artigraph)
+ /tmp/mypy_primer/projects/artigraph/src/arti/backends/__init__.py
+   /tmp/mypy_primer/projects/artigraph/src/arti/backends/__init__.py:8:35 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/backends/__init__.py:133:14 - error: Class type parameter syntax requires Python 3.12 or newer
+ /tmp/mypy_primer/projects/artigraph/src/arti/formats/__init__.py
+   /tmp/mypy_primer/projects/artigraph/src/arti/formats/__init__.py:5:30 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:39:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:225:18 - error: "check_annotation_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:226:18 - error: "check_artifact_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:270:14 - error: "check_annotation_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:271:14 - error: "check_artifact_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:5:55 - error: "assert_never" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:14:17 - error: Class type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:61:49 - error: Unpack operator in subscript requires Python 3.11 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:64:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:64:53 - error: Unpack operator in subscript requires Python 3.11 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:76:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:79:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:80:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:94:15 - error: Class type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:224:27 - error: Function with declared return type "int" must return value on all code paths
+     "None" is incompatible with "int" (reportReturnType)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:10:5 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:12:5 - error: "dataclass_transform" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:53:22 - error: Expected tuple of classes or functions but received type "tuple[Unknown, Unknown]" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:101:65 - error: Unpack operator in subscript requires Python 3.11 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:199:22 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:202:22 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:118:28 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:124:28 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:129:28 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:166:23 - error: Function type parameter syntax requires Python 3.12 or newer
+ /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:12:29 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:25:18 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:213:16 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:230:13 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:262:17 - error: Class type parameter syntax requires Python 3.12 or newer
-   /tmp/mypy_primer/projects/artigraph/src/arti/producers/__init__.py:178:12 - error: Operator "!=" not supported for types "type[Artifact]" and "type[Artifact]" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/storage/__init__.py:7:61 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/storage/__init__.py:65:14 - error: Class type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/versions/__init__.py:8:22 - error: "UTC" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/views/__init__.py:6:55 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/artigraph/src/arti/views/__init__.py:107:16 - error: Expression of type "type[View] | type[Self@View]" is incompatible with return type "type[Self@View]"
-     Type "type[View] | type[Self@View]" is incompatible with type "type[Self@View]" (reportReturnType)
+   /tmp/mypy_primer/projects/artigraph/tests/arti/artifacts/test_artifact.py:5:25 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/tests/arti/versions/test_version.py:1:22 - error: "UTC" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/artigraph/tests/arti/views/test_views.py:53:16 - error: Operator "==" not supported for types "type[View]" and "type[List]" (reportOperatorIssue)
- 154 errors, 4 warnings, 0 informations 
+ 188 errors, 4 warnings, 0 informations 

pycryptodome (https://github.com/Legrandin/pycryptodome)
+   /tmp/mypy_primer/projects/pycryptodome/compiler_opt.py:71:21 - error: Cannot access attribute "compiler_type" for class "CCompiler"
+     Attribute "compiler_type" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pycryptodome/compiler_opt.py:79:21 - error: Cannot access attribute "compiler_type" for class "CCompiler"
+     Attribute "compiler_type" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pycryptodome/compiler_opt.py:80:58 - error: Cannot access attribute "compiler" for class "CCompiler"
+     Attribute "compiler" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:287:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:291:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:295:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:299:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:303:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:307:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:311:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:315:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:319:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:323:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:327:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:331:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:335:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:339:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:345:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:351:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:355:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:359:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:363:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:367:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:371:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:375:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:379:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:383:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:388:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:394:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:398:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:402:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:406:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:410:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:413:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:419:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:423:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:427:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:433:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:439:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:447:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:452:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:457:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:462:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:469:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:549:17 - error: Argument of type "list[setuptools.extension.Extension | distutils.extension.Extension]" cannot be assigned to parameter "ext_modules" of type "list[Extension]" in function "setup"
+     "list[setuptools.extension.Extension | distutils.extension.Extension]" is incompatible with "list[Extension]"
+       Type parameter "_T@list" is invariant, but "setuptools.extension.Extension | distutils.extension.Extension" is not the same as "Extension"
+       Consider switching from "list" to "Sequence" which is covariant (reportArgumentType)
- 1647 errors, 55 warnings, 0 informations 
+ 1692 errors, 55 warnings, 0 informations 

bandersnatch (https://github.com/pypa/bandersnatch)
+ /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py:4:24 - error: "StrEnum" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py:64:29 - error: Expected no type arguments for class "SimpleDigest" (reportInvalidTypeArguments)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py:66:49 - error: "type[SimpleDigest]" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/test_simple.py:52:59 - error: "type[SimpleDigest]" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/plugins/test_storage_plugins.py:110:34 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/plugins/test_storage_plugins.py:117:37 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/filesystem.py:286:79 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/s3.py:24:10 - error: Import "s3path.accessor" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/s3.py:439:61 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/swift.py:371:9 - error: Method "exists" overrides class "Path" in an incompatible manner
-     Parameter "follow_symlinks" is missing in override (reportIncompatibleMethodOverride)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/swift.py:989:65 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
- 113 errors, 1 warning, 0 informations 
+ 120 errors, 1 warning, 0 informations 

poetry (https://github.com/python-poetry/poetry)
+   /tmp/mypy_primer/projects/poetry/src/poetry/utils/_compat.py:16:12 - error: Import "tomli" could not be resolved (reportMissingImports)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:120:9 - error: Method "has_ext_modules" overrides class "Distribution" in an incompatible manner
-     Return type mismatch: base method returns type "None", override returns type "bool"
-       "bool" is incompatible with "None" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:123:20 - error: "Never" is not iterable (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:108:18 - error: Cannot assign to attribute "global_options" for class "Distribution*"
+     Attribute "global_options" cannot be assigned through a class instance because it is a ClassVar
+       Attribute "__set__" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:117:18 - error: Cannot assign to attribute "negative_opt" for class "Distribution*"
+     Attribute "negative_opt" cannot be assigned through a class instance because it is a ClassVar
+       Attribute "__set__" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:297:32 - error: Cannot access attribute "_make_spec_file" for class "type[bdist_rpm]"
+     Attribute "_make_spec_file" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:286:20 - error: "None" is not iterable
-     "__iter__" method not defined (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:306:9 - error: Method "initialize_options" overrides class "Command" in an incompatible manner
-     Return type mismatch: base method returns type "NoReturn", override returns type "None"
-       Type "None" is incompatible with type "NoReturn" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:309:9 - error: Method "finalize_options" overrides class "Command" in an incompatible manner
-     Return type mismatch: base method returns type "NoReturn", override returns type "None"
-       Type "None" is incompatible with type "NoReturn" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:312:9 - error: Method "run" overrides class "Command" in an incompatible manner
-     Return type mismatch: base method returns type "NoReturn", override returns type "None"
-       Type "None" is incompatible with type "NoReturn" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:314:19 - error: "run" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:315:38 - error: "build_lib" is not a known attribute of "None" (reportOptionalMemberAccess)
- 1202 errors, 32 warnings, 0 informations 
+ 1198 errors, 32 warnings, 0 informations 

mypy (https://github.com/python/mypy)
+   /tmp/mypy_primer/projects/mypy/mypy/config_parser.py:16:12 - error: Import "tomli" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/mypy/mypy/fastparse.py:1226:57 - error: Cannot access attribute "name" for class "Any"
+     Attribute "name" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy/mypy/fastparse.py:1228:57 - error: Cannot access attribute "name" for class "Any"
+     Attribute "name" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:245:109 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
+   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:256:106 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:253:28 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
+   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:263:28 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
- /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/enum.pyi

... (truncated 924 lines) ...```
rchiodo commented 3 weeks ago

Okay that had a lot more impact than I thought. Must have missed something.

rchiodo commented 3 weeks ago

Defaults were implicitly being used in the execution environments. Need to update to take that into account.

github-actions[bot] commented 3 weeks ago

Diff from mypy_primer, showing the effect of this PR on open source code:


anyio (https://github.com/agronholm/anyio)
+   /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:32:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+ /tmp/mypy_primer/projects/anyio/src/anyio/to_process.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/to_process.py:24:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+ /tmp/mypy_primer/projects/anyio/src/anyio/to_thread.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/to_thread.py:14:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:100:10 - error: Import "exceptiongroup" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:101:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:142:35 - error: Argument of type "AbstractEventLoop | None" cannot be assigned to parameter "loop" of type "AbstractEventLoop" in function "_cancel_all_tasks"
+     Type "AbstractEventLoop | None" is incompatible with type "AbstractEventLoop"
+       "None" is incompatible with "AbstractEventLoop" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:143:22 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:143:46 - error: "shutdown_asyncgens" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:145:26 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:145:50 - error: "shutdown_default_executor" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:147:26 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:147:72 - error: Argument of type "AbstractEventLoop | None" cannot be assigned to parameter "loop" of type "AbstractEventLoop" in function "_shutdown_default_executor"
+     Type "AbstractEventLoop | None" is incompatible with type "AbstractEventLoop"
+       "None" is incompatible with "AbstractEventLoop" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:151:17 - error: "loop" is possibly unbound (reportPossiblyUnboundVariable)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:151:22 - error: "close" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:158:20 - error: Expression of type "AbstractEventLoop | None" is incompatible with return type "AbstractEventLoop"
+     Type "AbstractEventLoop | None" is incompatible with type "AbstractEventLoop"
+       "None" is incompatible with "AbstractEventLoop" (reportReturnType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:160:39 - error: Too few type arguments provided for "Coroutine"; expected 3 but received 1 (reportInvalidTypeArguments)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:175:28 - error: "run" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:175:43 - error: "create_task" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:194:35 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:232:28 - error: "call_soon_threadsafe" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:268:14 - error: Cannot assign to attribute "_executor_shutdown_called" for class "AbstractEventLoop"
+     Attribute "_executor_shutdown_called" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:269:17 - error: Cannot access attribute "_default_executor" for class "AbstractEventLoop"
+     Attribute "_default_executor" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:335:34 - error: Argument of type "_TaskCompatibleCoro[Unknown] | None" cannot be assigned to parameter "coroutine" of type "Coroutine[Any, Any, Any]" in function "getcoroutinestate"
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:335:34 - error: Argument of type "_TaskCompatibleCoro[Unknown]" cannot be assigned to parameter "coroutine" of type "Coroutine[Any, Any, Any]" in function "getcoroutinestate"
-     Type "_TaskCompatibleCoro[Unknown] | None" is incompatible with type "Coroutine[Any, Any, Any]"
+     Type "_TaskCompatibleCoro[Unknown]" is incompatible with type "Coroutine[Any, Any, Any]"
-       "None" is incompatible with "Coroutine[Any, Any, Any]" (reportArgumentType)
+       "Generator[_TaskYieldType, None, Unknown]" is incompatible with "Coroutine[Any, Any, Any]" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:456:36 - error: Cannot access attribute "uncancel" for class "Task[Unknown]"
+     Attribute "uncancel" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:637:30 - error: Cannot access attribute "exceptions" for class "BaseException"
+     Attribute "exceptions" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1845:64 - error: Argument of type "_TaskCompatibleCoro[Unknown] | None" cannot be assigned to parameter "coro" of type "Generator[Any, Any, Any] | Awaitable[Any]" in function "__init__" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1857:29 - error: Cannot access attribute "_fut_waiter" for class "Task[Unknown]"
+     Attribute "_fut_waiter" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1858:22 - error: Cannot access attribute "_fut_waiter" for class "Task[Unknown]"
+     Attribute "_fut_waiter" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1899:31 - error: Argument of type "type[BaseException] | None" cannot be assigned to parameter "exc_type" of type "type[BaseException]" in function "__exit__"
+     Type "type[BaseException] | None" is incompatible with type "type[BaseException]"
+       Type "None" is incompatible with type "type[BaseException]" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1899:41 - error: Argument of type "BaseException | None" cannot be assigned to parameter "exc_val" of type "BaseException" in function "__exit__"
+     Type "BaseException | None" is incompatible with type "BaseException"
+       "None" is incompatible with "BaseException" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1899:50 - error: Argument of type "TracebackType | None" cannot be assigned to parameter "exc_tb" of type "TracebackType" in function "__exit__"
+     Type "TracebackType | None" is incompatible with type "TracebackType"
+       "None" is incompatible with "TracebackType" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:74:10 - error: Import "exceptiongroup" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:75:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_eventloop.py:16:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_fileio.py:392:52 - error: Cannot access attribute "is_junction" for class "Path"
+     Attribute "is_junction" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_sockets.py:35:10 - error: Import "exceptiongroup" could not be resolved (reportMissingImports)
+ /tmp/mypy_primer/projects/anyio/src/anyio/abc/_eventloop.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/abc/_eventloop.py:24:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+ /tmp/mypy_primer/projects/anyio/src/anyio/abc/_tasks.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/abc/_tasks.py:12:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/streams/tls.py:24:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- 31 errors, 1 warning, 0 informations 
+ 58 errors, 10 warnings, 0 informations 

bandersnatch (https://github.com/pypa/bandersnatch)
+ /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py:4:24 - error: "StrEnum" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py:64:29 - error: Expected no type arguments for class "SimpleDigest" (reportInvalidTypeArguments)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py:66:49 - error: "type[SimpleDigest]" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/test_simple.py:52:59 - error: "type[SimpleDigest]" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/plugins/test_storage_plugins.py:110:34 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/plugins/test_storage_plugins.py:117:37 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/filesystem.py:286:79 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/s3.py:24:10 - error: Import "s3path.accessor" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/s3.py:439:61 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/swift.py:371:9 - error: Method "exists" overrides class "Path" in an incompatible manner
-     Parameter "follow_symlinks" is missing in override (reportIncompatibleMethodOverride)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/swift.py:989:65 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
- 113 errors, 1 warning, 0 informations 
+ 120 errors, 1 warning, 0 informations 

artigraph (https://github.com/artigraph/artigraph)
+ /tmp/mypy_primer/projects/artigraph/src/arti/backends/__init__.py
+   /tmp/mypy_primer/projects/artigraph/src/arti/backends/__init__.py:8:35 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/backends/__init__.py:133:14 - error: Class type parameter syntax requires Python 3.12 or newer
+ /tmp/mypy_primer/projects/artigraph/src/arti/formats/__init__.py
+   /tmp/mypy_primer/projects/artigraph/src/arti/formats/__init__.py:5:30 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:39:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:225:18 - error: "check_annotation_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:226:18 - error: "check_artifact_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:270:14 - error: "check_annotation_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:271:14 - error: "check_artifact_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:5:55 - error: "assert_never" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:14:17 - error: Class type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:61:49 - error: Unpack operator in subscript requires Python 3.11 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:64:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:64:53 - error: Unpack operator in subscript requires Python 3.11 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:76:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:79:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:80:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:94:15 - error: Class type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:224:27 - error: Function with declared return type "int" must return value on all code paths
+     "None" is incompatible with "int" (reportReturnType)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:10:5 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:12:5 - error: "dataclass_transform" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:53:22 - error: Expected tuple of classes or functions but received type "tuple[Unknown, Unknown]" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:101:65 - error: Unpack operator in subscript requires Python 3.11 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:199:22 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:202:22 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:118:28 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:124:28 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:129:28 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:166:23 - error: Function type parameter syntax requires Python 3.12 or newer
+ /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:12:29 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:25:18 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:213:16 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:230:13 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:262:17 - error: Class type parameter syntax requires Python 3.12 or newer
-   /tmp/mypy_primer/projects/artigraph/src/arti/producers/__init__.py:178:12 - error: Operator "!=" not supported for types "type[Artifact]" and "type[Artifact]" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/storage/__init__.py:7:61 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/storage/__init__.py:65:14 - error: Class type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/versions/__init__.py:8:22 - error: "UTC" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/views/__init__.py:6:55 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/artigraph/src/arti/views/__init__.py:107:16 - error: Expression of type "type[View] | type[Self@View]" is incompatible with return type "type[Self@View]"
-     Type "type[View] | type[Self@View]" is incompatible with type "type[Self@View]" (reportReturnType)
+   /tmp/mypy_primer/projects/artigraph/tests/arti/artifacts/test_artifact.py:5:25 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/tests/arti/versions/test_version.py:1:22 - error: "UTC" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/artigraph/tests/arti/views/test_views.py:53:16 - error: Operator "==" not supported for types "type[View]" and "type[List]" (reportOperatorIssue)
- 154 errors, 4 warnings, 0 informations 
+ 188 errors, 4 warnings, 0 informations 

pycryptodome (https://github.com/Legrandin/pycryptodome)
+   /tmp/mypy_primer/projects/pycryptodome/compiler_opt.py:71:21 - error: Cannot access attribute "compiler_type" for class "CCompiler"
+     Attribute "compiler_type" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pycryptodome/compiler_opt.py:79:21 - error: Cannot access attribute "compiler_type" for class "CCompiler"
+     Attribute "compiler_type" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pycryptodome/compiler_opt.py:80:58 - error: Cannot access attribute "compiler" for class "CCompiler"
+     Attribute "compiler" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:287:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:291:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:295:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:299:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:303:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:307:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:311:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:315:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:319:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:323:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:327:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:331:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:335:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:339:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:345:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:351:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:355:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:359:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:363:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:367:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:371:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:375:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:379:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:383:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:388:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:394:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:398:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:402:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:406:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:410:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:413:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:419:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:423:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:427:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:433:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:439:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:447:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:452:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:457:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:462:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:469:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:549:17 - error: Argument of type "list[setuptools.extension.Extension | distutils.extension.Extension]" cannot be assigned to parameter "ext_modules" of type "list[Extension]" in function "setup"
+     "list[setuptools.extension.Extension | distutils.extension.Extension]" is incompatible with "list[Extension]"
+       Type parameter "_T@list" is invariant, but "setuptools.extension.Extension | distutils.extension.Extension" is not the same as "Extension"
+       Consider switching from "list" to "Sequence" which is covariant (reportArgumentType)
- 1647 errors, 55 warnings, 0 informations 
+ 1692 errors, 55 warnings, 0 informations 

black (https://github.com/psf/black)
+   /tmp/mypy_primer/projects/black/src/black/cache.py:21:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/black/src/black/files.py:34:12 - error: Import "tomli" could not be resolved (reportMissingImports)
-   /tmp/mypy_primer/projects/black/src/black/files.py:48:16 - error: "tomllib" is possibly unbound (reportPossiblyUnboundVariable)
- 74 errors, 9 warnings, 0 informations 
+ 74 errors, 10 warnings, 0 informations 

poetry (https://github.com/python-poetry/poetry)
+   /tmp/mypy_primer/projects/poetry/src/poetry/utils/_compat.py:16:12 - error: Import "tomli" could not be resolved (reportMissingImports)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:120:9 - error: Method "has_ext_modules" overrides class "Distribution" in an incompatible manner
-     Return type mismatch: base method returns type "None", override returns type "bool"
-       "bool" is incompatible with "None" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:123:20 - error: "Never" is not iterable (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:108:18 - error: Cannot assign to attribute "global_options" for class "Distribution*"
+     Attribute "global_options" cannot be assigned through a class instance because it is a ClassVar
+       Attribute "__set__" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:117:18 - error: Cannot assign to attribute "negative_opt" for class "Distribution*"
+     Attribute "negative_opt" cannot be assigned through a class instance because it is a ClassVar
+       Attribute "__set__" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:297:32 - error: Cannot access attribute "_make_spec_file" for class "type[bdist_rpm]"
+     Attribute "_make_spec_file" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:286:20 - error: "None" is not iterable
-     "__iter__" method not defined (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:306:9 - error: Method "initialize_options" overrides class "Command" in an incompatible manner
-     Return type mismatch: base method returns type "NoReturn", override returns type "None"
-       Type "None" is incompatible with type "NoReturn" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:309:9 - error: Method "finalize_options" overrides class "Command" in an incompatible manner
-     Return type mismatch: base method returns type "NoReturn", override returns type "None"
-       Type "None" is incompatible with type "NoReturn" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:312:9 - error: Method "run" overrides class "Command" in an incompatible manner
-     Return type mismatch: base method returns type "NoReturn", override returns type "None"
-       Type "None" is incompatible with type "NoReturn" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:314:19 - error: "run" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:315:38 - error: "build_lib" is not a known attribute of "None" (reportOptionalMemberAccess)
- 1202 errors, 32 warnings, 0 informations 
+ 1198 errors, 32 warnings, 0 informations 

mypy (https://github.com/python/mypy)
+   /tmp/mypy_primer/projects/mypy/mypy/config_parser.py:16:12 - error: Import "tomli" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/mypy/mypy/fastparse.py:1226:57 - error: Cannot access attribute "name" for class "Any"
+     Attribute "name" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy/mypy/fastparse.py:1228:57 - error: Cannot access attribute "name" for class "Any"
+     Attribute "name" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:245:109 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
+   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:256:106 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:253:28 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
+   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:263:28 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
- /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/enum.pyi

... (truncated 924 lines) ...```
github-actions[bot] commented 3 weeks ago

Diff from mypy_primer, showing the effect of this PR on open source code:


anyio (https://github.com/agronholm/anyio)
+   /tmp/mypy_primer/projects/anyio/src/anyio/from_thread.py:32:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+ /tmp/mypy_primer/projects/anyio/src/anyio/to_process.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/to_process.py:24:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+ /tmp/mypy_primer/projects/anyio/src/anyio/to_thread.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/to_thread.py:14:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:100:10 - error: Import "exceptiongroup" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:101:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:142:35 - error: Argument of type "AbstractEventLoop | None" cannot be assigned to parameter "loop" of type "AbstractEventLoop" in function "_cancel_all_tasks"
+     Type "AbstractEventLoop | None" is incompatible with type "AbstractEventLoop"
+       "None" is incompatible with "AbstractEventLoop" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:143:22 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:143:46 - error: "shutdown_asyncgens" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:145:26 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:145:50 - error: "shutdown_default_executor" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:147:26 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:147:72 - error: Argument of type "AbstractEventLoop | None" cannot be assigned to parameter "loop" of type "AbstractEventLoop" in function "_shutdown_default_executor"
+     Type "AbstractEventLoop | None" is incompatible with type "AbstractEventLoop"
+       "None" is incompatible with "AbstractEventLoop" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:151:17 - error: "loop" is possibly unbound (reportPossiblyUnboundVariable)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:151:22 - error: "close" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:158:20 - error: Expression of type "AbstractEventLoop | None" is incompatible with return type "AbstractEventLoop"
+     Type "AbstractEventLoop | None" is incompatible with type "AbstractEventLoop"
+       "None" is incompatible with "AbstractEventLoop" (reportReturnType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:160:39 - error: Too few type arguments provided for "Coroutine"; expected 3 but received 1 (reportInvalidTypeArguments)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:175:28 - error: "run" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:175:43 - error: "create_task" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:194:35 - error: "run_until_complete" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:232:28 - error: "call_soon_threadsafe" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:268:14 - error: Cannot assign to attribute "_executor_shutdown_called" for class "AbstractEventLoop"
+     Attribute "_executor_shutdown_called" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:269:17 - error: Cannot access attribute "_default_executor" for class "AbstractEventLoop"
+     Attribute "_default_executor" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:335:34 - error: Argument of type "_TaskCompatibleCoro[Unknown] | None" cannot be assigned to parameter "coroutine" of type "Coroutine[Any, Any, Any]" in function "getcoroutinestate"
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:335:34 - error: Argument of type "_TaskCompatibleCoro[Unknown]" cannot be assigned to parameter "coroutine" of type "Coroutine[Any, Any, Any]" in function "getcoroutinestate"
-     Type "_TaskCompatibleCoro[Unknown] | None" is incompatible with type "Coroutine[Any, Any, Any]"
+     Type "_TaskCompatibleCoro[Unknown]" is incompatible with type "Coroutine[Any, Any, Any]"
-       "None" is incompatible with "Coroutine[Any, Any, Any]" (reportArgumentType)
+       "Generator[_TaskYieldType, None, Unknown]" is incompatible with "Coroutine[Any, Any, Any]" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:456:36 - error: Cannot access attribute "uncancel" for class "Task[Unknown]"
+     Attribute "uncancel" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:637:30 - error: Cannot access attribute "exceptions" for class "BaseException"
+     Attribute "exceptions" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1845:64 - error: Argument of type "_TaskCompatibleCoro[Unknown] | None" cannot be assigned to parameter "coro" of type "Generator[Any, Any, Any] | Awaitable[Any]" in function "__init__" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1857:29 - error: Cannot access attribute "_fut_waiter" for class "Task[Unknown]"
+     Attribute "_fut_waiter" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1858:22 - error: Cannot access attribute "_fut_waiter" for class "Task[Unknown]"
+     Attribute "_fut_waiter" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1899:31 - error: Argument of type "type[BaseException] | None" cannot be assigned to parameter "exc_type" of type "type[BaseException]" in function "__exit__"
+     Type "type[BaseException] | None" is incompatible with type "type[BaseException]"
+       Type "None" is incompatible with type "type[BaseException]" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1899:41 - error: Argument of type "BaseException | None" cannot be assigned to parameter "exc_val" of type "BaseException" in function "__exit__"
+     Type "BaseException | None" is incompatible with type "BaseException"
+       "None" is incompatible with "BaseException" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:1899:50 - error: Argument of type "TracebackType | None" cannot be assigned to parameter "exc_tb" of type "TracebackType" in function "__exit__"
+     Type "TracebackType | None" is incompatible with type "TracebackType"
+       "None" is incompatible with "TracebackType" (reportArgumentType)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:74:10 - error: Import "exceptiongroup" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_trio.py:75:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_eventloop.py:16:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_fileio.py:392:52 - error: Cannot access attribute "is_junction" for class "Path"
+     Attribute "is_junction" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/anyio/src/anyio/_core/_sockets.py:35:10 - error: Import "exceptiongroup" could not be resolved (reportMissingImports)
+ /tmp/mypy_primer/projects/anyio/src/anyio/abc/_eventloop.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/abc/_eventloop.py:24:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+ /tmp/mypy_primer/projects/anyio/src/anyio/abc/_tasks.py
+   /tmp/mypy_primer/projects/anyio/src/anyio/abc/_tasks.py:12:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/anyio/src/anyio/streams/tls.py:24:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- 31 errors, 1 warning, 0 informations 
+ 58 errors, 10 warnings, 0 informations 

pycryptodome (https://github.com/Legrandin/pycryptodome)
+   /tmp/mypy_primer/projects/pycryptodome/compiler_opt.py:71:21 - error: Cannot access attribute "compiler_type" for class "CCompiler"
+     Attribute "compiler_type" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pycryptodome/compiler_opt.py:79:21 - error: Cannot access attribute "compiler_type" for class "CCompiler"
+     Attribute "compiler_type" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pycryptodome/compiler_opt.py:80:58 - error: Cannot access attribute "compiler" for class "CCompiler"
+     Attribute "compiler" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:287:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:291:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:295:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:299:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:303:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:307:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:311:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:315:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:319:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:323:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:327:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:331:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:335:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:339:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:345:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:351:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:355:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:359:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:363:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:367:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:371:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:375:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:379:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:383:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:388:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:394:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:398:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:402:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:406:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:410:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:413:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:419:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:423:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:427:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:433:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:439:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:447:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:452:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:457:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:462:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:469:9 - error: No parameter named "py_limited_api" (reportCallIssue)
+   /tmp/mypy_primer/projects/pycryptodome/setup.py:549:17 - error: Argument of type "list[setuptools.extension.Extension | distutils.extension.Extension]" cannot be assigned to parameter "ext_modules" of type "list[Extension]" in function "setup"
+     "list[setuptools.extension.Extension | distutils.extension.Extension]" is incompatible with "list[Extension]"
+       Type parameter "_T@list" is invariant, but "setuptools.extension.Extension | distutils.extension.Extension" is not the same as "Extension"
+       Consider switching from "list" to "Sequence" which is covariant (reportArgumentType)
- 1647 errors, 55 warnings, 0 informations 
+ 1692 errors, 55 warnings, 0 informations 

black (https://github.com/psf/black)
+   /tmp/mypy_primer/projects/black/src/black/cache.py:21:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/black/src/black/files.py:34:12 - error: Import "tomli" could not be resolved (reportMissingImports)
-   /tmp/mypy_primer/projects/black/src/black/files.py:48:16 - error: "tomllib" is possibly unbound (reportPossiblyUnboundVariable)
- 74 errors, 9 warnings, 0 informations 
+ 74 errors, 10 warnings, 0 informations 

bandersnatch (https://github.com/pypa/bandersnatch)
+ /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py:4:24 - error: "StrEnum" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py:64:29 - error: Expected no type arguments for class "SimpleDigest" (reportInvalidTypeArguments)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/simple.py:66:49 - error: "type[SimpleDigest]" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/test_simple.py:52:59 - error: "type[SimpleDigest]" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/plugins/test_storage_plugins.py:110:34 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch/tests/plugins/test_storage_plugins.py:117:37 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/filesystem.py:286:79 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/s3.py:24:10 - error: Import "s3path.accessor" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/s3.py:439:61 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/swift.py:371:9 - error: Method "exists" overrides class "Path" in an incompatible manner
-     Parameter "follow_symlinks" is missing in override (reportIncompatibleMethodOverride)
+   /tmp/mypy_primer/projects/bandersnatch/src/bandersnatch_storage_plugins/swift.py:989:65 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
- 113 errors, 1 warning, 0 informations 
+ 120 errors, 1 warning, 0 informations 

artigraph (https://github.com/artigraph/artigraph)
+ /tmp/mypy_primer/projects/artigraph/src/arti/backends/__init__.py
+   /tmp/mypy_primer/projects/artigraph/src/arti/backends/__init__.py:8:35 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/backends/__init__.py:133:14 - error: Class type parameter syntax requires Python 3.12 or newer
+ /tmp/mypy_primer/projects/artigraph/src/arti/formats/__init__.py
+   /tmp/mypy_primer/projects/artigraph/src/arti/formats/__init__.py:5:30 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:39:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:225:18 - error: "check_annotation_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:226:18 - error: "check_artifact_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:270:14 - error: "check_annotation_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/graphs/__init__.py:271:14 - error: "check_artifact_compatibility" is not a known attribute of "None" (reportOptionalMemberAccess)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:5:55 - error: "assert_never" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:14:17 - error: Class type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:61:49 - error: Unpack operator in subscript requires Python 3.11 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:64:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:64:53 - error: Unpack operator in subscript requires Python 3.11 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:76:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:79:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:80:1 - error: Type alias statement requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:94:15 - error: Class type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/mappings.py:224:27 - error: Function with declared return type "int" must return value on all code paths
+     "None" is incompatible with "int" (reportReturnType)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:10:5 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:12:5 - error: "dataclass_transform" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:53:22 - error: Expected tuple of classes or functions but received type "tuple[Unknown, Unknown]" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:101:65 - error: Unpack operator in subscript requires Python 3.11 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:199:22 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:202:22 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:118:28 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:124:28 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:129:28 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/type_hints.py:166:23 - error: Function type parameter syntax requires Python 3.12 or newer
+ /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:12:29 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:25:18 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:213:16 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:230:13 - error: Function type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/internal/utils.py:262:17 - error: Class type parameter syntax requires Python 3.12 or newer
-   /tmp/mypy_primer/projects/artigraph/src/arti/producers/__init__.py:178:12 - error: Operator "!=" not supported for types "type[Artifact]" and "type[Artifact]" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/storage/__init__.py:7:61 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/storage/__init__.py:65:14 - error: Class type parameter syntax requires Python 3.12 or newer
+   /tmp/mypy_primer/projects/artigraph/src/arti/versions/__init__.py:8:22 - error: "UTC" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/src/arti/views/__init__.py:6:55 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/artigraph/src/arti/views/__init__.py:107:16 - error: Expression of type "type[View] | type[Self@View]" is incompatible with return type "type[Self@View]"
-     Type "type[View] | type[Self@View]" is incompatible with type "type[Self@View]" (reportReturnType)
+   /tmp/mypy_primer/projects/artigraph/tests/arti/artifacts/test_artifact.py:5:25 - error: "Self" is unknown import symbol (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/artigraph/tests/arti/versions/test_version.py:1:22 - error: "UTC" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/artigraph/tests/arti/views/test_views.py:53:16 - error: Operator "==" not supported for types "type[View]" and "type[List]" (reportOperatorIssue)
- 154 errors, 4 warnings, 0 informations 
+ 188 errors, 4 warnings, 0 informations 

poetry (https://github.com/python-poetry/poetry)
+   /tmp/mypy_primer/projects/poetry/src/poetry/utils/_compat.py:16:12 - error: Import "tomli" could not be resolved (reportMissingImports)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:120:9 - error: Method "has_ext_modules" overrides class "Distribution" in an incompatible manner
-     Return type mismatch: base method returns type "None", override returns type "bool"
-       "bool" is incompatible with "None" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:123:20 - error: "Never" is not iterable (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:108:18 - error: Cannot assign to attribute "global_options" for class "Distribution*"
+     Attribute "global_options" cannot be assigned through a class instance because it is a ClassVar
+       Attribute "__set__" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:117:18 - error: Cannot assign to attribute "negative_opt" for class "Distribution*"
+     Attribute "negative_opt" cannot be assigned through a class instance because it is a ClassVar
+       Attribute "__set__" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:297:32 - error: Cannot access attribute "_make_spec_file" for class "type[bdist_rpm]"
+     Attribute "_make_spec_file" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:286:20 - error: "None" is not iterable
-     "__iter__" method not defined (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:306:9 - error: Method "initialize_options" overrides class "Command" in an incompatible manner
-     Return type mismatch: base method returns type "NoReturn", override returns type "None"
-       Type "None" is incompatible with type "NoReturn" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:309:9 - error: Method "finalize_options" overrides class "Command" in an incompatible manner
-     Return type mismatch: base method returns type "NoReturn", override returns type "None"
-       Type "None" is incompatible with type "NoReturn" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:312:9 - error: Method "run" overrides class "Command" in an incompatible manner
-     Return type mismatch: base method returns type "NoReturn", override returns type "None"
-       Type "None" is incompatible with type "NoReturn" (reportIncompatibleMethodOverride)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:314:19 - error: "run" is not a known attribute of "None" (reportOptionalMemberAccess)
-   /tmp/mypy_primer/projects/poetry/tests/utils/fixtures/setups/pyyaml/setup.py:315:38 - error: "build_lib" is not a known attribute of "None" (reportOptionalMemberAccess)
- 1202 errors, 32 warnings, 0 informations 
+ 1198 errors, 32 warnings, 0 informations 

mypy (https://github.com/python/mypy)
+   /tmp/mypy_primer/projects/mypy/mypy/config_parser.py:16:12 - error: Import "tomli" could not be resolved (reportMissingImports)
+   /tmp/mypy_primer/projects/mypy/mypy/fastparse.py:1226:57 - error: Cannot access attribute "name" for class "Any"
+     Attribute "name" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/mypy/mypy/fastparse.py:1228:57 - error: Cannot access attribute "name" for class "Any"
+     Attribute "name" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:245:109 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
+   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:256:106 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:253:28 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
+   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/builtins.pyi:263:28 - error: Expression of type "Literal[False]" cannot be assigned to parameter of type "bool"
- /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/enum.pyi

... (truncated 924 lines) ...```
github-actions[bot] commented 3 weeks ago

Diff from mypy_primer, showing the effect of this PR on open source code:

pydantic (https://github.com/pydantic/pydantic)
-   /tmp/mypy_primer/projects/pydantic/pydantic/functional_validators.py:21:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_typing_extra.py:37:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- 265 errors, 47 warnings, 0 informations 
+ 265 errors, 45 warnings, 0 informations 

pandera (https://github.com/pandera-dev/pandera)
-   /tmp/mypy_primer/projects/pandera/pandera/api/dataframe/container.py:34:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/pandera/pandera/engines/engine.py:33:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:86:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
+   /tmp/mypy_primer/projects/pandera/pandera/io/pandas_io.py:338:19 - error: Argument of type "Unknown | None" cannot be assigned to parameter "args" of type "StrPath" in function "__init__" (reportArgumentType)
-   /tmp/mypy_primer/projects/pandera/tests/core/test_dtypes.py:38:10 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- 2451 errors, 23 warnings, 0 informations 
+ 2452 errors, 19 warnings, 0 informations 

steam.py (https://github.com/Gobot1234/steam.py)
-   /tmp/mypy_primer/projects/steam.py/poetry_build.py:8:12 - error: Import "tomllib" could not be resolved (reportMissingImports)
-   /tmp/mypy_primer/projects/steam.py/poetry_build.py:14:13 - error: Type of "loads" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/poetry_build.py:14:13 - error: Type of "loads" is partially unknown
+     Type of "loads" is "((s: str, /, *, parse_float: ((str) -> Any) = ...) -> dict[str, Any]) | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:20:12 - error: Import "tomllib" could not be resolved (reportMissingImports)
-   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:33:21 - error: Type of "load" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:33:21 - error: Type of "load" is partially unknown
+     Type of "load" is "((fp: SupportsRead[bytes], /, *, parse_float: ((str) -> Any) = ...) -> dict[str, Any]) | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:35:31 - error: Type of "get" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:35:31 - error: Type of "get" is partially unknown
+     Type of "get" is "Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)] | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:35:31 - error: Type of "get" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/steam.py/scripts/blacken_docs_correctly.py:35:31 - error: Type of "get" is partially unknown
+     Type of "get" is "Any | Unknown" (reportUnknownMemberType)
-     Type of "get" is "Unknown | Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)]" (reportUnknownMemberType)
+     Type of "get" is "Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)] | Unknown" (reportUnknownMemberType)
-     Type of "get" is "Unknown | Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)]" (reportUnknownMemberType)
+     Type of "get" is "Overload[(key: str, /) -> (Any | None), (key: str, default: Any, /) -> Any, (key: str, default: _T@get, /) -> (Any | _T@get)] | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:39:60 - error: "TaskGroup" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:39:71 - error: "timeout" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:306:16 - error: Type of "_tg" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:306:16 - error: Type of "create_task" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:356:9 - error: Type of "_tg" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:358:15 - error: Type of "_tg" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:358:15 - error: Type of "__aenter__" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:365:19 - error: Type of "_tg" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:365:19 - error: Type of "__aexit__" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:451:13 - error: Type of "_tg" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:460:57 - error: Type of "_tg" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:501:21 - error: Type of "_tg" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/client.py:501:21 - error: Type of "create_task" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/steam.py/steam/gateway.py:36:86 - error: "timeout" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/steam.py/steam/http.py:14:67 - error: "Unpack" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/steam.py/steam/http.py:56:42 - error: Type of parameter "options" is unknown (reportUnknownParameterType)
-     Type of "get" is "Overload[(key: str, /) -> (Unknown | None), (key: str, default: Unknown, /) -> Unknown, (key: str, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
+     Type of "get" is "Overload[(k: Literal['proxy']) -> (str | None), (k: Literal['proxy'], default: str | __TDefault@ClientKwargs | None) -> (str | __TDefault@ClientKwargs | None), (k: Literal['proxy_auth']) -> (Unknown | None), (k: Literal['proxy_auth'], default: Unknown | __TDefault@ClientKwargs | None) -> (Unknown | __TDefault@ClientKwargs | None), (k: Literal['connector']) -> (Unknown | None), (k: Literal['connector'], default: Unknown | __TDefault@ClientKwargs | None) -> (Unknown | __TDefault@ClientKwargs | None), (k: Literal['intents']) -> (Intents | None), (k: Literal['intents'], default: Intents | __TDefault@ClientKwargs) -> (Intents | __TDefault@ClientKwargs), (k: Literal['max_messages']) -> (int | None), (k: Literal['max_messages'], default: int | __TDefault@ClientKwargs | None) -> (int | __TDefault@ClientKwargs | None), (k: Literal['app']) -> (App[str | None] | None), (k: Literal['app'], default: App[str | None] | __TDefault@ClientKwargs | None) -> (App[str | None] | __TDefault@ClientKwargs | None), (k: Literal['apps']) -> (list[App[str | None]] | None), (k: Literal['apps'], default: list[App[str | None]] | __TDefault@ClientKwargs) -> (list[App[str | None]] | __TDefault@ClientKwargs), (k: Literal['state']) -> (PersonaState | None), (k: Literal['state'], default: PersonaState | __TDefault@ClientKwargs) -> (PersonaState | __TDefault@ClientKwargs), (k: Literal['ui_mode']) -> (UIMode | None), (k: Literal['ui_mode'], default: UIMode | __TDefault@ClientKwargs) -> (UIMode | __TDefault@ClientKwargs), (k: Literal['flags']) -> (PersonaStateFlag | None), (k: Literal['flags'], default: PersonaStateFlag | __TDefault@ClientKwargs) -> (PersonaStateFlag | __TDefault@ClientKwargs), (k: Literal['force_kick']) -> (bool | None), (k: Literal['force_kick'], default: bool | __TDefault@ClientKwargs) -> (bool | __TDefault@ClientKwargs), (k: Literal['language']) -> (Language | None), (k: Literal['language'], default: Language | __TDefault@ClientKwargs) -> (Language | __TDefault@ClientKwargs), (k: Literal['auto_chunk_chat_groups']) -> (bool | None), (k: Literal['auto_chunk_chat_groups'], default: bool | __TDefault@ClientKwargs) -> (bool | __TDefault@ClientKwargs), (k: Literal['ssl']) -> (SSLContext | Unknown | Literal[False] | None), (k: Literal['ssl'], default: SSLContext | Unknown | __TDefault@ClientKwargs | Literal[False]) -> (SSLContext | Unknown | __TDefault@ClientKwargs | Literal[False]), (k: str) -> (Any | None), (k: str, default: Any | __TDefault@ClientKwargs) -> (Any | __TDefault@ClientKwargs)]" (reportUnknownMemberType)
-     Type of "get" is "Overload[(key: str, /) -> (Unknown | None), (key: str, default: Unknown, /) -> Unknown, (key: str, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)

... (truncated 35 lines) ...

xarray (https://github.com/pydata/xarray)
-   /tmp/mypy_primer/projects/xarray/xarray/core/treenode.py:33:29 - error: Argument of type "type[PurePosixPath]" cannot be assigned to parameter "cls" of type "type[Self@NodePath]" in function "__new__"
-     Type "type[PurePosixPath]" is incompatible with type "type[Self@NodePath]" (reportArgumentType)
-   /tmp/mypy_primer/projects/xarray/xarray/core/types.py:25:14 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
-   /tmp/mypy_primer/projects/xarray/xarray/namedarray/core.py:90:14 - warning: Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)
- 2405 errors, 107 warnings, 0 informations 
+ 2404 errors, 105 warnings, 0 informations 

dd-trace-py (https://github.com/DataDog/dd-trace-py)
+   /tmp/mypy_primer/projects/dd-trace-py/setup.py:75:25 - error: Argument of type "str | None" cannot be assigned to parameter "args" of type "StrPath" in function "__init__" (reportArgumentType)
+     Type "None" is incompatible with type "StrPath"
+       "None" is incompatible with "str"
+       "None" is incompatible with protocol "PathLike[str]"
+         "__fspath__" is not present (reportArgumentType)
+   /tmp/mypy_primer/projects/dd-trace-py/setup.py:159:29 - error: Argument of type "None" cannot be assigned to parameter "args" of type "StrPath" in function "__init__"
- /tmp/mypy_primer/projects/dd-trace-py/benchmarks/bm/iast_fixtures/module_functions.py
-   /tmp/mypy_primer/projects/dd-trace-py/benchmarks/bm/iast_fixtures/module_functions.py:25:20 - error: "splitroot" is not a known attribute of module "os.path" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/appsec/_iast/_taint_tracking/aspects.py:590:24 - error: "splitroot" is not a known attribute of module "os.path" (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/appsec/_iast/_taint_tracking/_vendor/pybind11/pybind11/setup_helpers.py:496:26 - error: Argument of type "(self: CCompiler, sources: list[str], output_dir: str | None = None, macros: list[_Macro] | None = None, include_dirs: list[str] | None = None, debug: bool | Literal[0, 1] = 0, extra_preargs: list[str] | None = None, extra_postargs: list[str] | None = None, depends: list[str] | None = None) -> list[str]" cannot be assigned to parameter "object" of type "CCompilerMethod" in function "append"
-     Type "(self: CCompiler, sources: list[str], output_dir: str | None = None, macros: list[_Macro] | None = None, include_dirs: list[str] | None = None, debug: bool | Literal[0, 1] = 0, extra_preargs: list[str] | None = None, extra_postargs: list[str] | None = None, depends: list[str] | None = None) -> list[str]" is incompatible with type "CCompilerMethod"
-       Parameter 4: type "Tuple[str] | Tuple[str, str | None] | None" is incompatible with type "list[_Macro] | None" (reportArgumentType)
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/asyncio/patch.py:23:10 - error: Argument of type "(self: BaseEventLoop, coro: _CoroutineLike[_T@create_task], *, name: object = None) -> Task[_T@create_task]" cannot be assigned to parameter "f" of type "FunctionType" in function "wrap"
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/asyncio/patch.py:23:10 - error: Argument of type "(self: BaseEventLoop, coro: _CoroutineLike[_T@create_task], *, name: object = None, context: Context | None = None) -> Task[_T@create_task]" cannot be assigned to parameter "f" of type "FunctionType" in function "wrap"
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/asyncio/patch.py:32:12 - error: Argument of type "(self: BaseEventLoop, coro: _CoroutineLike[_T@create_task], *, name: object = None) -> Task[_T@create_task]" cannot be assigned to parameter "wf" of type "WrappedFunction" in function "unwrap"
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/asyncio/patch.py:32:12 - error: Argument of type "(self: BaseEventLoop, coro: _CoroutineLike[_T@create_task], *, name: object = None, context: Context | None = None) -> Task[_T@create_task]" cannot be assigned to parameter "wf" of type "WrappedFunction" in function "unwrap"
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_10.py
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_10.py:331:30 - error: "ext_instr" is possibly unbound (reportPossiblyUnboundVariable)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py:57:9 - error: Declaration "current_import_name" is obscured by a declaration of the same name (reportRedeclaration)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py:57:48 - error: Expression of type "None" is incompatible with declared type "str"
+     "None" is incompatible with "str" (reportAssignmentType)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py:58:9 - error: Declaration "current_import_package" is obscured by a declaration of the same name (reportRedeclaration)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py:58:51 - error: Expression of type "None" is incompatible with declared type "str"
+     "None" is incompatible with "str" (reportAssignmentType)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py:82:32 - error: Argument of type "int" cannot be assigned to parameter "object" of type "bytes" in function "append"
+     "int" is incompatible with "bytes" (reportArgumentType)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py:87:51 - error: Argument of type "list[bytes | int]" cannot be assigned to parameter "bytes" of type "Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer" in function "from_bytes"
+     "bytes" is incompatible with protocol "SupportsIndex"
+       "__index__" is not present (reportArgumentType)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py:101:40 - error: Argument of type "Tuple[str, ...] | None" cannot be assigned to parameter "iterable" of type "Iterable[_T@list]" in function "__init__"
+     Type "Tuple[str, ...] | None" is incompatible with type "Iterable[str]"
+       "None" is incompatible with protocol "Iterable[str]"
+         "__iter__" is not present (reportArgumentType)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py:114:40 - error: Argument of type "Tuple[str, ...] | None" cannot be assigned to parameter "iterable" of type "Iterable[_T@list]" in function "__init__"
+     Type "Tuple[str, ...] | None" is incompatible with type "Iterable[str]"
+       "None" is incompatible with protocol "Iterable[str]"
+         "__iter__" is not present (reportArgumentType)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/coverage/instrumentation_py3_12.py:128:9 - error: Argument of type "tuple[HookType, str, dict[int, Tuple[str, Tuple[str, ...] | None]]]" cannot be assigned to parameter "value" of type "Tuple[HookType, str, Dict[int, Tuple[str, Tuple[str] | None]]]" in function "__setitem__"
+     "tuple[HookType, str, dict[int, Tuple[str, Tuple[str, ...] | None]]]" is incompatible with "Tuple[HookType, str, Dict[int, Tuple[str, Tuple[str] | None]]]"
+       Tuple entry 3 is incorrect type
+         "dict[int, Tuple[str, Tuple[str, ...] | None]]" is incompatible with "Dict[int, Tuple[str, Tuple[str] | None]]"
+           Type parameter "_VT@dict" is invariant, but "Tuple[str, Tuple[str, ...] | None]" is not the same as "Tuple[str, Tuple[str] | None]"
+           Consider switching from "dict" to "Mapping" which is covariant in the value type (reportArgumentType)
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/wrapping/context.py:668:16 - error: "i" is possibly unbound (reportPossiblyUnboundVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/wrapping/context.py:668:20 - error: "i" is possibly unbound (reportPossiblyUnboundVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/vendor/psutil/setup.py:165:30 - error: Cannot access attribute "set_executable" for class "UnixCCompiler"
-     Attribute "set_executable" is unknown (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:560:11 - error: "ospathsplitroot_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:578:11 - error: "ospathsplitroot_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:598:11 - error: "ospathsplitroot_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:618:11 - error: "ospathsplitroot_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:626:11 - error: "ospathsplitroot_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:635:13 - error: "ospathsplitroot_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:647:11 - error: "ospathsplitroot_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:660:11 - error: "ospathsplitroot_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:674:11 - error: "ospathsplitroot_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:690:11 - error: "ospathsplitdrive_aspect" is not defined (reportUndefinedVariable)
-   /tmp/mypy_primer/projects/dd-trace-py/tests/appsec/iast/aspects/test_ospath_aspects.py:707:11 - error: "ospathsplitdrive_aspect" is not defined (reportUndefinedVariable)
+   /tmp/mypy_primer/projects/dd-trace-py/tests/contrib/psycopg/test_psycopg_async.py:87:14 - error: Cannot access attribute "assertEquals" for class "PsycopgCore*"
+     Attribute "assertEquals" is unknown (reportAttributeAccessIssue)

... (truncated 13 lines) ...

koda-validate (https://github.com/keithasaurus/koda-validate)
- /tmp/mypy_primer/projects/koda-validate/tests/test_311_plus.py
-   /tmp/mypy_primer/projects/koda-validate/tests/test_311_plus.py:1:20 - error: "NotRequired" is unknown import symbol (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/koda-validate/tests/test_311_plus.py:1:33 - error: "Required" is unknown import symbol (reportAttributeAccessIssue)
- 141 errors, 5 warnings, 0 informations 
+ 139 errors, 5 warnings, 0 informations 

spack (https://github.com/spack/spack)
+   /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1624:13 - error: No overloads for "__call__" match the provided arguments (reportCallIssue)
-   /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1624:53 - error: Argument of type "bool" cannot be assigned to parameter "onerror" of type "_OnErrorCallback | None" in function "__call__"
+   /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1624:53 - error: Argument of type "bool" cannot be assigned to parameter "onexc" of type "_OnExcCallback | None" in function "__call__"
-     Type "bool" is incompatible with type "_OnErrorCallback | None"
+     Type "bool" is incompatible with type "_OnExcCallback | None"
-       Type "bool" is incompatible with type "_OnErrorCallback"
+       Type "bool" is incompatible with type "_OnExcCallback"
+   /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1633:13 - error: No overloads for "__call__" match the provided arguments (reportCallIssue)
-   /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1633:35 - error: Argument of type "bool" cannot be assigned to parameter "onerror" of type "_OnErrorCallback | None" in function "__call__"
+   /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/filesystem.py:1633:35 - error: Argument of type "bool" cannot be assigned to parameter "onexc" of type "_OnExcCallback | None" in function "__call__"
-     Type "bool" is incompatible with type "_OnErrorCallback | None"
+     Type "bool" is incompatible with type "_OnExcCallback | None"
-       Type "bool" is incompatible with type "_OnErrorCallback"
+       Type "bool" is incompatible with type "_OnExcCallback"
+   /tmp/mypy_primer/projects/spack/lib/spack/llnl/util/lang.py:796:50 - error: Cannot access attribute "get" for class "EntryPoints"
+     Attribute "get" is unknown (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/fetch_strategy.py:853:17 - error: No overloads for "__call__" match the provided arguments (reportCallIssue)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/operating_systems/windows_os.py:65:23 - error: Argument of type "str" cannot be assigned to parameter "process_group" of type "int | None" in function "check_output"
+     Type "str" is incompatible with type "int | None"
+       "str" is incompatible with "int"
+       "str" is incompatible with "None" (reportArgumentType)
+   /tmp/mypy_primer/projects/spack/lib/spack/spack/test/packaging.py:56:30 - error: Argument of type "Prefix | None" cannot be assigned to parameter "args" of type "StrPath" in function "__init__" (reportArgumentType)
+   /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/trilinos/package.py:911:70 - error: Argument of type "Unknown | Prefix | None" cannot be assigned to parameter "args" of type "StrPath" in function "__init__" (reportArgumentType)
- 22733 errors, 73 warnings, 0 informations 
+ 22740 errors, 73 warnings, 0 informations 

materialize (https://github.com/MaterializeInc/materialize)
-   /tmp/mypy_primer/projects/materialize/ci/cleanup/aws.py:10:22 - error: "UTC" is unknown import symbol (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/materialize/ci/load/periodic.py
-   /tmp/mypy_primer/projects/materialize/ci/load/periodic.py:34:43 - error: "UTC" is not a known attribute of module "datetime" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/materialize/misc/dbt-materialize/setup.py
+   /tmp/mypy_primer/projects/materialize/misc/dbt-materialize/setup.py:17:6 - warning: Stub file not found for "distutils.core" (reportMissingTypeStubs)
-   /tmp/mypy_primer/projects/materialize/misc/python/materialize/mzexplore/common.py:414:39 - error: Argument of type "str | None" cannot be assigned to parameter "package" of type "Package" in function "files" (reportArgumentType)
- /tmp/mypy_primer/projects/materialize/misc/python/materialize/optbench/__init__.py
-   /tmp/mypy_primer/projects/materialize/misc/python/materialize/optbench/__init__.py:18:39 - error: Argument of type "str | None" cannot be assigned to parameter "package" of type "Package" in function "files" (reportArgumentType)
- 13 errors, 347 warnings, 0 informations 
+ 9 errors, 348 warnings, 0 informations