Skip to content

Add instance-var-assign diagnostic for assigning to instance variables via the class - #4669

Closed
nitishagar wants to merge 2 commits into
meta:mainfrom
nitishagar:class-instance-var-assign-3750
Closed

nitishagar wants to merge 2 commits into
meta:mainfrom
nitishagar:class-instance-var-assign-3750

Conversation

@nitishagar

Copy link
Copy Markdown
Contributor

Summary

C.instance_var = 3, where instance_var is a class-body-declared, annotated, non-ClassVar field, was silently allowed. The mirror direction (assigning to a ClassVar through an instance) already errors, and the issue asks for a rule covering this direction too.

This adds a new instance-var-assign diagnostic, off by default (Severity::Ignore) and enabled in the strict preset, following the same shape as method-assign: detection keys off the authoritative ClassFieldInner::ClassAttribute origin (annotated and not ClassVar), threaded as a provenance flag on ClassAttribute::ReadWrite to the attribute-write chokepoint check_class_attr_set_and_infer_narrow, which emits only for class-object writes (instance_class.is_none() && class_base.is_some()). The existing type-compatibility check still runs, so an incompatible value reports both this and bad-assignment.

Off by default matches ty's current documented semantics (body-declared instance variables may be assigned via the class there; only instance-only variables error) — see the discussion linked in the issue. If maintainers prefer on-by-default symmetry with the ClassVar mirror rule, that is a one-line severity change and this PR can carry it.

Fixes #3750

Test Plan

  • Positive tests with the rule enabled: issue repro, inherited field via subclass, annotated-with-default field, generic class field — each reports instance-var-assign.
  • Negative tests under default config: same code stays silent; unannotated x = 3 via class, ClassVar via class, instance writes, @staticmethod assignment, and reads are unaffected; # pyrefly: ignore[instance-var-assign] suppresses.
  • Website error-kinds documentation added; full test.py fmt+lint+tests green.

AI-generated: this PR was prepared by an AI agent (with human review before submission), per the repository's AI contribution guidelines.

@meta-codesync

meta-codesync Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D117481537. (Because this pull request was imported automatically, there will not be any future comments.)

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@stroxler stroxler left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Merging needs a rebase. In addition, I think there are a few behaviors to adjust before we merge this:

  • Narrowing changes even when the diagnostic is disabled or suppressed. Class-attribute assignments stop narrowing, introducing unrelated downstream errors under the default preset.
  • Valid metaclass-instance writes are rejected. Custom metaclass fields and assignments such as C.__name__ = "Renamed" incorrectly trigger the diagnostic.
  • Classmethod-created attributes are misclassified. cls.x: int = 0 is mistaken for a class-body instance-variable declaration.
  • Descriptor-containing unions bypass the rule. The DescriptorRead → into_declared conversion drops the provenance flag, so qualifying assignments escape the diagnostic.

Assigning to an instance variable via the class (`C.instance_var = 3`,
where the class body declares `instance_var: int` without `ClassVar`)
silently succeeded, even though such fields are meant to be assigned on
instances — the mirror image of the existing rule that rejects instance
writes to a ClassVar.

Add a top-level, addressable ErrorKind::InstanceVarAssign, off by default
(Severity::Ignore) and enabled in strict mode (Preset::Strict), so default
checking behavior is unchanged (matching ty) while the diagnostic remains
independently suppressible via `# pyrefly: ignore[instance-var-assign]`.

Detection keys off `annotation.is_some() && !is_classvar`, threaded as a
provenance flag on `ClassAttribute::ReadWrite(Type, bool)` from the two
ClassAttribute conversion sites to the single attribute-write chokepoint,
which alone knows whether the write goes through the class object rather
than an instance. The error is emitted before the type-compat check, so
an ill-typed value reports both this kind and bad-assignment.
- The diagnostic is now purely additive: it no longer suppresses narrowing,
  so enabling it (or the strict preset) cannot change inference for code
  that assigns class attributes. Under the default preset behavior is
  byte-for-byte what it was before this feature existed.
- Writes that resolve through the metaclass are metaclass-instance writes
  and are no longer flagged: a class object is an instance of its
  metaclass, so assigning metaclass-declared fields (including __name__)
  through the class is valid. The provenance flag is now recorded only on
  the class-attribute lookup path.
- Attributes created by assigning through cls in a classmethod are class
  attributes, not class-body instance variables, and are no longer flagged.
- Descriptor-containing unions keep their provenance through the
  descriptor-read conversion, so qualifying writes are still flagged
  instead of escaping the rule.

Also rebased onto current main and merged the ReadWrite provenance flag
with the upstream IsMethod flag.
@nitishagar
nitishagar force-pushed the class-instance-var-assign-3750 branch from 38b0d45 to a454a79 Compare November 1, 2026 12:20
@github-actions github-actions Bot added size/xl and removed size/l labels Nov 1, 2026
@nitishagar

Copy link
Copy Markdown
Contributor Author

All four points addressed, and the branch is rebased onto current main (the rebase also ported the detection to the new resolve_class_attr_setter/AttrSetter setter architecture and merged the provenance flag with the upstream IsMethod flag on ClassAttribute::ReadWrite) — a454a79.

  • Narrowing no longer changes when the diagnostic is off. The diagnostic is now purely additive: it only emits an error and never touches the returned setter, so narrowing and type checking are byte-for-byte what they were before this feature existed whenever the kind is disabled or suppressed. (Under the new setter architecture the old should_narrow = false hook doesn't even exist — the emit is the only effect.)
  • Metaclass-instance writes are no longer rejected. The provenance flag is now recorded only on the class-attribute lookup path (as_class_attribute_inner). Writes that resolve through the metaclass fallback go through the instance path, where the flag is never set, so C.__name__ = "Renamed" and custom metaclass fields are treated as what they are — writes on an instance of the metaclass.
  • Classmethod-created attributes are no longer misclassified. Fields whose initialization is ClassMethod (set via cls in a method) are excluded from the provenance flag, so cls.x: int = 0 creates a class attribute, not a class-body instance variable.
  • Descriptor-containing unions no longer bypass the rule. DescriptorRead now carries the provenance flag and into_declared preserves it, so a class-body instance variable whose annotation contains descriptors is still flagged when written via the class.

Each fix has a regression test (test_instance_var_assign_metaclass_writes_not_flagged, test_instance_var_assign_classmethod_created_attr_not_flagged, test_instance_var_assign_descriptor_union_flagged). Full suite: 9895 passed; the only 2 failures are the missing_source LSP interaction tests, which fail identically on unmodified main in this environment (a system whatthepatch-stubs package resolves the import, so the expected missing-import diagnostic never appears).

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

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

============================================================
SUMMARY
============================================================
Total: +562 new errors, -4 fixed errors
By preset: +0/-0 (default), +0/-0 (strict)

Projects with changes (66):
  pip: +4 -0
  tornado: +11 -0
  psycopg: +7 -0
  mongo-python-driver: +3 -0
  yarl: +1 -0
  cki-lib: +8 -0
  mkdocs: +2 -0
  rotki: +36 -0
  graphql-core: +15 -0
  pytest: +6 -0
  PyGithub: +5 -0
  flake8: +2 -0
  archinstall: +3 -0
  jax: +10 -0
  schema_salad: +4 -0
  scipy: +3 -0
  urllib3: +5 -0
  scikit-learn: +6 -0
  spark: +26 -0
  prefect: +32 -0
  alerta: +1 -0
  freqtrade: +40 -0
  colour: +5 -0
  pwndbg: +2 -0
  manticore: +1 -0
  schemathesis: +1 -0
  comtypes: +3 -0
  materialize: +8 -0
  mitmproxy: +4 -0
  streamlit: +14 -0
  pytest-autoprofile: +1 -0
  cloud-init: +2 -0
  vision: +2 -0
  strawberry: +15 -0
  zulip: +4 -0
  pandera: +19 -0
  steam.py: +6 -0
  hydra-zen: +1 -0
  ibis: +2 -0
  bokeh: +6 -0
  beartype: +16 -0
  bandersnatch: +10 -0
  ignite: +1 -0
  static-frame: +25 -0
  antidote: +1 -0
  aiohttp: +2 -0
  pyodide: +5 -0
  rclip: +2 -0
  hydpy: +23 -0
  pandas: +5 -0
  trio: +17 -0
  paasta: +4 -0
  pytensor: +12 -4
  meson: +14 -0
  sphinx: +1 -0
  werkzeug: +4 -0
  dd-trace-py: +52 -0
  core: +6 -0
  jinja: +2 -0
  spack: +4 -0
  poetry: +1 -0
  numpy-stl: +1 -0
  django-test-migrations: +2 -0
  scrapy: +8 -0
  porcupine: +2 -0
  discord.py: +16 -0
============================================================

FULL DIFF DETAILS
------------------------------------------------------------

pip (https://github.com/pypa/pip)
+ ERROR src/pip/_vendor/urllib3/contrib/emscripten/__init__.py:13:5-37: Cannot set instance variable `ConnectionCls` from the class [instance-var-assign]
+ ERROR src/pip/_vendor/urllib3/contrib/emscripten/__init__.py:14:5-38: Cannot set instance variable `ConnectionCls` from the class [instance-var-assign]
+ ERROR src/pip/_vendor/urllib3/http2/__init__.py:35:5-38: Cannot set instance variable `ConnectionCls` from the class [instance-var-assign]
+ ERROR src/pip/_vendor/urllib3/http2/__init__.py:49:5-38: Cannot set instance variable `ConnectionCls` from the class [instance-var-assign]

tornado (https://github.com/tornadoweb/tornado)
+ ERROR tornado/netutil.py:552:13-28: Cannot set instance variable `_threadpool` from the class [instance-var-assign]
+ ERROR tornado/netutil.py:554:13-28: Cannot set instance variable `_threadpool` from the class [instance-var-assign]
+ ERROR tornado/netutil.py:555:13-32: Cannot set instance variable `_threadpool_pid` from the class [instance-var-assign]
+ ERROR tornado/test/locale_test.py:20:9-37: Cannot set instance variable `_cache` from the class [instance-var-assign]
+ ERROR tornado/test/netutil_test.py:124:13-41: Cannot set instance variable `_threadpool` from the class [instance-var-assign]
+ ERROR tornado/util.py:403:9-26: Cannot set instance variable `__impl_class` from the class [instance-var-assign]
+ ERROR tornado/util.py:404:9-27: Cannot set instance variable `__impl_kwargs` from the class [instance-var-assign]
+ ERROR tornado/util.py:414:13-30: Cannot set instance variable `__impl_class` from the class [instance-var-assign]
+ ERROR tornado/util.py:433:9-26: Cannot set instance variable `__impl_class` from the class [instance-var-assign]
+ ERROR tornado/util.py:434:9-27: Cannot set instance variable `__impl_kwargs` from the class [instance-var-assign]
+ ERROR tornado/web.py:3007:13-31: Cannot set instance variable `_static_hashes` from the class [instance-var-assign]

psycopg (https://github.com/psycopg/psycopg)
+ ERROR psycopg/psycopg/_connection_base.py:73:1-18: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR psycopg/psycopg/_tpc.py:114:1-15: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR psycopg/psycopg/types/json.py:50:9-27: Cannot set instance variable `_dumps` from the class [instance-var-assign]
+ ERROR psycopg/psycopg/types/json.py:86:9-27: Cannot set instance variable `_loads` from the class [instance-var-assign]
+ ERROR psycopg/psycopg/types/numeric.py:390:17-48: Cannot set instance variable `int_classes` from the class [instance-var-assign]
+ ERROR psycopg/psycopg/types/numeric.py:392:17-48: Cannot set instance variable `int_classes` from the class [instance-var-assign]
+ ERROR psycopg/psycopg/types/string.py:179:13-37: Cannot set instance variable `_escaping` from the class [instance-var-assign]

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ ERROR pymongo/_kms_connect_shared.py:490:1-29: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR pymongo/_kms_connect_shared.py:491:1-31: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR pymongo/_kms_connect_shared.py:492:1-36: Cannot set instance variable `__module__` from the class [instance-var-assign]

yarl (https://github.com/aio-libs/yarl)
+ ERROR yarl/_url.py:204:1-16: Cannot set instance variable `__module__` from the class [instance-var-assign]

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ ERROR cki_lib/inttests/cluster.py:113:9-23: Cannot set instance variable `api_client` from the class [instance-var-assign]
+ ERROR cki_lib/inttests/cluster.py:114:9-27: Cannot set instance variable `dynamic_client` from the class [instance-var-assign]
+ ERROR cki_lib/inttests/cluster.py:115:9-20: Cannot set instance variable `core_v1` from the class [instance-var-assign]
+ ERROR cki_lib/inttests/cluster.py:143:13-25: Cannot set instance variable `hostname` from the class [instance-var-assign]
+ ERROR cki_lib/inttests/cluster.py:167:13-25: Cannot set instance variable `hostname` from the class [instance-var-assign]
+ ERROR cki_lib/inttests/remote_responses.py:170:13-26: Cannot set instance variable `responses` from the class [instance-var-assign]
+ ERROR cki_lib/inttests/sqs.py:67:17-31: Cannot set instance variable `sqs_client` from the class [instance-var-assign]
+ ERROR cki_lib/inttests/sqs.py:68:17-34: Cannot set instance variable `sqs_queue_url` from the class [instance-var-assign]

mkdocs (https://github.com/mkdocs/mkdocs)
+ ERROR mkdocs/config/base.py:141:9-20: Cannot set instance variable `_schema` from the class [instance-var-assign]
+ ERROR mkdocs/plugins.py:83:13-30: Cannot set instance variable `config_scheme` from the class [instance-var-assign]

rotki (https://github.com/rotki/rotki)
+ ERROR rotkehlchen/assets/resolver.py:68:9-33: Cannot set instance variable `__instance` from the class [instance-var-assign]
+ ERROR rotkehlchen/assets/resolver.py:69:9-32: Cannot set instance variable `_globaldb` from the class [instance-var-assign]
+ ERROR rotkehlchen/assets/resolver.py:70:9-39: Cannot set instance variable `_constant_assets` from the class [instance-var-assign]
+ ERROR rotkehlchen/db/settings.py:603:9-34: Cannot set instance variable `__instance` from the class [instance-var-assign]
+ ERROR rotkehlchen/globaldb/handler.py:191:9-35: Cannot set instance variable `__instance` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:135:9-34: Cannot set instance variable `__instance` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:136:9-38: Cannot set instance variable `_cryptocompare` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:137:9-34: Cannot set instance variable `_coingecko` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:138:9-34: Cannot set instance variable `_defillama` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:139:9-32: Cannot set instance variable `_alchemy` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:140:9-32: Cannot set instance variable `_moralis` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:141:9-32: Cannot set instance variable `_birdeye` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:142:9-33: Cannot set instance variable `_coinbase` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:143:9-34: Cannot set instance variable `_uniswapv2` from the class [instance-var-assign]
+ ERROR rotkehlchen/history/price.py:144:9-34: Cannot set instance variable `_uniswapv3` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:472:9-28: Cannot set instance variable `__instance` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:475:9-32: Cannot set instance variable `_cryptocompare` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:476:9-28: Cannot set instance variable `_coingecko` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:477:9-28: Cannot set instance variable `_defillama` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:478:9-25: Cannot set instance variable `_kraken` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:479:9-26: Cannot set instance variable `_alchemy` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:480:9-26: Cannot set instance variable `_moralis` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:481:9-26: Cannot set instance variable `_birdeye` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:482:9-32: Cannot set instance variable `_manualcurrent` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:483:9-39: Cannot set instance variable `_cached_current_price` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:484:9-34: Cannot set instance variable `_inflight_prices` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:485:9-39: Cannot set instance variable `_inflight_prices_lock` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:486:9-38: Cannot set instance variable `_inflight_generation` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:487:9-31: Cannot set instance variable `_evm_managers` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:488:9-33: Cannot set instance variable `_msg_aggregator` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:489:9-32: Cannot set instance variable `special_tokens` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:524:13-39: Cannot set instance variable `eur_pegged_assets` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:526:13-25: Cannot set instance variable `usd` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:527:13-26: Cannot set instance variable `weth` from the class [instance-var-assign]
+ ERROR rotkehlchen/inquirer.py:1911:13-42: Cannot set instance variable `_inflight_generation` from the class [instance-var-assign]
+ ERROR rotkehlchen/tests/api/test_history.py:504:5-30: Cannot set instance variable `__instance` from the class [instance-var-assign]

graphql-core (https://github.com/graphql-python/graphql-core)
+ ERROR tests/execution/test_subscribe.py:1291:17-27: Cannot set instance variable `closed` from the class [instance-var-assign]
+ ERROR tests/pyutils/test_description.py:89:13-30: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR tests/pyutils/test_description.py:95:13-30: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR tests/type/test_schema.py:365:13-45: Cannot set instance variable `reserved_types` from the class [instance-var-assign]
+ ERROR tests/type/test_schema.py:371:17-49: Cannot set instance variable `reserved_types` from the class [instance-var-assign]
+ ERROR src/graphql/pyutils/description.py:38:13-22: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR src/graphql/pyutils/description.py:40:13-22: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR src/graphql/pyutils/description.py:43:17-26: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR src/graphql/pyutils/description.py:45:13-22: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR src/graphql/pyutils/description.py:55:17-26: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR src/graphql/pyutils/description.py:57:17-26: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR src/graphql/pyutils/description.py:59:17-26: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR src/graphql/pyutils/description.py:61:13-22: Cannot set instance variable `bases` from the class [instance-var-assign]
+ ERROR src/graphql/pyutils/undefined.py:25:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR src/graphql/utilities/get_introspection_query.py:427:1-27: Cannot set instance variable `__doc__` from the class [instance-var-assign]

pytest (https://github.com/pytest-dev/pytest)
+ ERROR src/_pytest/debugging.py:77:5-29: Cannot set instance variable `_pluginmanager` from the class [instance-var-assign]
+ ERROR src/_pytest/debugging.py:78:5-22: Cannot set instance variable `_config` from the class [instance-var-assign]
+ ERROR src/_pytest/debugging.py:85:13-37: Cannot set instance variable `_pluginmanager` from the class [instance-var-assign]
+ ERROR src/_pytest/debugging.py:86:13-30: Cannot set instance variable `_config` from the class [instance-var-assign]
+ ERROR src/_pytest/debugging.py:144:9-29: Cannot set instance variable `_wrapped_pdb_cls` from the class [instance-var-assign]
+ ERROR src/_pytest/mark/structures.py:270:1-24: Cannot set instance variable `__module__` from the class [instance-var-assign]

PyGithub (https://github.com/PyGithub/PyGithub)
+ ERROR github/Requester.py:318:9-21: Cannot set instance variable `__logger` from the class [instance-var-assign]
+ ERROR github/Requester.py:322:9-21: Cannot set instance variable `__logger` from the class [instance-var-assign]
+ ERROR github/Requester.py:332:9-24: Cannot set instance variable `ON_CHECK_ME` from the class [instance-var-assign]
+ ERROR tests/Framework.py:182:9-23: Cannot set instance variable `__openFile` from the class [instance-var-assign]
+ ERROR tests/Framework.py:194:13-27: Cannot set instance variable `__requests` from the class [instance-var-assign]

flake8 (https://github.com/pycqa/flake8)
+ ERROR src/flake8/utils.py:110:9-24: Cannot set instance variable `filenames` from the class [instance-var-assign]
+ ERROR src/flake8/utils.py:111:9-20: Cannot set instance variable `codes` from the class [instance-var-assign]

archinstall (https://github.com/archlinux/archinstall)
+ ERROR archinstall/lib/disk/fido.py:28:4-19: Cannot set instance variable `_loaded_u2f` from the class [instance-var-assign]
+ ERROR archinstall/lib/disk/fido.py:97:4-26: Cannot set instance variable `_loaded_cryptsetup` from the class [instance-var-assign]
+ ERROR archinstall/tui/components.py:1344:3-11: Cannot set instance variable `app` from the class [instance-var-assign]

jax (https://github.com/google/jax)
+ ERROR jax/_src/basearray.py:187:1-17: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR jax/_src/named_sharding.py:267:1-25: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR jax/_src/pallas/fuser/fusible_dtype.py:127:5-21: Cannot set instance variable `_op_registry` from the class [instance-var-assign]
+ ERROR jax/_src/partition_spec.py:260:1-13: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR jax/_src/profiler.py:357:5-47: Cannot set instance variable `allow_reuse_address` from the class [instance-var-assign]
+ ERROR jax/_src/sharding_impls.py:185:1-32: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR jax/_src/test_util.py:1151:5-31: Cannot set instance variable `_default_global_config` from the class [instance-var-assign]
+ ERROR jax/_src/traceback_util.py:136:1-31: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR jax/errors.py:37:1-27: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR jax/experimental/colocated_python/obj.py:207:3-23: Cannot set instance variable `__doc__` from the class [instance-var-assign]

schema_salad (https://github.com/common-workflow-language/schema_salad)
+ ERROR src/schema_salad/tests/test_real_cwl.py:31:13-32: Cannot set instance variable `document_loader` from the class [instance-var-assign]
+ ERROR src/schema_salad/tests/test_real_cwl.py:32:13-27: Cannot set instance variable `avsc_names` from the class [instance-var-assign]
+ ERROR src/schema_salad/tests/test_schemas_directive.py:31:13-32: Cannot set instance variable `document_loader` from the class [instance-var-assign]
+ ERROR src/schema_salad/tests/test_schemas_directive.py:32:13-27: Cannot set instance variable `avsc_names` from the class [instance-var-assign]

scipy (https://github.com/scipy/scipy)
+ ERROR scipy/optimize/_linprog_util.py:18:1-19: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR scipy/sparse/_base.py:1755:1-16: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR scipy/stats/_common.py:5:1-28: Cannot set instance variable `__doc__` from the class [instance-var-assign]

urllib3 (https://github.com/urllib3/urllib3)
+ ERROR test/conftest.py:402:13-45: Cannot set instance variable `ConnectionCls` from the class [instance-var-assign]
+ ERROR src/urllib3/contrib/emscripten/__init__.py:13:5-37: Cannot set instance variable `ConnectionCls` from the class [instance-var-assign]
+ ERROR src/urllib3/contrib/emscripten/__init__.py:14:5-38: Cannot set instance variable `ConnectionCls` from the class [instance-var-assign]
+ ERROR src/urllib3/http2/__init__.py:35:5-38: Cannot set instance variable `ConnectionCls` from the class [instance-var-assign]
+ ERROR src/urllib3/http2/__init__.py:49:5-38: Cannot set instance variable `ConnectionCls` from the class [instance-var-assign]

scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ ERROR sklearn/tests/test_base.py:580:9-33: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR sklearn/tests/test_base.py:587:9-33: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR sklearn/tests/test_base.py:624:9-35: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR sklearn/tests/test_base.py:634:9-35: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR sklearn/utils/_repr_html/tests/test_estimator.py:506:5-22: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR sklearn/utils/_repr_html/tests/test_estimator.py:537:5-22: Cannot set instance variable `__module__` from the class [instance-var-assign]

spark (https://github.com/apache/spark)
+ ERROR python/pyspark/pandas/typedef/typehints.py:894:13-27: Cannot set instance variable `name` from the class [instance-var-assign]
+ ERROR python/pyspark/pandas/typedef/typehints.py:897:21-34: Cannot set instance variable `tpe` from the class [instance-var-assign]
+ ERROR python/pyspark/pandas/typedef/typehints.py:900:21-34: Cannot set instance variable `tpe` from the class [instance-var-assign]
+ ERROR python/pyspark/pandas/typedef/typehints.py:904:17-30: Cannot set instance variable `tpe` from the class [instance-var-assign]
+ ERROR python/pyspark/pandas/typedef/typehints.py:916:21-33: Cannot set instance variable `tpe` from the class [instance-var-assign]
+ ERROR python/pyspark/pandas/typedef/typehints.py:918:21-33: Cannot set instance variable `tpe` from the class [instance-var-assign]
+ ERROR python/pyspark/pandas/typedef/typehints.py:920:17-29: Cannot set instance variable `tpe` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/catalog.py:410:1-16: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/client/reattach.py:147:17-50: Cannot set instance variable `_release_thread_pool_instance` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/conf.py:132:1-20: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/expressions.py:1056:13-57: Cannot set instance variable `_nextVarNameId` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/group.py:533:1-20: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/group.py:605:1-27: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/merge.py:157:5-24: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/merge.py:185:5-27: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/merge.py:222:5-35: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/merge.py:225:1-24: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/observation.py:91:1-20: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/plan.py:102:13-36: Cannot set instance variable `_nextPlanId` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/readwriter.py:586:1-24: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/session.py:1452:1-21: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/connect/streaming/readwriter.py:473:1-25: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/geo_utils.py:43:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR python/pyspark/sql/tests/test_inprocess_udf.py:160:9-29: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR python/pyspark/testing/goldenutils.py:120:9-21: Cannot set instance variable `_tz_prev` from the class [instance-var-assign]
+ ERROR python/pyspark/testing/tests/test_changed_files.py:111:9-26: Cannot set instance variable `__module__` from the class [instance-var-assign]

prefect (https://github.com/PrefectHQ/prefect)
+ ERROR src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:606:17-608:39: Cannot set instance variable `configured_factories` from the class [instance-var-assign]
+ ERROR src/prefect/_internal/analytics/service.py:60:21-34: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR src/prefect/_internal/analytics/service.py:75:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR src/prefect/_internal/waiters.py:164:9-33: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR src/prefect/_internal/waiters.py:242:17-30: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR src/prefect/blocks/core.py:1542:13-31: Cannot set instance variable `_block_type_id` from the class [instance-var-assign]
+ ERROR src/prefect/blocks/core.py:1575:13-31: Cannot set instance variable `_block_type_id` from the class [instance-var-assign]
+ ERROR src/prefect/blocks/core.py:1592:9-29: Cannot set instance variable `_block_schema_id` from the class [instance-var-assign]
+ ERROR src/prefect/blocks/core.py:1639:17-35: Cannot set instance variable `_block_type_id` from the class [instance-var-assign]
+ ERROR src/prefect/blocks/core.py:1672:17-35: Cannot set instance variable `_block_type_id` from the class [instance-var-assign]
+ ERROR src/prefect/blocks/core.py:1689:13-33: Cannot set instance variable `_block_schema_id` from the class [instance-var-assign]
+ ERROR src/prefect/events/clients.py:230:9-35: Cannot set instance variable `last` from the class [instance-var-assign]
+ ERROR src/prefect/events/clients.py:239:9-17: Cannot set instance variable `last` from the class [instance-var-assign]
+ ERROR src/prefect/events/clients.py:240:9-16: Cannot set instance variable `all` from the class [instance-var-assign]
+ ERROR src/prefect/events/clients.py:619:9-46: Cannot set instance variable `last` from the class [instance-var-assign]
+ ERROR src/prefect/events/clients.py:626:9-17: Cannot set instance variable `last` from the class [instance-var-assign]
+ ERROR src/prefect/events/clients.py:627:9-16: Cannot set instance variable `all` from the class [instance-var-assign]
+ ERROR src/prefect/events/worker.py:148:13-33: Cannot set instance variable `_client_override` from the class [instance-var-assign]
+ ERROR src/prefect/events/worker.py:151:9-29: Cannot set instance variable `_client_override` from the class [instance-var-assign]
+ ERROR src/prefect/server/concurrency/lease_storage/memory.py:26:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR src/prefect/server/concurrency/lease_storage/memory.py:35:9-36: Cannot set instance variable `_initialized` from the class [instance-var-assign]
+ ERROR src/prefect/server/events/actions.py:501:13-36: Cannot set instance variable `_registered_filters` from the class [instance-var-assign]
+ ERROR src/prefect/server/events/clients.py:74:9-35: Cannot set instance variable `last` from the class [instance-var-assign]
+ ERROR src/prefect/server/events/clients.py:82:9-17: Cannot set instance variable `last` from the class [instance-var-assign]
+ ERROR src/prefect/server/events/clients.py:83:9-16: Cannot set instance variable `all` from the class [instance-var-assign]
+ ERROR src/prefect/server/utilities/messaging/memory.py:219:9-20: Cannot set instance variable `_topics` from the class [instance-var-assign]
+ ERROR src/prefect/server/worker_communication/cleanup_queue/memory.py:70:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR src/prefect/task_runs.py:172:9-33: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR src/prefect/task_runs.py:257:17-30: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR src/prefect/types/_datetime_deprecations.py:102:9-23: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR src/prefect/utilities/visualization.py:130:9-36: Cannot set instance variable `current` from the class [instance-var-assign]
+ ERROR src/prefect/utilities/visualization.py:134:9-36: Cannot set instance variable `current` from the class [instance-var-assign]

alerta (https://github.com/alerta/alerta)
+ ERROR alerta/utils/client.py:23:13-38: Cannot set instance variable `debuglevel` from the class [instance-var-assign]

freqtrade (https://github.com/freqtrade/freqtrade)
+ ERROR freqtrade/freqtradebot.py:127:13-32: Cannot set instance variable `timeframe` from the class [instance-var-assign]
+ ERROR freqtrade/optimize/hyperopt/hyperopt_interface.py:40:9-28: Cannot set instance variable `timeframe` from the class [instance-var-assign]
+ ERROR freqtrade/optimize/hyperopt/hyperopt_interface.py:216:9-28: Cannot set instance variable `timeframe` from the class [instance-var-assign]
+ ERROR freqtrade/optimize/hyperopt_tools.py:42:9-18: Cannot set instance variable `state` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/custom_data.py:112:13-42: Cannot set instance variable `custom_data` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/custom_data.py:123:13-42: Cannot set instance variable `custom_data` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/pairlock_middleware.py:32:13-28: Cannot set instance variable `locks` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/trade_model.py:796:9-29: Cannot set instance variable `bt_trades` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/trade_model.py:797:9-34: Cannot set instance variable `bt_trades_open` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/trade_model.py:798:9-37: Cannot set instance variable `bt_trades_open_pp` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/trade_model.py:799:9-44: Cannot set instance variable `bt_open_open_trade_count` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/trade_model.py:800:9-35: Cannot set instance variable `bt_total_profit` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/trade_model.py:1555:9-44: Cannot set instance variable `bt_open_open_trade_count` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/trade_model.py:1557:9-35: Cannot set instance variable `bt_total_profit` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/trade_model.py:1564:13-48: Cannot set instance variable `bt_open_open_trade_count` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/trade_model.py:1572:9-44: Cannot set instance variable `bt_open_open_trade_count` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/usedb_context.py:12:5-24: Cannot set instance variable `timeframe` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/usedb_context.py:13:5-17: Cannot set instance variable `use_db` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/usedb_context.py:22:5-24: Cannot set instance variable `timeframe` from the class [instance-var-assign]
+ ERROR freqtrade/persistence/usedb_context.py:23:5-17: Cannot set instance variable `use_db` from the class [instance-var-assign]
+ ERROR freqtrade/plot/plotting.py:643:5-17: Cannot set instance variable `dp` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/api_analysis.py:90:9-31: Cannot set instance variable `analysis_running` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/api_analysis.py:140:5-27: Cannot set instance variable `analysis_running` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/api_analysis.py:225:5-27: Cannot set instance variable `analysis_running` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/api_backtest.py:167:9-31: Cannot set instance variable `analysis_running` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/api_backtest.py:211:5-27: Cannot set instance variable `analysis_running` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/api_download_data.py:48:9-36: Cannot set instance variable `download_data_running` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/api_download_data.py:84:5-32: Cannot set instance variable `download_data_running` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/api_pairlists.py:70:9-31: Cannot set instance variable `pairlist_running` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/api_pairlists.py:99:5-27: Cannot set instance variable `pairlist_running` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:110:9-34: Cannot set instance variable `_message_stream` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:114:9-34: Cannot set instance variable `_message_stream` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:140:9-26: Cannot set instance variable `_config` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:166:13-27: Cannot set instance variable `_rpc` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:167:13-31: Cannot set instance variable `_has_rpc` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:174:9-27: Cannot set instance variable `_has_rpc` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:176:9-24: Cannot set instance variable `exchanges` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:177:9-19: Cannot set instance variable `jobs` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:188:9-21: Cannot set instance variable `_has_rpc` from the class [instance-var-assign]
+ ERROR freqtrade/rpc/api_server/webserver.py:189:9-17: Cannot set instance variable `_rpc` from the class [instance-var-assign]

colour (https://github.com/colour-science/colour)
+ ERROR colour/utilities/network.py:175:9-30: Cannot set instance variable `_INSTANCE_ID` from the class [instance-var-assign]
+ ERROR colour/utilities/network.py:2552:13-57: Cannot set instance variable `ThreadPoolExecutor` from the class [instance-var-assign]
+ ERROR colour/utilities/network.py:2568:13-57: Cannot set instance variable `ThreadPoolExecutor` from the class [instance-var-assign]
+ ERROR colour/utilities/network.py:2737:13-59: Cannot set instance variable `ProcessPoolExecutor` from the class [instance-var-assign]
+ ERROR colour/utilities/network.py:2755:13-59: Cannot set instance variable `ProcessPoolExecutor` from the class [instance-var-assign]

pwndbg (https://github.com/pwndbg/pwndbg)
+ ERROR pwndbg/gdblib/tui/context.py:167:17-49: Cannot set instance variable `_static_enabled` from the class [instance-var-assign]
+ ERROR pwndbg/gdblib/tui/context.py:170:13-45: Cannot set instance variable `_static_enabled` from the class [instance-var-assign]

manticore (https://github.com/trailofbits/manticore)
+ ERROR manticore/binary/binary.py:144:1-14: Cannot set instance variable `magics` from the class [instance-var-assign]

schemathesis (https://github.com/schemathesis/schemathesis)
+ ERROR src/schemathesis/core/deserialization.py:127:5-32: Cannot set instance variable `yaml_implicit_resolvers` from the class [instance-var-assign]

comtypes (https://github.com/enthought/comtypes)
+ ERROR comtypes/_comobject.py:279:13-33: Cannot set instance variable `__server__` from the class [instance-var-assign]
+ ERROR comtypes/_comobject.py:291:18-38: Cannot set instance variable `__server__` from the class [instance-var-assign]
+ ERROR comtypes/_comobject.py:293:9-29: Cannot set instance variable `__server__` from the class [instance-var-assign]

materialize (https://github.com/MaterializeInc/materialize)
+ ERROR test/limits/mzcompose.py:131:9-20: Cannot set instance variable `EXPLAIN` from the class [instance-var-assign]
+ ERROR test/limits/mzcompose.py:2376:21-35: Cannot set instance variable `COUNT` from the class [instance-var-assign]
+ ERROR test/limits/mzcompose.py:2418:21-35: Cannot set instance variable `COUNT` from the class [instance-var-assign]
+ ERROR test/limits/mzcompose.py:2420:21-35: Cannot set instance variable `COUNT` from the class [instance-var-assign]
+ ERROR test/limits/mzcompose.py:2422:21-35: Cannot set instance variable `COUNT` from the class [instance-var-assign]
+ ERROR misc/python/materialize/ui.py:36:9-18: Cannot set instance variable `quiet` from the class [instance-var-assign]
+ ERROR misc/python/materialize/ui.py:38:13-22: Cannot set instance variable `quiet` from the class [instance-var-assign]
+ ERROR misc/python/materialize/zippy/framework.py:144:9-29: Cannot set instance variable `current_seqno` from the class [instance-var-assign]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ ERROR docs/src/examples/contrib/upstream_pac.py:47:17-37: Cannot set instance variable `pac_file` from the class [instance-var-assign]
+ ERROR docs/src/examples/contrib/upstream_pac.py:50:17-37: Cannot set instance variable `pac_file` from the class [instance-var-assign]
+ ERROR examples/contrib/upstream_pac.py:47:17-37: Cannot set instance variable `pac_file` from the class [instance-var-assign]
+ ERROR examples/contrib/upstream_pac.py:50:17-37: Cannot set instance variable `pac_file` from the class [instance-var-assign]

streamlit (https://github.com/streamlit/streamlit)
+ ERROR lib/streamlit/delta_generator_singletons.py:93:9-42: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR lib/streamlit/runtime/credentials.py:137:9-31: Cannot set instance variable `_singleton` from the class [instance-var-assign]
+ ERROR lib/streamlit/runtime/forward_msg_queue.py:45:9-44: Cannot set instance variable `_before_enqueue_msg` from the class [instance-var-assign]
+ ERROR lib/streamlit/runtime/metrics_util.py:371:21-34: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR lib/streamlit/runtime/pages_manager.py:61:13-46: Cannot set instance variable `uses_pages_directory` from the class [instance-var-assign]
+ ERROR lib/streamlit/runtime/runtime.py:206:9-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR lib/streamlit/watcher/event_based_path_watcher.py:193:9-37: Cannot set instance variable `_singleton` from the class [instance-var-assign]
+ ERROR lib/tests/delta_generator_test_case.py:84:13-59: Cannot set instance variable `_bidi_component_manager` from the class [instance-var-assign]
+ ERROR lib/tests/streamlit/dataframe_util_test.py:1308:5-37: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR lib/tests/streamlit/dataframe_util_test.py:1355:5-32: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR lib/tests/streamlit/runtime/caching/gh14593_pickle_sys_modules_test.py:34:5-21: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR lib/tests/streamlit/runtime/caching/gh14593_pickle_sys_modules_test.py:46:5-21: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR lib/tests/streamlit/runtime/caching/gh14593_pickle_sys_modules_test.py:66:5-21: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR lib/tests/streamlit/watcher/local_sources_watcher_test.py:747:9-25: Cannot set instance variable `__module__` from the class [instance-var-assign]

pytest-autoprofile (https://gitlab.com/TTsangSC/pytest-autoprofile)
+ ERROR src/pytest_autoprofile/profiler.py:429:1-27: Cannot set instance variable `__doc__` from the class [instance-var-assign]

cloud-init (https://github.com/canonical/cloud-init)
+ ERROR cloudinit/log/loggers.py:300:5-32: Cannot set instance variable `converter` from the class [instance-var-assign]
+ ERROR tests/unittests/test_log.py:30:5-32: Cannot set instance variable `converter` from the class [instance-var-assign]

vision (https://github.com/pytorch/vision)
+ ERROR torchvision/models/googlenet.py:22:1-33: Cannot set instance variable `__annotations__` from the class [instance-var-assign]
+ ERROR torchvision/models/inception.py:21:1-33: Cannot set instance variable `__annotations__` from the class [instance-var-assign]

strawberry (https://github.com/strawberry-graphql/strawberry)
+ ERROR strawberry/ext/mypy_plugin.py:268:9-28: Cannot set instance variable `VERSION` from the class [instance-var-assign]
+ ERROR strawberry/ext/mypy_plugin.py:270:9-28: Cannot set instance variable `VERSION` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:429:5-34: Cannot set instance variable `keep_alive` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:430:5-43: Cannot set instance variable `keep_alive_interval` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:431:5-33: Cannot set instance variable `protocols` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:432:5-52: Cannot set instance variable `connection_init_wait_timeout` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:433:5-47: Cannot set instance variable `graphiql_allowed_accept` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:434:5-30: Cannot set instance variable `schema` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:435:5-45: Cannot set instance variable `allow_queries_via_get` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:436:5-35: Cannot set instance variable `graphql_ide` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:437:5-49: Cannot set instance variable `multipart_uploads_enabled` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:438:5-56: Cannot set instance variable `max_subscriptions_per_connection` from the class [instance-var-assign]
+ ERROR strawberry/litestar/controller.py:441:5-39: Cannot set instance variable `allowed_origins` from the class [instance-var-assign]
+ ERROR strawberry/permission.py:88:9-33: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR strawberry/types/unset.py:10:13-27: Cannot set instance variable `__instance` from the class [instance-var-assign]

zulip (https://github.com/zulip/zulip)
+ ERROR zerver/lib/rate_limiter.py:231:13-24: Cannot set instance variable `_script` from the class [instance-var-assign]
+ ERROR zerver/management/commands/send_test_email.py:49:13-36: Cannot set instance variable `debuglevel` from the class [instance-var-assign]
+ ERROR zerver/tests/test_redis_utils.py:25:9-25: Cannot set instance variable `redis_client` from the class [instance-var-assign]
+ ERROR zerver/worker/base.py:60:9-25: Cannot set instance variable `queue_name` from the class [instance-var-assign]

pandera (https://github.com/pandera-dev/pandera)
+ ERROR pandera/api/dataframe/model.py:320:13-28: Cannot set instance variable `name` from the class [instance-var-assign]
+ ERROR pandera/api/dataframe/model.py:326:13-23: Cannot set instance variable `Config` from the class [instance-var-assign]
+ ERROR pandera/api/dataframe/model.py:347:9-23: Cannot set instance variable `__config__` from the class [instance-var-assign]
+ ERROR pandera/api/dataframe/model.py:347:25-39: Cannot set instance variable `__extras__` from the class [instance-var-assign]
+ ERROR pandera/api/pyspark/model.py:167:13-23: Cannot set instance variable `Config` from the class [instance-var-assign]
+ ERROR pandera/api/pyspark/model.py:177:9-23: Cannot set instance variable `__config__` from the class [instance-var-assign]
+ ERROR pandera/api/pyspark/model.py:177:25-39: Cannot set instance variable `__extras__` from the class [instance-var-assign]
+ ERROR pandera/api/tensordict/model.py:228:17-32: Cannot set instance variable `name` from the class [instance-var-assign]
+ ERROR pandera/api/tensordict/model.py:230:13-23: Cannot set instance variable `Config` from the class [instance-var-assign]
+ ERROR pandera/api/tensordict/model.py:247:9-23: Cannot set instance variable `__config__` from the class [instance-var-assign]
+ ERROR pandera/api/xarray/model.py:467:17-32: Cannot set instance variable `name` from the class [instance-var-assign]
+ ERROR pandera/api/xarray/model.py:469:13-23: Cannot set instance variable `Config` from the class [instance-var-assign]
+ ERROR pandera/api/xarray/model.py:570:17-32: Cannot set instance variable `name` from the class [instance-var-assign]
+ ERROR pandera/api/xarray/model.py:572:13-23: Cannot set instance variable `Config` from the class [instance-var-assign]
+ ERROR pandera/api/xarray/model.py:684:17-32: Cannot set instance variable `name` from the class [instance-var-assign]
+ ERROR pandera/api/xarray/model.py:686:13-23: Cannot set instance variable `Config` from the class [instance-var-assign]
+ ERROR pandera/strategies/constraints.py:36:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR tests/core/test_register_checks.py:75:5-38: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR tests/pandas/test_model.py:1959:5-20: Cannot set instance variable `name` from the class [instance-var-assign]

steam.py (https://github.com/Gobot1234/steam.py)
+ ERROR steam/_gc/state.py:87:9-23: Cannot set instance variable `gc_parsers` from the class [instance-var-assign]
+ ERROR steam/ext/commands/converters.py:239:13-30: Cannot set instance variable `converter_for` from the class [instance-var-assign]
+ ERROR steam/game_server.py:94:5-24: Cannot set instance variable `__annotations__` from the class [instance-var-assign]
+ ERROR steam/game_server.py:96:1-33: Cannot set instance variable `__annotations__` from the class [instance-var-assign]
+ ERROR steam/protobufs/msg.py:52:5-24: Cannot set instance variable `__annotations__` from the class [instance-var-assign]
+ ERROR steam/state.py:3038:1-24: Cannot set instance variable `parsers` from the class [instance-var-assign]

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
+ ERROR src/hydra_zen/structured_configs/_implementations.py:531:13-24: Cannot set instance variable `__doc__` from the class [instance-var-assign]

ibis (https://github.com/ibis-project/ibis)
+ ERROR ibis/expr/datashape.py:60:1-17: Cannot set instance variable `SCALAR` from the class [instance-var-assign]
+ ERROR ibis/expr/datashape.py:61:1-19: Cannot set instance variable `COLUMNAR` from the class [instance-var-assign]

bokeh (https://github.com/bokeh/bokeh)
+ ERROR src/bokeh/core/has_props.py:106:5-16: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR src/bokeh/core/has_props.py:356:9-27: Cannot set instance variable `__properties__` from the class [instance-var-assign]
+ ERROR src/bokeh/core/has_props.py:357:9-36: Cannot set instance variable `__overridden_defaults__` from the class [instance-var-assign]
+ ERROR src/bokeh/models/formatters.py:1105:1-30: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR src/bokeh/models/formatters.py:1110:1-31: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR src/bokeh/server/tornado.py:919:1-21: Cannot set instance variable `__doc__` from the class [instance-var-assign]

beartype (https://github.com/beartype/beartype)
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:248:5-32: Cannot set instance variable `__args_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:249:5-34: Cannot set instance variable `__kwargs_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:497:5-43: Cannot set instance variable `__hint_pep749_ref_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:749:5-37: Cannot set instance variable `__call_curr_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:750:5-44: Cannot set instance variable `__exception_prefix_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:753:5-32: Cannot set instance variable `__conf_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:754:5-61: Cannot set instance variable `__func_local_parent_codeobj_weakref_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:756:5-37: Cannot set instance variable `__hint_name_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:757:5-44: Cannot set instance variable `__hint_parent_sane_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefproxy.py:758:5-38: Cannot set instance variable `__scope_name_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefset.py:103:9-41: Cannot set instance variable `__call_curr_beartype__` from the class [instance-var-assign]
+ ERROR beartype/_check/forward/reference/fwdrefset.py:104:9-48: Cannot set instance variable `__exception_prefix_beartype__` from the class [instance-var-assign]
+ ERROR beartype/door/_cls/_doormap.py:232:9-32: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR beartype/roar/_roarexc.py:112:9-34: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR beartype/roar/_roarwarn.py:56:9-34: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR beartype/typing/_typingpep544.py:616:1-20: Cannot set instance variable `__module__` from the class [instance-var-assign]

bandersnatch (https://github.com/pypa/bandersnatch)
+ ERROR src/bandersnatch/tests/plugins/test_filename.py:15:5-50: Cannot set instance variable `_patterns` from the class [instance-var-assign]
+ ERROR src/bandersnatch/tests/plugins/test_filename.py:16:5-54: Cannot set instance variable `_packagetypes` from the class [instance-var-assign]
+ ERROR src/bandersnatch/tests/plugins/test_metadata_plugins.py:291:9-21: Cannot set instance variable `patterns` from the class [instance-var-assign]
+ ERROR src/bandersnatch/tests/plugins/test_metadata_plugins.py:295:9-21: Cannot set instance variable `patterns` from the class [instance-var-assign]
+ ERROR src/bandersnatch/tests/plugins/test_metadata_plugins.py:569:9-48: Cannot set instance variable `patterns` from the class [instance-var-assign]
+ ERROR src/bandersnatch/tests/test_configuration.py:30:5-25: Cannot set instance variable `_instances` from the class [instance-var-assign]
+ ERROR src/bandersnatch/tests/test_configuration.py:34:5-25: Cannot set instance variable `_instances` from the class [instance-var-assign]
+ ERROR src/bandersnatch/tests/test_main.py:31:5-25: Cannot set instance variable `_instances` from the class [instance-var-assign]
+ ERROR src/bandersnatch/tests/test_mirror.py:154:5-25: Cannot set instance variable `_instances` from the class [instance-var-assign]
+ ERROR src/bandersnatch/tests/test_mirror.py:178:5-25: Cannot set instance variable `_instances` from the class [instance-var-assign]

ignite (https://github.com/pytorch/ignite)
+ ERROR ignite/distributed/utils.py:554:5-37: Cannot set instance variable `_ext_local_rank` from the class [instance-var-assign]

static-frame (https://github.com/static-frame/static-frame)
+ ERROR static_frame/core/container_util.py:142:9-17: Cannot set instance variable `_map` from the class [instance-var-assign]
+ ERROR static_frame/core/index.py:1932:1-27: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index.py:1933:1-29: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:366:1-31: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:367:1-33: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:468:1-36: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:469:1-38: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:561:1-31: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:562:1-33: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:579:1-31: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:580:1-33: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:597:1-33: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:598:1-35: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:615:1-33: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:616:1-35: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:633:1-38: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:634:1-40: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:651:1-38: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:652:1-40: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:669:1-37: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_datetime.py:670:1-39: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_hierarchy.py:3356:1-36: Cannot set instance variable `_MUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/index_hierarchy.py:3357:1-38: Cannot set instance variable `_IMMUTABLE_CONSTRUCTOR` from the class [instance-var-assign]
+ ERROR static_frame/core/util.py:3812:13-22: Cannot set instance variable `_size` from the class [instance-var-assign]
+ ERROR static_frame/core/util.py:3813:13-23: Cannot set instance variable `_array` from the class [instance-var-assign]

antidote (https://github.com/Finistere/antidote)
+ ERROR tests/core/test_thread_safety.py:59:9-20: Cannot set instance variable `__state` from the class [instance-var-assign]

aiohttp (https://github.com/aio-libs/aiohttp)
+ ERROR aiohttp/helpers.py:867:9-22: Cannot set instance variable `__cause__` from the class [instance-var-assign]
+ ERROR aiohttp/resolver.py:207:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]

pyodide (https://github.com/pyodide/pyodide)
+ ERROR pyodide-build/pyodide_build/out_of_tree/pypi.py:360:5-28: Cannot set instance variable `BUILD_SKIP` from the class [instance-var-assign]
+ ERROR pyodide-build/pyodide_build/out_of_tree/pypi.py:439:5-31: Cannot set instance variable `BUILD_EXPORTS` from the class [instance-var-assign]
+ ERROR pyodide-build/pyodide_build/out_of_tree/pypi.py:440:5-29: Cannot set instance variable `BUILD_FLAGS` from the class [instance-var-assign]
+ ERROR pyodide-build/pyodide_build/out_of_tree/pypi.py:474:5-31: Cannot set instance variable `BUILD_EXPORTS` from the class [instance-var-assign]
+ ERROR pyodide-build/pyodide_build/out_of_tree/pypi.py:475:5-29: Cannot set instance variable `BUILD_FLAGS` from the class [instance-var-assign]

rclip (https://github.com/yurijmikhalevich/rclip)
+ ERROR rclip/model_download.py:268:3-35: Cannot set instance variable `shared_bar` from the class [instance-var-assign]
+ ERROR rclip/model_download.py:274:5-37: Cannot set instance variable `shared_bar` from the class [instance-var-assign]

hydpy (https://github.com/hydpy-dev/hydpy)
+ ERROR hydpy/core/filetools.py:1141:9-32: Cannot set instance variable `_workingpath` from the class [instance-var-assign]
+ ERROR hydpy/core/filetools.py:1148:13-36: Cannot set instance variable `_workingpath` from the class [instance-var-assign]
+ ERROR hydpy/core/masktools.py:32:9-17: Cannot set instance variable `name` from the class [instance-var-assign]
+ ERROR hydpy/core/modeltools.py:117:9-24: Cannot set instance variable `REUSEMARKER` from the class [instance-var-assign]
+ ERROR hydpy/core/objecttools.py:1102:13-51: Cannot set instance variable `_always_bracketed` from the class [instance-var-assign]
+ ERROR hydpy/core/objecttools.py:1110:13-51: Cannot set instance variable `_always_bracketed` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:3587:17-30: Cannot set instance variable `constants` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:3928:17-31: Cannot set instance variable `refindices` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:3929:17-30: Cannot set instance variable `constants` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:3930:17-29: Cannot set instance variable `relevant` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:4963:17-31: Cannot set instance variable `entrynames` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:4964:17-29: Cannot set instance variable `entrymin` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:5405:17-29: Cannot set instance variable `rownames` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:5406:17-27: Cannot set instance variable `rowmin` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:5427:17-32: Cannot set instance variable `columnnames` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:5428:17-30: Cannot set instance variable `columnmin` from the class [instance-var-assign]
+ ERROR hydpy/core/parametertools.py:5446:9-31: Cannot set instance variable `_rowcolumnmappings` from the class [instance-var-assign]
+ ERROR hydpy/core/typingtools.py:58:1-13: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR hydpy/core/variabletools.py:582:9-17: Cannot set instance variable `name` from the class [instance-var-assign]
+ ERROR hydpy/core/variabletools.py:1157:17-32: Cannot set instance variable `_refweights` from the class [instance-var-assign]
+ ERROR hydpy/core/variabletools.py:1160:17-32: Cannot set instance variable `_refweights` from the class [instance-var-assign]
+ ERROR hydpy/core/variabletools.py:1171:9-17: Cannot set instance variable `unit` from the class [instance-var-assign]
+ ERROR hydpy/exe/servertools.py:261:1-11: Cannot set instance variable `__doc__` from the class [instance-var-assign]

pandas (https://github.com/pandas-dev/pandas)
+ ERROR pandas/core/dtypes/dtypes.py:155:9-26: Cannot set instance variable `_cache_dtypes` from the class [instance-var-assign]
+ ERROR pandas/core/window/rolling.py:3574:1-16: Cannot set instance variable `__doc__` from the class [instance-var-assign]
+ ERROR pandas/io/parsers/python_parser.py:227:17-30: Cannot set instance variable `delimiter` from the class [instance-var-assign]
+ ERROR pandas/io/parsers/python_parser.py:254:17-30: Cannot set instance variable `delimiter` from the class [instance-var-assign]
+ ERROR pandas/tests/generic/test_frame.py:110:13-35: Cannot set instance variable `_metadata` from the class [instance-var-assign]

trio (https://github.com/python-trio/trio)
+ ERROR src/trio/_abc.py:705:1-23: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR src/trio/_abc.py:706:1-26: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR src/trio/_abc.py:707:1-20: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR src/trio/_abc.py:722:1-19: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR src/trio/_ssl.py:918:1-21: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:482:9-18: Cannot set instance variable `ran` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:483:9-25: Cannot set instance variable `high_water` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:484:9-22: Cannot set instance variable `running` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:485:9-21: Cannot set instance variable `parked` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:493:17-26: Cannot set instance variable `ran` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:494:17-30: Cannot set instance variable `running` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:495:17-33: Cannot set instance variable `high_water` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:498:17-29: Cannot set instance variable `parked` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:501:17-29: Cannot set instance variable `parked` from the class [instance-var-assign]
+ ERROR src/trio/_tests/test_threads.py:502:17-30: Cannot set instance variable `running` from the class [instance-var-assign]
+ ERROR src/trio/testing/_memory_streams.py:280:1-28: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR src/trio/testing/_memory_streams.py:283:1-31: Cannot set instance variable `__module__` from the class [instance-var-assign]

paasta (https://github.com/yelp/paasta)
+ ERROR paasta_tools/utils.py:4086:13-19: Cannot set instance variable `zk` from the class [instance-var-assign]
+ ERROR paasta_tools/utils.py:4090:9-20: Cannot set instance variable `counter` from the class [instance-var-assign]
+ ERROR paasta_tools/utils.py:4095:9-20: Cannot set instance variable `counter` from the class [instance-var-assign]
+ ERROR paasta_tools/utils.py:4099:13-19: Cannot set instance variable `zk` from the class [instance-var-assign]

pytensor (https://github.com/pymc-devs/pytensor)
+ ERROR pytensor/graph/features.py:333:9-31: Cannot set instance variable `_feature_callbacks` from the class [instance-var-assign]
+ ERROR pytensor/link/c/op.py:206:17-44: Cannot set instance variable `gxx_support_openmp` from the class [instance-var-assign]
+ ERROR pytensor/link/c/type.py:300:1-24: Cannot set instance variable `constant_type` from the class [instance-var-assign]
+ ERROR pytensor/scalar/basic.py:949:1-25: Cannot set instance variable `variable_type` from the class [instance-var-assign]
+ ERROR pytensor/scalar/basic.py:979:1-25: Cannot set instance variable `constant_type` from the class [instance-var-assign]
+ ERROR pytensor/sparse/variable.py:480:1-31: Cannot set instance variable `variable_type` from the class [instance-var-assign]
+ ERROR pytensor/sparse/variable.py:481:1-31: Cannot set instance variable `constant_type` from the class [instance-var-assign]
- ERROR pytensor/tensor/random/variable.py:82:62-88: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR pytensor/tensor/type_other.py:106:1-24: Cannot set instance variable `constant_type` from the class [instance-var-assign]
+ ERROR pytensor/tensor/variable.py:897:1-25: Cannot set instance variable `variable_type` from the class [instance-var-assign]
+ ERROR pytensor/tensor/variable.py:1092:1-25: Cannot set instance variable `constant_type` from the class [instance-var-assign]
+ ERROR pytensor/typed_list/basic.py:58:1-28: Cannot set instance variable `variable_type` from the class [instance-var-assign]
+ ERROR pytensor/typed_list/basic.py:74:1-28: Cannot set instance variable `constant_type` from the class [instance-var-assign]
- ERROR pytensor/xtensor/random/variable.py:82:64-90: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR pytensor/xtensor/type.py:975:46-60: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR pytensor/xtensor/type.py:976:46-60: Unused `# type: ignore` comment [unused-type-ignore]

meson (https://github.com/mesonbuild/meson)
+ ERROR mesonbuild/dependencies/cmake.py:171:17-56: Cannot set instance variable `class_working_generator` from the class [instance-var-assign]
+ ERROR mesonbuild/dependencies/cmake.py:387:17-56: Cannot set instance variable `class_working_generator` from the class [instance-var-assign]
+ ERROR mesonbuild/dependencies/dub.py:93:13-39: Cannot set instance variable `class_dubbin` from the class [instance-var-assign]
+ ERROR mesonbuild/interpreterbase/baseobjects.py:53:9-20: Cannot set instance variable `METHODS` from the class [instance-var-assign]
+ ERROR mesonbuild/interpreterbase/baseobjects.py:54:9-22: Cannot set instance variable `OPERATORS` from the class [instance-var-assign]
+ ERROR mesonbuild/interpreterbase/baseobjects.py:55:9-30: Cannot set instance variable `TRIVIAL_OPERATORS` from the class [instance-var-assign]
+ ERROR mesonbuild/modules/dlang.py:50:13-37: Cannot set instance variable `class_dubbin` from the class [instance-var-assign]
+ ERROR mesonbuild/modules/dlang.py:56:13-37: Cannot set instance variable `class_dubbin` from the class [instance-var-assign]
+ ERROR run_project_tests.py:577:5-36: Cannot set instance variable `class_cmakeinfo` from the class [instance-var-assign]
+ ERROR run_project_tests.py:578:5-34: Cannot set instance variable `class_impl` from the class [instance-var-assign]
+ ERROR run_project_tests.py:579:5-38: Cannot set instance variable `class_cli_impl` from the class [instance-var-assign]
+ ERROR run_project_tests.py:580:5-43: Cannot set instance variable `pkg_bin_per_machine` from the class [instance-var-assign]
+ ERROR unittests/baseplatformtests.py:125:13-26: Cannot set instance variable `_mktmpdir` from the class [instance-var-assign]
+ ERROR unittests/baseplatformtests.py:127:13-26: Cannot set instance variable `_mktmpdir` from the class [instance-var-assign]

sphinx (https://github.com/sphinx-doc/sphinx)
+ ERROR sphinx/transforms/post_transforms/images.py:222:13-37: Cannot set instance variable `available` from the class [instance-var-assign]

werkzeug (https://github.com/pallets/werkzeug)
+ ERROR tests/test_datastructures.py:30:17-31: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR tests/test_datastructures.py:32:17-31: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR src/werkzeug/exceptions.py:50:21-29: Cannot set instance variable `name` from the class [instance-var-assign]
+ ERROR src/werkzeug/serving.py:729:13-37: Cannot set instance variable `protocol_version` from the class [instance-var-assign]

dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ERROR ddtrace/aiguard/integrations/_anthropic_errors.py:75:1-38: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR ddtrace/aiguard/integrations/_openai_errors.py:75:1-35: Cannot set instance variable `__module__` from the class [instance-var-assign]
+ ERROR ddtrace/appsec/_api_security/api_manager.py:79:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/appsec/_api_security/api_manager.py:93:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/appsec/_asm_request_context.py:179:5-31: Cannot set instance variable `counter` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_debugger.py:236:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_debugger.py:280:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_exception/replay.py:423:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_exception/replay.py:438:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_origin/span.py:215:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_origin/span.py:218:22-34: Cannot set instance variable `_pending` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_origin/span.py:241:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_sampling.py:162:9-20: Cannot set instance variable `_tracer` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_sampling.py:165:9-21: Cannot set instance variable `_limiter` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_sampling.py:172:9-20: Cannot set instance variable `_tracer` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_sampling.py:172:23-35: Cannot set instance variable `_limiter` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_uploader.py:274:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/debugging/_uploader.py:286:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/errortracking/_handled_exceptions/collector.py:33:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/errortracking/_handled_exceptions/collector.py:47:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/ci_visibility/recorder.py:639:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/ci_visibility/recorder.py:680:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/ci_visibility/recorder.py:690:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/ci_visibility/recorder.py:708:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/core/subscriber.py:71:9-28: Cannot set instance variable `_event_handlers` from the class [instance-var-assign]
+ ERROR ddtrace/internal/core/subscriber.py:158:9-30: Cannot set instance variable `_started_handlers` from the class [instance-var-assign]
+ ERROR ddtrace/internal/core/subscriber.py:165:9-28: Cannot set instance variable `_ended_handlers` from the class [instance-var-assign]
+ ERROR ddtrace/internal/module.py:464:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/module.py:488:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/module.py:510:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/module.py:531:9-22: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/runtime/runtime_metrics.py:130:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/runtime/runtime_metrics.py:146:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/threads.py:234:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/internal/threads.py:245:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:972:9-31: Cannot set instance variable `_prompt_manager` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:1095:9-21: Cannot set instance variable `_app_key` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:1100:17-36: Cannot set instance variable `_prompt_manager` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:1101:9-26: Cannot set instance variable `_project_name` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:1102:9-32: Cannot set instance variable `_git_repository_url` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:1102:34-53: Cannot set instance variable `_git_commit_sha` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:1159:13-26: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:2029:9-28: Cannot set instance variable `_prompt_manager` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:2203:17-36: Cannot set instance variable `_prompt_manager` from the class [instance-var-assign]
+ ERROR ddtrace/llmobs/_llmobs.py:3923:1-17: Cannot set instance variable `_instance` from the class [instance-var-assign]
+ ERROR ddtrace/profiling/__init__.py:46:5-39: Cannot set instance variable `_import_error` from the class [instance-var-assign]
+ ERROR ddtrace/profiling/profiler.py:78:13-38: Cannot set instance variable `_active_instance` from the class [instance-var-assign]
+ ERROR ddtrace/profiling/profiler.py:100:21-46: Cannot set instance variable `_active_instance` from the class [instance-var-assign]
+ ERROR ddtrace/profiling/profiler.py:118:9-38: Cannot set instance variable `_exit_signal_handler` from the class [instance-var-assign]
+ ERROR ddtrace/profiling/profiler.py:157:17-42: Cannot set instance variable `_active_instance` from the class [instance-var-assign]
+ ERROR ddtrace/profiling/profiler.py:172:13-38: Cannot set instance variable `_active_instance` from the class [instance-var-assign]
+ ERROR ddtrace/testing/internal/telemetry.py:65:9-31: Cannot set instance variable `_instance` from the class [instance-var-assign]

core (https://github.com/home-assistant/core)
+ ERROR homeassistant/components/camera/img_util.py:91:13-42: Cannot set instance variable `__instance` from the class [instance-var-assign]
+ ERROR homeassistant/components/camera/img_util.py:97:13-42: Cannot set instance variable `__instance` from the class [instance-var-assign]
+ ERROR homeassistant/components/recorder/core.py:1484:13-32: Cannot set instance variable `pool_lock` from the class [instance-var-assign]
+ ERROR homeassistant/components/rflink/entity.py:239:9-22: Cannot set instance variable `_protocol` from the class [instance-var-assign]
+ ERROR homeassistant/components/rflink/entity.py:241:13-26: Cannot set instance variable `_wait_ack` from the class [instance-var-assign]
+ ERROR homeassistant/helpers/entity.py:643:9-45: Cannot set instance variable `__combined_unrecorded_attributes` from the class [instance-var-assign]

jinja (https://github.com/pallets/jinja)
+ ERROR src/jinja2/environment.py:1666:1-27: Cannot set instance variable `template_class` from the class [instance-var-assign]
+ ERROR src/jinja2/nativetypes.py:130:1-33: Cannot set instance variable `template_class` from the class [instance-var-assign]

spack (https://github.com/spack/spack)
+ ERROR lib/spack/spack/directives.py:1053:9-24: Cannot set instance variable `maintainers` from the class [instance-var-assign]
+ ERROR lib/spack/spack/directives_meta.py:66:9-44: Cannot set instance variable `_patches_dependencies` from the class [instance-var-assign]
+ ERROR lib/spack/spack/directives_meta.py:282:17-52: Cannot set instance variable `_patches_dependencies` from the class [instance-var-assign]
+ ERROR lib/spack/spack/tengine.py:36:9-36: Cannot set instance variable `_new_context_properties` from the class [instance-var-assign]

poetry (https://github.com/python-poetry/poetry)
+ ERROR src/poetry/puzzle/provider.py:109:13-30: Cannot set instance variable `CONTEXT` from the class [instance-var-assign]

numpy-stl (https://github.com/WoLpH/numpy-stl)
+ ERROR stl/base.py:152:5-18: Cannot set instance variable `logger` from the class [instance-var-assign]

django-test-migrations (https://github.com/wemake-services/django-test-migrations)
+ ERROR django_test_migrations/contrib/unittest_case.py:63:9-35: Cannot set instance variable `_pre_migrate_receivers` from the class [instance-var-assign]
+ ERROR django_test_migrations/contrib/unittest_case.py:67:9-36: Cannot set instance variable `_post_migrate_receivers` from the class [instance-var-assign]

scrapy (https://github.com/scrapy/scrapy)
+ ERROR tests/test_feedexport_async.py:50:9-26: Cannot set instance variable `calls` from the class [instance-var-assign]
+ ERROR tests/test_feedexport_lifecycle.py:37:9-28: Cannot set instance variable `update_listener` from the class [instance-var-assign]
+ ERROR tests/test_feedexport_postprocess.py:539:13-30: Cannot set instance variable `open_file` from the class [instance-var-assign]
+ ERROR tests/test_feedexport_postprocess.py:543:13-31: Cannot set instance variable `store_file` from the class [instance-var-assign]
+ ERROR tests/test_feedexport_postprocess.py:567:13-30: Cannot set instance variable `open_file` from the class [instance-var-assign]
+ ERROR tests/test_feedexport_postprocess.py:571:13-31: Cannot set instance variable `store_file` from the class [instance-var-assign]
+ ERROR tests/test_feedexport_postprocess.py:572:13-36: Cannot set instance variable `file_was_closed` from the class [instance-var-assign]
+ ERROR tests/utils/bases/spider.py:78:9-42: Cannot set instance variable `custom_settings` from the class [instance-var-assign]

porcupine (https://github.com/Akuli/porcupine)
+ ERROR porcupine/utils.py:143:13-26: Cannot set instance variable `tipwindow` from the class [instance-var-assign]
+ ERROR porcupine/utils.py:165:25-45: Cannot set instance variable `tipwindow` from the class [instance-var-assign]

discord.py (https://github.com/Rapptz/discord.py)
+ ERROR discord/app_commands/commands.py:1533:13-52: Cannot set instance variable `__discord_app_commands_group_name__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1535:13-52: Cannot set instance variable `__discord_app_commands_group_name__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1537:13-52: Cannot set instance variable `__discord_app_commands_group_name__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1538:13-59: Cannot set instance variable `__discord_app_commands_group_locale_name__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1542:17-63: Cannot set instance variable `__discord_app_commands_group_description__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1544:17-63: Cannot set instance variable `__discord_app_commands_group_description__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1546:13-59: Cannot set instance variable `__discord_app_commands_group_description__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1548:13-59: Cannot set instance variable `__discord_app_commands_group_description__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1549:13-66: Cannot set instance variable `__discord_app_commands_group_locale_description__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1552:13-52: Cannot set instance variable `__discord_app_commands_guild_only__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1555:13-61: Cannot set instance variable `__discord_app_commands_default_permissions__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1558:13-52: Cannot set instance variable `__discord_app_commands_has_module__` from the class [instance-var-assign]
+ ERROR discord/app_commands/commands.py:1559:9-48: Cannot set instance variable `__discord_app_commands_group_nsfw__` from the class [instance-var-assign]
+ ERROR discord/client.py:340:13-34: Cannot set instance variable `warn_nacl` from the class [instance-var-assign]
+ ERROR discord/client.py:344:13-34: Cannot set instance variable `warn_dave` from the class [instance-var-assign]
+ ERROR discord/ui/modal.py:113:13-22: Cannot set instance variable `title` from the class [instance-var-assign]

@rchen152 rchen152 added size/m and removed size/xl labels Nov 2, 2026

@stroxler stroxler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync

meta-codesync Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in 3783f5c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

new rule - assignment to instance variable from class

3 participants