Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added check for overwriting a method within a class. This addresses #… #9443

Closed
wants to merge 1 commit into from

Conversation

erictraut
Copy link
Collaborator

…9426.

Copy link
Contributor

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

kornia (https://github.com/kornia/kornia)
+   /tmp/mypy_primer/projects/kornia/kornia/augmentation/container/augment.py:301:27 - error: Cannot assign to attribute "data_keys" for class "AugmentationSequentialOps"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/kornia/kornia/augmentation/container/augment.py:423:27 - error: Cannot assign to attribute "data_keys" for class "AugmentationSequentialOps"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/kornia/kornia/augmentation/container/augment.py:457:27 - error: Cannot assign to attribute "data_keys" for class "AugmentationSequentialOps"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/kornia/kornia/augmentation/container/image.py:32:21 - error: Cannot assign to attribute "disable_features" for class "ImageModule"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/kornia/kornia/augmentation/container/image.py:112:18 - error: Cannot assign to attribute "disable_features" for class "ImageSequential*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
- 5872 errors, 9 warnings, 0 informations 
+ 5877 errors, 9 warnings, 0 informations 

psycopg (https://github.com/psycopg/psycopg)
+   /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/connection.py:128:12 - error: Cannot assign to attribute "prepare_threshold" for class "Connection[Row@Connection]*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/connection_async.py:144:12 - error: Cannot assign to attribute "prepare_threshold" for class "AsyncConnection[Row@AsyncConnection]*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/generators.py
+   /tmp/mypy_primer/projects/psycopg/psycopg/psycopg/generators.py:100:10 - error: Cannot assign to attribute "nonblocking" for class "PGconn"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/psycopg/tests/fix_faker.py:55:18 - error: Cannot assign to attribute "schema" for class "Faker*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/psycopg/tests/fix_faker.py:207:14 - error: Cannot assign to attribute "schema" for class "Faker*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
- 1841 errors, 106 warnings, 0 informations 
+ 1846 errors, 106 warnings, 0 informations 

pytest (https://github.com/pytest-dev/pytest)
+   /tmp/mypy_primer/projects/pytest/src/_pytest/main.py:658:22 - error: Cannot assign to attribute "shouldfail" for class "Session*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/src/_pytest/python.py:515:22 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[BaseException]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/src/_pytest/stepwise.py:104:30 - error: Cannot assign to attribute "shouldstop" for class "Session"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/src/_pytest/config/__init__.py:161:22 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[Unknown]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/test_terminal.py:324:16 - error: Cannot assign to attribute "fullwidth" for class "TerminalWriter"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/code/test_excinfo.py:724:17 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[ValueError]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/code/test_excinfo.py:747:17 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[ValueError]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/code/test_excinfo.py:780:17 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[ValueError]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/code/test_excinfo.py:807:17 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[ValueError]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/code/test_excinfo.py:1085:17 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[ValueError]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/code/test_excinfo.py:1119:17 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[ValueError]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/code/test_excinfo.py:1151:17 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[ValueError]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/code/test_excinfo.py:1246:17 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[ValueError]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/pytest/testing/code/test_excinfo.py:1247:17 - error: Cannot assign to attribute "traceback" for class "ExceptionInfo[ValueError]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
- 765 errors, 43 warnings, 0 informations 
+ 779 errors, 43 warnings, 0 informations 

steam.py (https://github.com/Gobot1234/steam.py)
+   /tmp/mypy_primer/projects/steam.py/steam/_const.py:194:9 - error: Cannot assign to attribute "__eq__" for class "type[_IDComparable]*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/_const.py:195:9 - error: Cannot assign to attribute "__hash__" for class "type[_IDComparable]*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/app.py:309:16 - error: Cannot assign to attribute "position" for class "StructIO"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/app.py:316:16 - error: Cannot assign to attribute "position" for class "StructIO"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/app.py:319:16 - error: Cannot assign to attribute "position" for class "StructIO"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/app.py:387:16 - error: Cannot assign to attribute "position" for class "StructIO"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/client.py:553:23 - error: Cannot assign to attribute "_task_error" for class "ConnectionState"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/utils.py:470:22 - error: Cannot assign to attribute "position" for class "StructIO*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/_gc/client.py:116:21 - error: Cannot assign to attribute "user" for class "GCState[Any]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/bot.py:165:14 - error: Cannot assign to attribute "help_command" for class "Bot*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:172:14 - error: Cannot assign to attribute "callback" for class "Command[CogT@Command, P@Command, R@Command]*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/tf2/state.py:122:14 - error: Cannot assign to attribute "backpack" for class "GCState*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/protobufs/msg.py:131:17 - error: Cannot assign to attribute "__bytes__" for class "type[NotProtobufWrapped]*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/protobufs/msg.py:161:14 - error: Cannot assign to attribute "__class__" for class "Message*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/protobufs/msg.py:212:18 - error: Cannot assign to attribute "__class__" for class "ProtobufMessage*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/protobufs/msg.py:297:14 - error: Cannot assign to attribute "__class__" for class "GCMessage*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/steam.py/steam/protobufs/msg.py:322:14 - error: Cannot assign to attribute "__class__" for class "GCProtobufMessage*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
- 8431 errors, 95 warnings, 0 informations 
+ 8448 errors, 95 warnings, 0 informations 

openlibrary (https://github.com/internetarchive/openlibrary)
+   /tmp/mypy_primer/projects/openlibrary/openlibrary/core/schema.py:108:12 - error: Cannot assign to attribute "sql" for class "Schema"
+     Method cannot be reassigned (reportAttributeAccessIssue)
- 1244 errors, 68 warnings, 0 informations 
+ 1245 errors, 68 warnings, 0 informations 

yarl (https://github.com/aio-libs/yarl)
+   /tmp/mypy_primer/projects/yarl/packaging/pep517_backend/_backend.py:156:28 - error: Cannot assign to attribute "finalize_options" for class "type[install]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/yarl/packaging/pep517_backend/_backend.py:160:32 - error: Cannot assign to attribute "finalize_options" for class "type[install]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/yarl/packaging/pep517_backend/_backend.py:176:32 - error: Cannot assign to attribute "has_ext_modules" for class "type[Distribution]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/yarl/packaging/pep517_backend/_backend.py:191:36 - error: Cannot assign to attribute "get_long_description" for class "type[DistributionMetadata]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/yarl/packaging/pep517_backend/_backend.py:197:40 - error: Cannot assign to attribute "get_long_description" for class "type[DistributionMetadata]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
- 239 errors, 11 warnings, 0 informations 
+ 244 errors, 11 warnings, 0 informations 

paasta (https://github.com/yelp/paasta)
+   /tmp/mypy_primer/projects/paasta/paasta_tools/paastaapi/api_client.py:79:14 - error: Cannot assign to attribute "user_agent" for class "ApiClient*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/paasta/paasta_tools/paastaapi/configuration.py:134:14 - error: Cannot assign to attribute "logger_format" for class "Configuration*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/paasta/paasta_tools/paastaapi/configuration.py:143:14 - error: Cannot assign to attribute "logger_file" for class "Configuration*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/paasta/paasta_tools/paastaapi/configuration.py:146:14 - error: Cannot assign to attribute "debug" for class "Configuration*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/paasta/paasta_tools/paastaapi/configuration.py:201:16 - error: Cannot assign to attribute "logger_file" for class "Configuration*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/paasta/paasta_tools/paastaapi/configuration.py:202:16 - error: Cannot assign to attribute "debug" for class "Configuration*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
- 1231 errors, 124 warnings, 0 informations 
+ 1237 errors, 124 warnings, 0 informations 

rich (https://github.com/Textualize/rich)
+ /tmp/mypy_primer/projects/rich/rich/__main__.py
+   /tmp/mypy_primer/projects/rich/rich/__main__.py:221:13 - error: Cannot assign to attribute "file" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/rich/rich/_log_render.py
+   /tmp/mypy_primer/projects/rich/rich/_log_render.py:47:16 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/rich/rich/columns.py
+   /tmp/mypy_primer/projects/rich/rich/columns.py:120:15 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/console.py:817:14 - error: Cannot assign to attribute "_buffer_index" for class "Console*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/console.py:821:14 - error: Cannot assign to attribute "_buffer_index" for class "Console*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/rich/rich/markup.py
+   /tmp/mypy_primer/projects/rich/rich/markup.py:230:10 - error: Cannot assign to attribute "spans" for class "Text"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/rich/rich/panel.py
+   /tmp/mypy_primer/projects/rich/rich/panel.py:118:24 - error: Cannot assign to attribute "plain" for class "Text"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/panel.py:134:27 - error: Cannot assign to attribute "plain" for class "Text"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/rich/rich/rule.py
+   /tmp/mypy_primer/projects/rich/rich/rule.py:70:20 - error: Cannot assign to attribute "plain" for class "Text"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/rule.py:102:19 - error: Cannot assign to attribute "plain" for class "Text"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/rule.py:108:19 - error: Cannot assign to attribute "plain" for class "Text"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/rich/rich/table.py
+   /tmp/mypy_primer/projects/rich/rich/table.py:978:15 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/table.py:988:15 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/table.py:995:15 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/table.py:1002:15 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/rich/rich/text.py
+   /tmp/mypy_primer/projects/rich/rich/text.py:591:18 - error: Cannot assign to attribute "plain" for class "Text*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/text.py:664:14 - error: Cannot assign to attribute "plain" for class "Text*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/text.py:879:26 - error: Cannot assign to attribute "plain" for class "Text*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/text.py:881:26 - error: Cannot assign to attribute "plain" for class "Text*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/text.py:911:18 - error: Cannot assign to attribute "plain" for class "Text*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/text.py:927:18 - error: Cannot assign to attribute "plain" for class "Text*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/text.py:943:18 - error: Cannot assign to attribute "plain" for class "Text*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/rich/text.py:1323:18 - error: Cannot assign to attribute "plain" for class "Text"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_console.py:632:11 - error: Cannot assign to attribute "_pager" for class "SystemPager"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_console.py:856:13 - error: Cannot assign to attribute "size" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_console.py:858:13 - error: Cannot assign to attribute "width" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_console.py:860:13 - error: Cannot assign to attribute "height" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_console.py:880:18 - error: Cannot assign to attribute "isatty" for class "IO[str]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_logging.py:110:20 - error: Cannot assign to attribute "handleError" for class "RichHandler"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_logging.py:151:21 - error: Cannot assign to attribute "file" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_logging.py:158:21 - error: Cannot assign to attribute "file" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/rich/tests/test_rich_print.py
+   /tmp/mypy_primer/projects/rich/tests/test_rich_print.py:23:17 - error: Cannot assign to attribute "file" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_rich_print.py:29:17 - error: Cannot assign to attribute "file" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_rich_print.py:68:17 - error: Cannot assign to attribute "file" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_rich_print.py:74:17 - error: Cannot assign to attribute "file" for class "Console"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_table.py:34:11 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_table.py:40:11 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_table.py:65:11 - error: Cannot assign to attribute "padding" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_table.py:70:11 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_table.py:72:11 - error: Cannot assign to attribute "expand" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_table.py:81:11 - error: Cannot assign to attribute "padding" for class "Table"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_text.py:86:10 - error: Cannot assign to attribute "plain" for class "Text"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/rich/tests/test_text.py:90:10 - error: Cannot assign to attribute "plain" for class "Text"
+     Method cannot be reassigned (reportAttributeAccessIssue)
- 364 errors, 41 warnings, 0 informations 
+ 407 errors, 41 warnings, 0 informations 

ibis (https://github.com/ibis-project/ibis)
+   /tmp/mypy_primer/projects/ibis/ibis/common/bases.py:119:13 - error: Cannot assign to attribute "__init_subclass__" for class "type[Final]*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/ibis/ibis/legacy/udf/vectorized.py:100:16 - error: Cannot assign to attribute "index" for class "list[Unknown]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
- 7295 errors, 126 warnings, 0 informations 
+ 7297 errors, 126 warnings, 0 informations 

sympy (https://github.com/sympy/sympy)
-   /tmp/mypy_primer/projects/sympy/sympy/core/function.py:334:53 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:4437:16 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:4439:16 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:699:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:704:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:709:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:714:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:724:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:729:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:734:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:739:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:744:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:759:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:764:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:769:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:784:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:789:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:804:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:897:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:902:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:971:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:976:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:981:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:986:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:991:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:996:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:2299:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:3588:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:10:5 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:11:12 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:12:12 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:12:29 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:13:29 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:18:5 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:19:12 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:19:37 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:20:12 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:20:33 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:26:12 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_singleton.py:31:12 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/interactive/printing.py:282:19 - error: Cannot assign to attribute "_repr_latex_" for class "type[Printable]"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/liealgebras/cartan_type.py:60:13 - error: Cannot assign to attribute "series" for class "Standard_Cartan*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/logic/boolalg.py:442:8 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/logic/boolalg.py:443:9 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/matrices/expressions/matexpr.py:869:14 - error: Cannot assign to attribute "first_pointer" for class "_LeftRightArgs*"
+     Method cannot be reassigned (reportAttributeAccessIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/matrices/expressions/matexpr.py:872:14 - error: Cannot assign to attribute "second_pointer" for class "_LeftRightArgs*"

... (truncated 2593 lines) ...```

@erictraut erictraut closed this Nov 11, 2024
@erictraut erictraut deleted the issue-9426 branch November 11, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant