python / mypy

Optional static typing for Python
https://www.mypy-lang.org/
Other
18.27k stars 2.79k forks source link

Add `is_explicit_override` flag to `common.add_method` for plugins #17418

Closed sobolevn closed 3 months ago

sobolevn commented 3 months ago

Closes https://github.com/typeddjango/django-stubs/issues/2226 Closes https://github.com/python/mypy/issues/17417

sobolevn commented 3 months ago

Ok, this is important:

 mypy/test/meta/_pytest.py:14: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
    class PytestResult:
    ^~~~~~~~~~~~~~~~~~
mypy/test/data.py:425: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
    class TestItem:
    ^~~~~~~~~~~~~~
Found 2 errors in 2 files (checked 302 source files)
github-actions[bot] commented 3 months ago

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


python-chess (https://github.com/niklasf/python-chess)
+ chess/__init__.py:143: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ chess/__init__.py:587: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ chess/__init__.py:635: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ chess/gaviota.py:1504: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ chess/engine.py:86: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ chess/engine.py:168: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ chess/engine.py:312: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ chess/engine.py:780: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ chess/pgn.py:155: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ chess/pgn.py:163: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

pip (https://github.com/pypa/pip)
+ src/pip/_internal/models/scheme.py:14: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/models/direct_url.py:70: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/models/direct_url.py:140: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/models/direct_url.py:159: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/utils/misc.py:548: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/utils/logging.py:125: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/vcs/versioncontrol.py:118: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/models/search_scope.py:19: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/models/link.py:44: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/models/link.py:98: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/models/candidate.py:10: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/req/__init__.py:23: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/index/collector.py:253: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/index/package_finder.py:327: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/self_outdated_check.py:128: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/resolution/resolvelib/base.py:23: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/req/constructors.py:196: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/pip/_internal/operations/prepare.py:85: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

dacite (https://github.com/konradhalas/dacite)
+ dacite/config.py:15: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/net/dns/https_records.py:32: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/websocket.py:155: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/certs.py:327: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/mode_specs.py:46: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/connection.py:41: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/flow.py:19: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/optmanager.py:87: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/http.py:180: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/dns.py:28: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/dns.py:51: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/dns.py:180: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/hooks.py:58: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/hooks.py:69: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/hooks.py:81: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/hooks.py:89: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/tls.py:114: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/tls.py:135: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/log.py:228: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/addonmanager.py:121: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/server_hooks.py:8: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/server_hooks.py:20: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/server_hooks.py:29: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/server_hooks.py:39: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/server_hooks.py:51: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/server_hooks.py:60: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/server_hooks.py:69: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/events.py:37: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/events.py:107: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/events.py:114: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/events.py:123: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/events.py:133: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_hooks.py:8: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_hooks.py:18: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_hooks.py:33: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_hooks.py:43: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_hooks.py:56: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_hooks.py:70: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_hooks.py:87: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_hooks.py:102: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_hooks.py:115: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layer.py:333: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/websocket.py:24: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/websocket.py:33: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/websocket.py:45: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/udp.py:16: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/udp.py:25: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/udp.py:35: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/udp.py:44: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tcp.py:17: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tcp.py:26: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tcp.py:36: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tcp.py:45: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/modes.py:115: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/modes.py:123: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/dns.py:14: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/dns.py:23: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/dns.py:32: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/http/_base.py:16: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tls.py:167: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tls.py:179: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tls.py:191: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tls.py:203: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tls.py:212: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tls.py:221: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/tls.py:230: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/quic.py:56: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/quic.py:95: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/quic.py:107: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ mitmproxy/proxy/layers/quic.py:327: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

... (truncated 17 lines) ...

anyio (https://github.com/agronholm/anyio)
+ src/anyio/lowlevel.py:72: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_core/_synchronization.py:18: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_core/_synchronization.py:27: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_core/_synchronization.py:45: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_core/_synchronization.py:59: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_core/_synchronization.py:71: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/from_thread.py:396: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/stapled.py:23: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/stapled.py:59: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/stapled.py:95: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_core/_fileio.py:197: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/tls.py:61: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/tls.py:253: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/memory.py:37: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/memory.py:43: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/memory.py:67: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/memory.py:185: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/text.py:19: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/text.py:62: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/text.py:97: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/streams/buffered.py:12: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_backends/_trio.py:243: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_backends/_trio.py:264: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_backends/_trio.py:280: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_backends/_asyncio.py:917: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_backends/_asyncio.py:933: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ src/anyio/_backends/_asyncio.py:946: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

CPython (Argument Clinic) (https://github.com/python/cpython)
+ Tools/clinic/libclinic/errors.py:6: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ Tools/clinic/libclinic/cpp.py:28: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ Tools/clinic/libclinic/function.py:24: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ Tools/clinic/libclinic/function.py:39: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ Tools/clinic/libclinic/function.py:82: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ Tools/clinic/libclinic/function.py:182: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ Tools/clinic/libclinic/block_parser.py:16: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ Tools/clinic/libclinic/codegen.py:76: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ Tools/clinic/libclinic/codegen.py:96: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ Tools/clinic/libclinic/codegen.py:216: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

porcupine (https://github.com/Akuli/porcupine)
+ porcupine/settings.py:79: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/settings.py:100: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/_state.py:28: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/textutils.py:24: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/textutils.py:65: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/tabs.py:460: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/actions.py:12: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/actions.py:22: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/actions.py:32: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/hover.py:20: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/editorconfig.py:32: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/autoindent.py:34: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/autocomplete.py:34: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/autocomplete.py:44: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/autocomplete.py:50: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/run/common.py:12: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/run/common.py:28: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/pluginloader.py:91: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/underlines.py:29: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/underlines.py:37: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/highlight/tree_sitter_highlighter.py:29: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/directory_tree.py:63: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/jump_to_definition.py:20: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/jump_to_definition.py:26: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/jump_to_definition.py:33: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/langserver.py:251: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/run/history.py:18: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ porcupine/plugins/filemanager.py:344: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

flake8-pyi (https://github.com/PyCQA/flake8-pyi)
+ pyi.py:713: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ pyi.py:996: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ pyi.py:2306: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

psycopg (https://github.com/psycopg/psycopg)
+ psycopg_pool/psycopg_pool/_task.py:14: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ psycopg/psycopg/_tpc.py:18: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ psycopg/psycopg/errors.py:40: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ psycopg/psycopg/_conninfo_utils.py:90: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ tests/typing_example.py:19: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ tests/_test_connection.py:31: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

pylint (https://github.com/pycqa/pylint)
+ pylint/message/message.py:15: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

sockeye (https://github.com/awslabs/sockeye)
+ sockeye/config.py:44: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ sockeye/data_io.py:118: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ sockeye/data_io.py:2021: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ sockeye/beam_search.py:220: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ sockeye/inference.py:119: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ sockeye/inference.py:479: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ sockeye/inference.py:546: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ sockeye/inference.py:552: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ sockeye/inference.py:571: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ sockeye/inference.py:585: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/protobufs/encrypted_app_ticket.py:12: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/protobufs/content_manifest.py:17: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/protobufs/content_manifest.py:22: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/protobufs/content_manifest.py:33: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/protobufs/content_manifest.py:42: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/protobufs/content_manifest.py:55: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/protobufs/content_manifest.py:60: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/protobufs/content_manifest.py:69: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/tf2/protobufs/system_messages.py:11: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/tf2/protobufs/system_messages.py:18: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/tf2/protobufs/system_messages.py:23: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/tf2/protobufs/system_messages.py:29: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/tf2/protobufs/system_messages.py:37: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/tf2/protobufs/system_messages.py:44: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/tf2/protobufs/system_messages.py:50: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/csgo/protobufs/system_messages.py:11: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/csgo/protobufs/system_messages.py:18: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/csgo/protobufs/system_messages.py:27: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ steam/ext/csgo/protobufs/system_messages.py:35: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]

... (truncated 1067 lines) ...```
github-actions[bot] commented 3 months ago

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

ibis (https://github.com/ibis-project/ibis)
+ ibis/common/grounds.py:188: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
+ ibis/config.py:16: error: Method "__mypy-replace" is marked as an override, but no base method was found with this name  [misc]
sobolevn commented 3 months ago

This is not correct, I guess we have to ignore plugin_generated nodes instread.