Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/source/error_code_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,19 @@ Example:
# variable has type "str") [assignment]
r.name = 5

Less obviously, this can also occur when importing, for the same underlying reason:

.. code-block:: python

from m1 import *
from m2 import * # E: Incompatible import of "x" (imported name has type "int", local name has type "str") [assignment]

[file m1.py]
x = ''

[file m2.py]
x = 1

.. _code-method-assign:

Check that assignment target is not a method [method-assign]
Expand Down
Loading