Repository navigation
fix(binding): treat object.__setattr__/setattr as instance init - #5423
mangeshraut712 wants to merge 5 commits into
Conversation
Frozen dataclasses often initialize fields with object.__setattr__ in __init__. Count those (and setattr with a literal name) the same as self.attr = value for uninitialized-instance-variable. Fixes meta#5326
|
This pull request has been imported. If you are a Meta employee, you can view this in D127975133. (Because this pull request was imported automatically, there will not be any future comments.) |
This comment has been minimized.
This comment has been minimized.
|
Green on CI (incl. evaluate + mypy_primer). Imported via codesync. Available for review when you get to it. |
# Conflicts: # pyrefly/lib/test/uninitialized_instance_variable.rs
This comment has been minimized.
This comment has been minimized.
stroxler
left a comment
There was a problem hiding this comment.
Thanks!
Based on AI review, I think there are a handful of edge cases to look at before we merge:
-
Valid starred arguments produce a new error — [stmt.rs:2320–2328](
)pyrefly/pyrefly/lib/binding/stmt.rs
Lines 2320 to 2328 in 3d07d7a
object.__setattr__(self, "x", *[1])works in Python and checks cleanly before this PR. Afterwards it reportsExpected a type form, got instance of Literal[1]: the binder records the starred expression itself as the field value. Restrict this inference to exactly three ordinary positional arguments with no keywords; leave unpacked calls to normal call checking. -
Shadowed names falsely count as initialization — [stmt.rs:2307–2319](
)pyrefly/pyrefly/lib/binding/stmt.rs
Lines 2307 to 2319 in 3d07d7a
Recognition checks spelling rather than builtin identity. A no-op user-definedsetattrnow suppresses the uninitialized-field error forsetattr(self, "x", 1), even thoughC().xraisesAttributeError. It can also fabricate an inferred field. Require binding-aware builtin recognition for bothsetattrandobject. -
Literal private names incorrectly initialize mangled fields — [stmt.rs:2322–2327](
)pyrefly/pyrefly/lib/binding/stmt.rs
Lines 2322 to 2327 in 3d07d7a
For a declared__x: int,object.__setattr__(self, "__x", 1)now suppresses the uninitialized error. But Python does not mangle strings: this sets"__x", whileself.__xreads"_C__x"and fails. Conservatively skip private-looking literals unless runtime names are explicitly distinguished; don’t mangle the string.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Filtering setattr call arguments before checking special exports prevents unnecessary export queries on external functions during binding. Additionally, restricting setattr-based attribute initialization to instance method receivers prevents erroneously fabricating instance attributes from classmethod setattr calls.
|
@stroxler Pushed 1ebf821 on top of 36af542.
|
|
Diff from mypy_primer, showing the effect of this PR on open source code: ============================================================
SUMMARY
============================================================
Total: +515 new errors, -457 fixed errors
By preset: +1/-17 (default), +1/-17 (strict)
Projects with changes (21):
pip: +6 -7
mongo-python-driver: +8 -72
altair: +56 -49
jax: +0 -12
spark: +5 -6
prefect: +13 -18
setuptools: +6 -7
manticore: +328 -169
asynq: +7 -0
streamlit: +0 -5
pandera: +6 -15
ibis: +11 -11
bokeh: +1 -4
antidote: +0 -4
hydpy: +1 -0
pandas: +3 -9
werkzeug: +17 -9
sphinx: +0 -13
dd-trace-py: +4 -0
core: +2 -0
kornia: +41 -47
============================================================
FULL DIFF DETAILS
------------------------------------------------------------
pip (https://github.com/pypa/pip)
- ERROR src/pip/_vendor/packaging/direct_url.py:159:5-8: Instance attribute `vcs` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/pip/_vendor/packaging/direct_url.py:160:5-14: Instance attribute `commit_id` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/pip/_vendor/packaging/direct_url.py:259:5-8: Instance attribute `url` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/pip/_vendor/packaging/pylock.py:327:5-9: Instance attribute `type` is declared but never initialized [uninitialized-instance-variable]
+ ERROR src/pip/_vendor/packaging/pylock.py:331:21-41: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR src/pip/_vendor/packaging/pylock.py:368:5-9: Instance attribute `path` is declared but never initialized [uninitialized-instance-variable]
+ ERROR src/pip/_vendor/packaging/pylock.py:399:32-52: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR src/pip/_vendor/packaging/pylock.py:441:32-52: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR src/pip/_vendor/packaging/pylock.py:493:32-52: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR src/pip/_vendor/packaging/pylock.py:537:5-9: Instance attribute `name` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/pip/_vendor/packaging/pylock.py:673:5-17: Instance attribute `lock_version` is declared but never initialized [uninitialized-instance-variable]
+ ERROR src/pip/_vendor/packaging/pylock.py:679:22-42: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR src/pip/_vendor/packaging/pylock.py:680:34-54: Unused `# type: ignore` comment [unused-type-ignore]
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ ERROR gridfs/asynchronous/grid_file.py:1166:43-47: The type of this attribute is an explicit `Any` [explicit-any-use]
+ ERROR gridfs/asynchronous/grid_file.py:1167:45-56: The type of this attribute is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1180:64-85: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1180:77-85: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1185:75-96: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1185:88-96: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1191:55-76: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1191:68-76: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1196:36-49: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1196:41-49: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1204:39-44: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1204:68-76: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1207:34-39: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1207:63-71: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1233:5-12: Instance attribute `_buffer` is declared but never initialized [uninitialized-instance-variable]
- ERROR gridfs/asynchronous/grid_file.py:1234:5-12: Instance attribute `_closed` is declared but never initialized [uninitialized-instance-variable]
- ERROR gridfs/asynchronous/grid_file.py:1235:5-19: Instance attribute `_buffered_docs` is declared but never initialized [uninitialized-instance-variable]
- ERROR gridfs/asynchronous/grid_file.py:1236:5-24: Instance attribute `_buffered_docs_size` is declared but never initialized [uninitialized-instance-variable]
- ERROR gridfs/asynchronous/grid_file.py:1241:27-32: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1242:25-30: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1254:18-23: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
+ ERROR gridfs/asynchronous/grid_file.py:1254:32-37: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1258:46-51: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1266:14-19: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
+ ERROR gridfs/asynchronous/grid_file.py:1266:28-33: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1269:38-43: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1278:35-40: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1278:59-72: The type of attribute `_chunk_number` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1290:82-90: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1296:54-59: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1305:9-27: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1305:14-27: The type of attribute `_chunk_number` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1306:9-23: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1306:14-23: The type of attribute `_position` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1319:18-23: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1319:42-56: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1319:47-56: The type of attribute `_position` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1320:18-23: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1322:59-64: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/asynchronous/grid_file.py:1322:79-87: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
+ ERROR gridfs/synchronous/grid_file.py:1158:43-47: The type of this attribute is an explicit `Any` [explicit-any-use]
+ ERROR gridfs/synchronous/grid_file.py:1159:45-56: The type of this attribute is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1170:58-79: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1170:71-79: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1175:63-84: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1175:76-84: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1180:75-96: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1180:88-96: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1184:36-49: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1184:41-49: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1192:39-44: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1192:68-76: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1194:58-63: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1194:87-95: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1219:5-12: Instance attribute `_buffer` is declared but never initialized [uninitialized-instance-variable]
- ERROR gridfs/synchronous/grid_file.py:1220:5-12: Instance attribute `_closed` is declared but never initialized [uninitialized-instance-variable]
- ERROR gridfs/synchronous/grid_file.py:1221:5-19: Instance attribute `_buffered_docs` is declared but never initialized [uninitialized-instance-variable]
- ERROR gridfs/synchronous/grid_file.py:1222:5-24: Instance attribute `_buffered_docs_size` is declared but never initialized [uninitialized-instance-variable]
- ERROR gridfs/synchronous/grid_file.py:1227:27-32: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1228:25-30: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1240:18-23: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
+ ERROR gridfs/synchronous/grid_file.py:1240:32-37: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1244:46-51: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1252:14-19: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
+ ERROR gridfs/synchronous/grid_file.py:1252:28-33: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1255:38-43: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1264:35-40: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1264:59-72: The type of attribute `_chunk_number` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1276:76-84: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1282:54-59: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1291:9-27: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1291:14-27: The type of attribute `_chunk_number` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1292:9-23: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1292:14-23: The type of attribute `_position` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1305:18-23: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1305:42-56: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1305:47-56: The type of attribute `_position` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1306:18-23: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1308:53-58: The type of attribute `_file` is an explicit `Any` [explicit-any-use]
- ERROR gridfs/synchronous/grid_file.py:1308:73-81: The type of attribute `_session` is an explicit `Any` [explicit-any-use]
altair (https://github.com/vega/altair)
- ERROR altair/datasets/_constraints.py:41:5-14: Instance attribute `_requires` is declared but never initialized [uninitialized-instance-variable]
- ERROR altair/datasets/_readimpl.py:104:5-7: Instance attribute `fn` is declared but never initialized [uninitialized-instance-variable]
- ERROR altair/datasets/_readimpl.py:107:5-12: Instance attribute `include` is declared but never initialized [uninitialized-instance-variable]
- ERROR altair/datasets/_readimpl.py:110:5-12: Instance attribute `exclude` is declared but never initialized [uninitialized-instance-variable]
- ERROR altair/utils/schemapi.py:1106:22-25: The type of this argument is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1106:42-47: The type of attribute `_args` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1107:26-27: The type of this argument is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1107:32-33: The type of this argument is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1107:72-77: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/utils/schemapi.py:1106:22-25: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR altair/utils/schemapi.py:1106:31-34: The type of `arg` is an explicit `Any` [explicit-any-use]
+ ERROR altair/utils/schemapi.py:1106:42-47: Protected attribute `_args` cannot be accessed outside of its defining class or a subclass [protected-access]
+ ERROR altair/utils/schemapi.py:1107:16-86: The type of `kwds` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR altair/utils/schemapi.py:1107:26-27: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR altair/utils/schemapi.py:1107:63-64: The type of `v` is an explicit `Any` [explicit-any-use]
+ ERROR altair/utils/schemapi.py:1107:72-77: Protected attribute `_kwds` cannot be accessed outside of its defining class or a subclass [protected-access]
+ ERROR altair/utils/schemapi.py:1109:41-47: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR altair/utils/schemapi.py:1175:41-46: The type of attribute `_args` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1175:55-60: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/utils/schemapi.py:1178:44-59: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR altair/utils/schemapi.py:1183:21-26: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/utils/schemapi.py:1183:16-47: The type of `attr` is an explicit `Any` [explicit-any-use]
+ ERROR altair/utils/schemapi.py:1183:31-35: The type of this argument is unknown [unknown-argument-type]
+ ERROR altair/utils/schemapi.py:1186:16-20: The type of the returned value is an explicit `Any` [explicit-any-use]
- ERROR altair/utils/schemapi.py:1192:25-30: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1193:25-30: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/utils/schemapi.py:1192:12-16: The type of this argument is unknown [unknown-argument-type]
+ ERROR altair/utils/schemapi.py:1193:20-36: The type of the returned value is an explicit `Any` [explicit-any-use]
+ ERROR altair/utils/schemapi.py:1193:31-35: The type of this argument is unknown [unknown-argument-type]
- ERROR altair/utils/schemapi.py:1202:14-19: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/utils/schemapi.py:1202:20-24: The type of this argument is unknown [unknown-argument-type]
+ ERROR altair/utils/schemapi.py:1202:28-31: The type of this argument is unknown [unknown-argument-type]
- ERROR altair/utils/schemapi.py:1205:21-26: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/utils/schemapi.py:1205:16-32: The type of the returned value is an explicit `Any` [explicit-any-use]
+ ERROR altair/utils/schemapi.py:1205:27-31: The type of this argument is unknown [unknown-argument-type]
- ERROR altair/utils/schemapi.py:1208:14-19: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1212:25-30: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1213:52-64: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/utils/schemapi.py:1208:20-24: The type of this argument is unknown [unknown-argument-type]
- ERROR altair/utils/schemapi.py:1218:35-40: The type of attribute `_args` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/utils/schemapi.py:1208:28-31: The type of this argument is unknown [unknown-argument-type]
+ ERROR altair/utils/schemapi.py:1212:12-30: Implicit conversion of `dict[str, Any]` to `bool` is not allowed [implicit-bool]
+ ERROR altair/utils/schemapi.py:1213:40-41: The type of `v` is an explicit `Any` [explicit-any-use]
- ERROR altair/utils/schemapi.py:1260:17-22: The type of attribute `_args` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1260:36-41: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1261:25-30: The type of attribute `_args` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1262:23-28: The type of attribute `_args` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1263:25-30: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/utils/schemapi.py:1260:12-22: Implicit conversion of `tuple[Any, ...]` to `bool` is not allowed [implicit-bool]
+ ERROR altair/utils/schemapi.py:1260:12-41: Implicit conversion of `bool | tuple[Any, ...]` to `bool` is not allowed [implicit-bool]
+ ERROR altair/utils/schemapi.py:1260:31-41: Implicit conversion of `dict[str, Any]` to `bool` is not allowed [implicit-bool]
+ ERROR altair/utils/schemapi.py:1261:20-33: The type of `kwds` is an explicit `Any` [explicit-any-use]
+ ERROR altair/utils/schemapi.py:1262:18-28: Implicit conversion of `tuple[Any, ...]` to `bool` is not allowed [implicit-bool]
+ ERROR altair/utils/schemapi.py:1267:33-34: The type of `v` is an explicit `Any` [explicit-any-use]
- ERROR altair/utils/schemapi.py:1266:58-62: The type of this argument is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1267:38-50: The type of `v` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1267:54-55: The type of this argument is unknown because it comes from an error [unknown-from-error]
- ERROR altair/utils/schemapi.py:1268:16-68: Implicit conversion of `bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR altair/utils/schemapi.py:1268:16-68: Implicit conversion of `bool | Any | None` to `bool` is not allowed [implicit-bool]
- ERROR altair/utils/schemapi.py:1268:17-41: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR altair/utils/schemapi.py:1268:17-41: Implicit conversion of `Any | None` to `bool` is not allowed [implicit-bool]
- ERROR altair/utils/schemapi.py:1426:53-58: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/vegalite/v6/api.py:4090:28-33: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/vegalite/v6/api.py:4092:20-31: Returning Any from function declared to return "str" [no-any-return-explicit]
+ ERROR altair/vegalite/v6/api.py:4933:16-38: The type of `encoding` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/api.py:4934:27-35: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR altair/vegalite/v6/api.py:4938:15-32: The type of `val` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/vegalite/v6/api.py:4940:21-24: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/vegalite/v6/api.py:4938:15-32: The type of `val` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/api.py:4938:24-28: The type of attribute `_get` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/api.py:4940:21-24: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/api.py:4977:20-42: The type of `encoding` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/api.py:4978:35-43: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR altair/vegalite/v6/api.py:5372:39-48: The type of `v` is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/vegalite/v6/api.py:5372:34-35: The type of `v` is an explicit `Any` [explicit-any-use]
- ERROR altair/vegalite/v6/api.py:5457:27-34: The type of `val` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/vegalite/v6/api.py:5459:39-42: The type of this argument is unknown because it comes from an error [unknown-from-error]
- ERROR altair/vegalite/v6/api.py:5464:46-56: The type of `v` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/vegalite/v6/api.py:5465:37-46: The type of this argument is unknown because it comes from an error [unknown-from-error]
- ERROR altair/vegalite/v6/api.py:5475:33-44: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR altair/vegalite/v6/api.py:5457:27-34: The type of `val` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/api.py:5459:39-42: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/api.py:5464:41-42: The type of `v` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/api.py:5465:37-46: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/api.py:5475:33-44: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/schema/channels.py:234:21-54: The type of `condition` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/schema/channels.py:240:40-58: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/schema/channels.py:242:35-41: The type of attribute `update` is an explicit `Any` [explicit-any-use]
- ERROR altair/vegalite/v6/schema/channels.py:239:18-38: `in` is not supported between `Literal['field']` and `UndefinedType` [not-iterable]
- ERROR altair/vegalite/v6/schema/channels.py:239:43-66: `not in` is not supported between `Literal['type']` and `UndefinedType` [not-iterable]
- ERROR altair/vegalite/v6/schema/channels.py:240:40-58: Cannot index into `UndefinedType` [bad-index]
+ ERROR altair/vegalite/v6/schema/channels.py:259:17-46: The type of `datum` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/schema/channels.py:22297:20-45: The type of `encoding` is an explicit `Any` [explicit-any-use]
- ERROR altair/vegalite/v6/schema/channels.py:22299:51-56: The type of attribute `_kwds` is unknown because it comes from an error [unknown-from-error]
- ERROR altair/vegalite/v6/schema/channels.py:22301:9-24: Object of class `UndefinedType` has no attribute `update` [missing-attribute]
- ERROR altair/vegalite/v6/schema/channels.py:22302:48-56: Expected argument after ** to be a mapping, got: UndefinedType | dict[Unknown, Unknown] | Unknown in function `altair.vegalite.v6.schema.core.FacetedEncoding.__init__` [bad-unpacking]
+ ERROR altair/vegalite/v6/schema/channels.py:22299:37-38: The type of `v` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/schema/channels.py:22301:18-24: The type of attribute `update` is an explicit `Any` [explicit-any-use]
+ ERROR altair/vegalite/v6/schema/channels.py:22302:46-56: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR tests/vegalite/v6/test_api.py:1519:17-42: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR tests/vegalite/v6/test_api.py:1519:17-42: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR tests/vegalite/v6/test_api.py:1519:36-40: The type of attribute `keys` is an explicit `Any` [explicit-any-use]
+ ERROR tests/vegalite/v6/test_api.py:1811:20-47: The type of `encoding` is unknown because it comes from an error [unknown-from-error]
- ERROR tests/vegalite/v6/test_api.py:1813:20-33: Object of class `UndefinedType` has no attribute `_get` [missing-attribute]
- ERROR tests/vegalite/v6/test_api.py:1886:16-48: Object of class `UndefinedType` has no attribute `_get` [missing-attribute]
jax (https://github.com/google/jax)
- ERROR jax/_src/core.py:3941:3-8: Instance attribute `shape` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/_src/core.py:3942:3-8: Instance attribute `dtype` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/_src/core.py:3943:3-12: Instance attribute `_sharding` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/_src/core.py:3944:3-7: Instance attribute `_dll` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/_src/core.py:3945:3-12: Instance attribute `weak_type` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/_src/core.py:3946:3-19: Instance attribute `manual_axis_type` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/_src/core.py:3947:3-9: Instance attribute `is_ref` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/_src/core.py:3948:3-16: Instance attribute `_memory_space` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/_src/pallas/mosaic_gpu/interpret/jaxpr_interpret.py:50:3-15: Instance attribute `axis_indices` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/_src/pallas/mosaic_gpu/interpret/jaxpr_interpret.py:52:3-13: Instance attribute `axis_sizes` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/experimental/mosaic/gpu/fragmented_array.py:1149:3-9: Instance attribute `layout` is declared but never initialized [uninitialized-instance-variable]
- ERROR jax/experimental/mosaic/gpu/fragmented_array.py:1150:3-12: Instance attribute `is_signed` is declared but never initialized [uninitialized-instance-variable]
spark (https://github.com/apache/spark)
+ ERROR python/pyspark/pandas/frame.py:643:17-28: Attribute `_psseries` is implicitly defined by assignment in method `_pssers`, which is not a constructor [implicitly-defined-attribute]
- ERROR python/pyspark/pandas/frame.py:654:22-31: Attribute `_psseries` is implicitly defined by assignment in method `_pssers`, which is not a constructor [implicitly-defined-attribute]
- ERROR python/pyspark/pandas/frame.py:724:14-29: Attribute `_internal_frame` is implicitly defined by assignment in method `_update_internal_frame`, which is not a constructor [implicitly-defined-attribute]
- ERROR python/pyspark/pandas/frame.py:724:32-40: The type of this attribute is unknown because it comes from an error [unknown-from-error]
+ ERROR python/pyspark/pandas/frame.py:13015:42-49: Attribute `_data` is implicitly defined by assignment in method `info`, which is not a constructor [implicitly-defined-attribute]
+ ERROR python/pyspark/pandas/frame.py:14150:23-43: Attribute `_repr_pandas_cache` is implicitly defined by assignment in method `_get_or_create_repr_pandas_cache`, which is not a constructor [implicitly-defined-attribute]
- ERROR python/pyspark/pandas/frame.py:14148:69-87: The type of attribute `_repr_pandas_cache` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR python/pyspark/pandas/frame.py:14152:16-42: Returning implicit Any from function declared to return "DataFrame | Series" [no-any-return-implicit]
- ERROR python/pyspark/pandas/frame.py:14152:21-39: The type of attribute `_repr_pandas_cache` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR python/pyspark/pandas/frame.py:14528:49-77: The type of this attribute is unknown because it comes from an error [unknown-from-error]
+ ERROR python/pyspark/pandas/frame.py:14530:49-92: The type of this attribute is unknown because it comes from an error [unknown-from-error]
prefect (https://github.com/PrefectHQ/prefect)
- ERROR src/prefect/server/database/dependencies.py:220:16-26: Object of class `_FuncWrapper` has no attribute `_func` [missing-attribute]
+ ERROR src/prefect/server/database/dependencies.py:215:43-47: The type of this attribute is unknown because it comes from an error [unknown-from-error]
+ ERROR src/prefect/server/database/dependencies.py:220:21-26: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
- ERROR src/prefect/server/database/dependencies.py:265:16-51: The type of `func` is unknown because it comes from an error [unknown-from-error]
+ ERROR src/prefect/server/database/dependencies.py:265:45-50: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
- ERROR src/prefect/server/database/dependencies.py:265:45-50: The type of attribute `_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR src/prefect/server/database/dependencies.py:289:44-72: The type of this argument is unknown [unknown-argument-type]
- ERROR src/prefect/server/database/dependencies.py:289:49-54: The type of attribute `_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR src/prefect/server/database/dependencies.py:289:49-54: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
- ERROR src/prefect/server/database/dependencies.py:289:55-62: The type of attribute `__get__` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR src/prefect/server/database/dependencies.py:292:36-41: The type of attribute `_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR src/prefect/server/database/dependencies.py:292:36-41: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
- ERROR src/prefect/server/database/dependencies.py:292:42-54: The type of attribute `__qualname__` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR src/prefect/server/database/dependencies.py:298:24-34: The type of this argument is unknown [unknown-argument-type]
- ERROR src/prefect/server/database/dependencies.py:298:29-34: The type of attribute `_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR src/prefect/server/database/dependencies.py:298:29-34: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
- ERROR src/prefect/server/database/dependencies.py:302:14-19: The type of attribute `_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR src/prefect/server/database/dependencies.py:302:14-19: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
- ERROR src/prefect/server/database/dependencies.py:306:14-19: The type of attribute `_func` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR src/prefect/server/database/dependencies.py:306:14-19: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
- ERROR src/prefect/server/database/dependencies.py:312:5-11: Instance attribute `_owner` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/prefect/server/database/dependencies.py:320:40-50: Object of class `_DBInjectorMethod` has no attribute `_func` [missing-attribute]
- ERROR src/prefect/server/database/dependencies.py:328:44-54: Object of class `_DBInjectorMethod` has no attribute `_func` [missing-attribute]
- ERROR src/prefect/server/database/dependencies.py:334:24-34: Object of class `_DBInjectorMethod` has no attribute `_func` [missing-attribute]
- ERROR src/prefect/server/database/dependencies.py:338:9-19: Object of class `_DBInjectorMethod` has no attribute `_func` [missing-attribute]
+ ERROR src/prefect/server/database/dependencies.py:320:45-50: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
+ ERROR src/prefect/server/database/dependencies.py:328:49-54: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
+ ERROR src/prefect/server/database/dependencies.py:334:29-34: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
+ ERROR src/prefect/server/database/dependencies.py:338:14-19: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
- ERROR src/prefect/server/database/dependencies.py:342:9-19: Object of class `_DBInjectorMethod` has no attribute `_func` [missing-attribute]
+ ERROR src/prefect/server/database/dependencies.py:342:14-19: The type of attribute `_func` is unknown because it comes from an error [unknown-from-error]
setuptools (https://github.com/pypa/setuptools)
- ERROR setuptools/_vendor/packaging/direct_url.py:159:5-8: Instance attribute `vcs` is declared but never initialized [uninitialized-instance-variable]
- ERROR setuptools/_vendor/packaging/direct_url.py:160:5-14: Instance attribute `commit_id` is declared but never initialized [uninitialized-instance-variable]
- ERROR setuptools/_vendor/packaging/direct_url.py:259:5-8: Instance attribute `url` is declared but never initialized [uninitialized-instance-variable]
- ERROR setuptools/_vendor/packaging/pylock.py:327:5-9: Instance attribute `type` is declared but never initialized [uninitialized-instance-variable]
+ ERROR setuptools/_vendor/packaging/pylock.py:331:21-41: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR setuptools/_vendor/packaging/pylock.py:368:5-9: Instance attribute `path` is declared but never initialized [uninitialized-instance-variable]
+ ERROR setuptools/_vendor/packaging/pylock.py:399:32-52: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR setuptools/_vendor/packaging/pylock.py:441:32-52: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR setuptools/_vendor/packaging/pylock.py:493:32-52: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR setuptools/_vendor/packaging/pylock.py:537:5-9: Instance attribute `name` is declared but never initialized [uninitialized-instance-variable]
- ERROR setuptools/_vendor/packaging/pylock.py:673:5-17: Instance attribute `lock_version` is declared but never initialized [uninitialized-instance-variable]
+ ERROR setuptools/_vendor/packaging/pylock.py:679:22-42: Unused `# type: ignore` comment [unused-type-ignore]
+ ERROR setuptools/_vendor/packaging/pylock.py:680:34-54: Unused `# type: ignore` comment [unused-type-ignore]
manticore (https://github.com/trailofbits/manticore)
+ ERROR manticore/__main__.py:38:27-48: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/__main__.py:38:34-48: The type of attribute `recursionlimit` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/__main__.py:38:34-48: The type of attribute `recursionlimit` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/manticore.py:329:21-32: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/manticore.py:329:28-32: The type of attribute `seed` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/manticore.py:329:28-32: The type of attribute `seed` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/manticore.py:330:9-334:30: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR manticore/core/manticore.py:331:20-31: The type of attribute `mprocessing` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/manticore.py:331:20-31: The type of attribute `mprocessing` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/manticore.py:331:32-38: The type of attribute `single` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/manticore.py:332:20-31: The type of attribute `mprocessing` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/manticore.py:332:20-31: The type of attribute `mprocessing` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/manticore.py:332:32-41: The type of attribute `threading` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/manticore.py:333:20-31: The type of attribute `mprocessing` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/manticore.py:333:20-31: The type of attribute `mprocessing` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/manticore.py:333:32-47: The type of attribute `multiprocessing` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/manticore.py:334:11-29: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/manticore.py:334:18-29: The type of attribute `mprocessing` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/manticore.py:334:18-29: The type of attribute `mprocessing` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/manticore.py:387:24-68: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/manticore.py:387:31-36: The type of attribute `procs` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/manticore.py:387:31-36: The type of attribute `procs` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/manticore.py:1112:23-37: The type of `timeout` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR manticore/core/manticore.py:1112:30-37: The type of attribute `timeout` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/manticore.py:1112:30-37: The type of attribute `timeout` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/manticore.py:1122:33-40: The type of this argument is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/manticore.py:1122:33-40: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:374:44-52: The type of attribute `optimize` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:374:44-52: The type of attribute `optimize` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:416:19-31: The type of attribute `defaultunsat` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:416:19-31: The type of attribute `defaultunsat` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:569:49-56: The type of attribute `timeout` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:569:49-56: The type of attribute `timeout` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:595:49-56: The type of attribute `timeout` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:595:49-56: The type of attribute `timeout` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:618:29-41: The type of attribute `maxsolutions` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:618:29-41: The type of attribute `maxsolutions` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:619:56-68: The type of attribute `maxsolutions` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:619:56-68: The type of attribute `maxsolutions` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:657:49-56: The type of attribute `timeout` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:657:49-56: The type of attribute `timeout` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:789:45-52: The type of attribute `timeout` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:789:45-52: The type of attribute `timeout` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:801:26-32: The type of attribute `z3_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:801:26-32: The type of attribute `z3_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:801:45-52: The type of attribute `timeout` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:801:45-52: The type of attribute `timeout` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:801:77-83: The type of attribute `memory` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:801:77-83: The type of attribute `memory` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:854:56-62: The type of attribute `z3_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:854:56-62: The type of attribute `z3_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:876:26-35: The type of attribute `yices_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:876:26-35: The type of attribute `yices_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:876:55-62: The type of attribute `timeout` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:876:55-62: The type of attribute `timeout` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:900:26-34: The type of attribute `cvc4_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:900:26-34: The type of attribute `cvc4_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:900:53-60: The type of attribute `timeout` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:900:53-60: The type of attribute `timeout` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:918:26-39: The type of attribute `boolector_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:918:26-39: The type of attribute `boolector_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:918:56-63: The type of attribute `timeout` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:918:56-63: The type of attribute `timeout` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1028:25-41: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1028:32-41: The type of attribute `yices_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1028:32-41: The type of attribute `yices_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1029:21-27: The type of attribute `append` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR manticore/core/smtlib/solver.py:1029:27-53: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR manticore/core/smtlib/solver.py:1029:28-52: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1029:35-41: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1029:35-41: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1029:42-47: The type of attribute `yices` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1029:48-52: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1033:25-40: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1033:32-40: The type of attribute `cvc4_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1033:32-40: The type of attribute `cvc4_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1034:21-27: The type of attribute `append` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR manticore/core/smtlib/solver.py:1034:27-52: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR manticore/core/smtlib/solver.py:1034:28-51: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1034:35-41: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1034:35-41: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1034:42-46: The type of attribute `cvc4` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1034:47-51: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1035:25-45: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1035:32-45: The type of attribute `boolector_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1035:32-45: The type of attribute `boolector_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1036:21-27: The type of attribute `append` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR manticore/core/smtlib/solver.py:1036:27-57: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR manticore/core/smtlib/solver.py:1036:28-56: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1036:35-41: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1036:35-41: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1036:42-51: The type of attribute `boolector` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1036:52-56: The type of attribute `name` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1039:61-70: The type of attribute `yices_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1039:61-70: The type of attribute `yices_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1039:81-87: The type of attribute `z3_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1039:81-87: The type of attribute `z3_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1039:98-106: The type of attribute `cvc4_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1039:98-106: The type of attribute `cvc4_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1039:117-130: The type of attribute `boolector_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1039:117-130: The type of attribute `boolector_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1042:68-75: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR manticore/core/smtlib/solver.py:1043:20-27: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR manticore/core/smtlib/solver.py:1050:57-64: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR manticore/core/smtlib/solver.py:1060:44-52: The type of attribute `optimize` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1060:44-52: The type of attribute `optimize` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1064:27-34: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR manticore/core/smtlib/solver.py:1095:19-25: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1095:19-25: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1095:36-42: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1095:36-42: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1095:43-47: The type of attribute `auto` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1097:33-49: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1097:40-49: The type of attribute `yices_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1097:40-49: The type of attribute `yices_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1098:41-47: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1098:41-47: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1098:48-53: The type of attribute `yices` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1099:35-48: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1099:42-48: The type of attribute `z3_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1099:42-48: The type of attribute `z3_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1100:41-47: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1100:41-47: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1100:48-50: The type of attribute `z3` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1101:35-50: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1101:42-50: The type of attribute `cvc4_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1101:42-50: The type of attribute `cvc4_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1102:41-47: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1102:41-47: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1102:48-52: The type of attribute `cvc4` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1103:35-55: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/smtlib/solver.py:1103:42-55: The type of attribute `boolector_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1103:42-55: The type of attribute `boolector_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1104:41-47: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1104:41-47: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1104:48-57: The type of attribute `boolector` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1107:69-78: The type of attribute `yices_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1107:69-78: The type of attribute `yices_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1107:89-95: The type of attribute `z3_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1107:89-95: The type of attribute `z3_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1107:106-114: The type of attribute `cvc4_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1107:106-114: The type of attribute `cvc4_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1107:125-138: The type of attribute `boolector_bin` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1107:125-138: The type of attribute `boolector_bin` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/smtlib/solver.py:1111:33-39: The type of attribute `solver` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/smtlib/solver.py:1111:33-39: The type of attribute `solver` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/smtlib/solver.py:1113:46-52: The type of attribute `choice` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR manticore/core/state.py:311:38-63: The type of attribute `execs_per_intermittent_cb` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/state.py:311:38-63: The type of attribute `execs_per_intermittent_cb` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/worker.py:196:31-40: The type of attribute `fast_fail` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/worker.py:196:31-40: The type of attribute `fast_fail` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/worker.py:342:36-62: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR manticore/core/worker.py:342:44-48: The type of attribute `HOST` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/worker.py:342:44-48: The type of attribute `HOST` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/worker.py:342:57-61: The type of attribute `PORT` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/worker.py:342:57-61: The type of attribute `PORT` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/worker.py:405:32-62: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR manticore/core/worker.py:405:40-44: The type of attribute `HOST` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/worker.py:405:40-44: The type of attribute `HOST` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/core/worker.py:405:53-57: The type of attribute `PORT` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/worker.py:405:53-57: The type of attribute `PORT` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/workspace.py:218:52-72: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/workspace.py:218:66-72: The type of attribute `prefix` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/workspace.py:218:66-72: The type of attribute `prefix` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR manticore/core/workspace.py:218:74-88: The type of this argument is unknown [unknown-argument-type]
- ERROR manticore/core/workspace.py:218:85-88: The type of attribute `dir` is unknown because it comes from an error [unknown-from-error]
+ ERROR manticore/core/workspace.py:218:85-88: The type of attribute `dir` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR manticore/ethereum/cli.py:101:19-31: The type of attribute `skip_reverts` is unknown because it comes from an error [unknown-from-error]
... (truncated 329 lines) ...
asynq (https://github.com/quora/asynq)
+ ERROR asynq/mock_.py:197:46-53: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
+ ERROR asynq/mock_.py:200:16-59: The type of the returned value is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR asynq/mock_.py:200:28-58: The type of this argument is unknown [unknown-argument-type]
+ ERROR asynq/mock_.py:200:33-41: The type of attribute `_mock_fn` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR asynq/mock_.py:223:46-53: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
+ ERROR asynq/mock_.py:227:20-50: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR asynq/mock_.py:227:25-33: The type of attribute `_mock_fn` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
streamlit (https://github.com/streamlit/streamlit)
- ERROR lib/streamlit/elements/bottom.py:38:5-15: Instance attribute `_bottom_dg` is declared but never initialized [uninitialized-instance-variable]
- ERROR lib/streamlit/runtime/state/safe_session_state.py:41:5-11: Instance attribute `_state` is declared but never initialized [uninitialized-instance-variable]
- ERROR lib/streamlit/runtime/state/safe_session_state.py:42:5-10: Instance attribute `_lock` is declared but never initialized [uninitialized-instance-variable]
- ERROR lib/streamlit/runtime/state/safe_session_state.py:43:5-20: Instance attribute `_yield_callback` is declared but never initialized [uninitialized-instance-variable]
- ERROR lib/streamlit/testing/v1/app_test.py:259:5-11: Instance attribute `_state` is declared but never initialized [uninitialized-instance-variable]
pandera (https://github.com/pandera-dev/pandera)
- ERROR pandera/config.py:152:16-34: Returning Any from function declared to return "PanderaConfig" [no-any-return-explicit]
- ERROR pandera/config.py:152:21-28: The type of attribute `_config` is an explicit `Any` [explicit-any-use]
- ERROR pandera/config.py:152:29-32: The type of attribute `get` is an explicit `Any` [explicit-any-use]
- ERROR pandera/config.py:155:16-40: The type of the returned value is an explicit `Any` [explicit-any-use]
- ERROR pandera/config.py:155:21-28: The type of attribute `_config` is an explicit `Any` [explicit-any-use]
- ERROR pandera/config.py:155:29-32: The type of attribute `set` is an explicit `Any` [explicit-any-use]
+ ERROR pandera/config.py:158:28-33: The type of this argument is unknown [unknown-argument-type]
- ERROR pandera/config.py:158:14-21: The type of attribute `_config` is an explicit `Any` [explicit-any-use]
- ERROR pandera/config.py:158:22-27: The type of attribute `reset` is an explicit `Any` [explicit-any-use]
- ERROR pandera/config.py:260:13-48: The type of `token` is an explicit `Any` [explicit-any-use]
- ERROR pandera/config.py:264:31-36: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR pandera/config.py:270:5-54: Result of call expression is of type `Token[PanderaConfig]` and is not used; assign to `_` if this is intentional [unused-call-result]
- ERROR pandera/engines/ibis_engine.py:330:5-9: Instance attribute `type` is declared but never initialized [uninitialized-instance-variable]
- ERROR pandera/engines/ibis_engine.py:436:5-9: Instance attribute `type` is declared but never initialized [uninitialized-instance-variable]
- ERROR pandera/engines/ibis_engine.py:489:5-9: Instance attribute `type` is declared but never initialized [uninitialized-instance-variable]
- ERROR pandera/engines/ibis_engine.py:516:5-9: Instance attribute `type` is declared but never initialized [uninitialized-instance-variable]
- ERROR pandera/engines/polars_engine.py:969:5-15: Instance attribute `categories` is declared but never initialized [uninitialized-instance-variable]
+ ERROR pandera/engines/pyspark_engine.py:477:49-60: The type of this attribute is an explicit `Any` [explicit-any-use]
+ ERROR pandera/engines/pyspark_engine.py:537:45-52: The type of this attribute is an explicit `Any` [explicit-any-use]
+ ERROR pandera/engines/pyspark_engine.py:538:47-56: The type of this attribute is an explicit `Any` [explicit-any-use]
+ ERROR tests/strategies/test_synthesis.py:121:13-37: Result of call expression is of type `Token[PanderaConfig]` and is not used; assign to `_` if this is intentional [unused-call-result]
ibis (https://github.com/ibis-project/ibis)
- ERROR ibis/common/bases.py:233:5-25: Instance attribute `__precomputed_hash__` is declared but never initialized [uninitialized-instance-variable]
- ERROR ibis/common/collections.py:283:5-25: Instance attribute `__precomputed_hash__` is declared but never initialized [uninitialized-instance-variable]
- ERROR ibis/common/grounds.py:221:16-41: Object of class `Concrete` has no attribute `__precomputed_hash__` [missing-attribute]
+ ERROR ibis/common/tests/test_bases.py:66:43-44: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
- ERROR ibis/common/tests/test_bases.py:70:12-17: Object of class `Foo` has no attribute `a` [missing-attribute]
- ERROR ibis/common/tests/test_bases.py:71:12-17: Object of class `Foo` has no attribute `b` [missing-attribute]
+ ERROR ibis/common/tests/test_bases.py:67:43-44: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
+ ERROR ibis/common/tests/test_bases.py:70:16-17: The type of attribute `a` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR ibis/common/tests/test_bases.py:71:16-17: The type of attribute `b` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR ibis/expr/types/core.py:43:5-9: Instance attribute `_arg` is declared but never initialized [uninitialized-instance-variable]
+ ERROR ibis/expr/types/joins.py:218:49-68: This expression's type is partially unknown; it contains an implicit `Any`. Please provide an explicit type annotation. [partially-unknown-type]
+ ERROR ibis/expr/types/joins.py:219:49-76: This expression's type is partially unknown; it contains an implicit `Any`. Please provide an explicit type annotation. [partially-unknown-type]
+ ERROR ibis/expr/types/joins.py:223:12-28: Implicit conversion of `set[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR ibis/expr/types/joins.py:223:17-28: The type of attribute `_collisions` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR ibis/expr/types/joins.py:223:17-28: The type of attribute `_collisions` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/joins.py:224:59-70: The type of attribute `_collisions` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR ibis/expr/types/joins.py:224:59-70: The type of attribute `_collisions` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/joins.py:269:13-40: The type of this argument is unknown [unknown-argument-type]
+ ERROR ibis/expr/types/joins.py:269:13-40: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/expr/types/joins.py:269:29-40: The type of attribute `_equalities` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR ibis/expr/types/joins.py:269:29-40: The type of attribute `_equalities` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR ibis/tests/expr/test_value_exprs.py:1387:12-35: Object of class `Node` has no attribute `__precomputed_hash__` [missing-attribute]
bokeh (https://github.com/bokeh/bokeh)
+ ERROR src/bokeh/core/has_props.py:774:27-46: Attribute `__themed_values__` is implicitly defined by assignment in method `apply_theme`, which is not a constructor [implicitly-defined-attribute]
- ERROR src/bokeh/embed/result.py:121:5-10: Instance attribute `roots` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/bokeh/embed/result.py:122:5-13: Instance attribute `requires` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/bokeh/embed/result.py:123:5-18: Instance attribute `bokeh_version` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/bokeh/embed/result.py:124:5-11: Instance attribute `schema` is declared but never initialized [uninitialized-instance-variable]
antidote (https://github.com/Finistere/antidote)
- ERROR src/antidote/core/_inject.py:62:5-11: Instance attribute `method` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/antidote/core/_scope.py:22:5-9: Instance attribute `name` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/antidote/core/_scope.py:23:5-15: Instance attribute `catalog_id` is declared but never initialized [uninitialized-instance-variable]
- ERROR src/antidote/core/provider.py:147:5-13: Instance attribute `_catalog` is declared but never initialized [uninitialized-instance-variable]
hydpy (https://github.com/hydpy-dev/hydpy)
+ ERROR hydpy/models/arma/arma_control.py:290:27-35: Attribute `th_0_0` is implicitly defined by assignment in method `__call__`, which is not a constructor [implicitly-defined-attribute]
pandas (https://github.com/pandas-dev/pandas)
- ERROR pandas/_config/config.py:424:5-6: Instance attribute `d` is declared but never initialized [uninitialized-instance-variable]
- ERROR pandas/core/generic.py:287:5-9: Instance attribute `_mgr` is declared but never initialized [uninitialized-instance-variable]
- ERROR pandas/core/generic.py:288:5-11: Instance attribute `_attrs` is declared but never initialized [uninitialized-instance-variable]
- ERROR pandas/core/generic.py:444:16-27: Returning implicit Any from function declared to return "Flags" [no-any-return-implicit]
- ERROR pandas/core/generic.py:444:21-27: The type of attribute `_flags` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandas/core/generic.py:6441:33-57: Protected attribute `_allows_duplicate_labels` cannot be accessed outside of its defining class or a subclass [protected-access]
- ERROR pandas/core/generic.py:6441:26-32: The type of attribute `_flags` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR pandas/core/generic.py:6441:33-57: The type of attribute `_allows_duplicate_labels` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandas/core/groupby/ops.py:1481:33-57: Protected attribute `_allows_duplicate_labels` cannot be accessed outside of its defining class or a subclass [protected-access]
- ERROR pandas/core/groupby/ops.py:1481:26-32: The type of attribute `_flags` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
- ERROR pandas/core/groupby/ops.py:1481:33-57: The type of attribute `_allows_duplicate_labels` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR pandas/tests/io/test_pickle.py:711:49-69: Instance-only attribute `_metadata` of class `_DynMetadataSeries` is not visible on the class [missing-attribute]
werkzeug (https://github.com/pallets/werkzeug)
- ERROR tests/test_local.py:525:20-41: The type of the returned value is unknown; it is inferred as an implicit `Any` [unknown-return-type]
+ ERROR tests/test_local.py:525:20-41: The type of the returned value is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/test_local.py:525:25-31: The type of attribute `values` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR tests/test_local.py:525:25-31: The type of attribute `values` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/test_local.py:525:32-35: The type of attribute `get` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR tests/test_local.py:525:32-35: The type of attribute `get` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_local.py:525:35-41: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_local.py:525:36-40: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_local.py:528:13-30: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/test_local.py:528:18-24: The type of attribute `values` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR tests/test_local.py:528:18-24: The type of attribute `values` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_local.py:528:25-29: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_local.py:528:33-38: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_local.py:531:17-34: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/test_local.py:531:22-28: The type of attribute `values` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR tests/test_local.py:531:22-28: The type of attribute `values` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_local.py:531:29-33: The type of this argument is unknown [unknown-argument-type]
- ERROR tests/test_local.py:534:27-45: The type of this argument is unknown [unknown-argument-type]
+ ERROR tests/test_local.py:534:27-45: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/test_local.py:534:32-38: The type of attribute `values` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR tests/test_local.py:534:32-38: The type of attribute `values` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR tests/test_local.py:534:39-43: The type of attribute `keys` is unknown; it is inferred as an implicit `Any` [unknown-attribute-access]
+ ERROR tests/test_local.py:534:39-43: The type of attribute `keys` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR tests/test_local.py:534:43-45: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR src/werkzeug/local.py:465:5-24: Instance attribute `_get_current_object` is declared but never initialized [uninitialized-instance-variable]
+ ERROR src/werkzeug/local.py:535:59-87: Unused `# type: ignore` comment [unused-type-ignore]
sphinx (https://github.com/sphinx-doc/sphinx)
- ERROR sphinx/builders/html/_assets.py:16:5-13: Instance attribute `filename` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/builders/html/_assets.py:17:5-13: Instance attribute `priority` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/builders/html/_assets.py:18:5-15: Instance attribute `attributes` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/builders/html/_assets.py:64:5-13: Instance attribute `filename` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/builders/html/_assets.py:65:5-13: Instance attribute `priority` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/builders/html/_assets.py:66:5-15: Instance attribute `attributes` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/ext/intersphinx/_shared.py:45:5-9: Instance attribute `name` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/ext/intersphinx/_shared.py:46:5-15: Instance attribute `target_uri` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/ext/intersphinx/_shared.py:47:5-14: Instance attribute `locations` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/util/inventory.py:248:5-17: Instance attribute `project_name` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/util/inventory.py:249:5-20: Instance attribute `project_version` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/util/inventory.py:250:5-8: Instance attribute `uri` is declared but never initialized [uninitialized-instance-variable]
- ERROR sphinx/util/inventory.py:251:5-17: Instance attribute `display_name` is declared but never initialized [uninitialized-instance-variable]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ERROR ddtrace/internal/settings/integration.py:48:51-64: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
+ ERROR ddtrace/internal/settings/integration.py:49:54-58: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
+ ERROR ddtrace/internal/settings/integration.py:50:42-54: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
+ ERROR ddtrace/internal/settings/integration.py:66:13-97: This expression is implicitly inferred to be `Any`. Please provide an explicit type annotation. [unknown-attribute-type]
core (https://github.com/home-assistant/core)
+ ERROR homeassistant/components/unifiprotect/sensor.py:86:57-75: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR homeassistant/components/unifiprotect/sensor.py:86:62-75: The type of attribute `get_ufp_value` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
kornia (https://github.com/kornia/kornia)
- ERROR kornia/core/tensor_wrapper.py:70:37-42: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:70:43-47: The type of attribute `ndim` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:70:37-42: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
+ ERROR kornia/core/tensor_wrapper.py:70:37-42: Protected attribute `_data` cannot be accessed outside of its defining class or a subclass [protected-access]
- ERROR kornia/core/tensor_wrapper.py:136:14-19: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:220:25-30: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:136:14-19: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
+ ERROR kornia/core/tensor_wrapper.py:136:14-19: Protected attribute `_data` cannot be accessed outside of its defining class or a subclass [protected-access]
+ ERROR kornia/core/tensor_wrapper.py:220:25-30: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
+ ERROR kornia/core/tensor_wrapper.py:222:43-47: The type of this attribute is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:233:21-26: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:233:21-26: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:244:27-32: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:244:27-32: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:245:31-46: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:245:31-46: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR kornia/core/tensor_wrapper.py:245:36-46: The type of attribute `used_attrs` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:245:36-46: The type of attribute `used_attrs` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR kornia/core/tensor_wrapper.py:246:37-41: The type of `func` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:246:37-41: The type of `func` is unknown; it is inferred as an implicit `Any` [unknown-variable-type]
- ERROR kornia/core/tensor_wrapper.py:246:50-60: The type of attribute `used_calls` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:246:50-60: The type of attribute `used_calls` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR kornia/core/tensor_wrapper.py:246:78-82: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:246:78-82: The type of this argument is unknown [unknown-argument-type]
- ERROR kornia/core/tensor_wrapper.py:257:50-55: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:257:50-55: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:265:14-24: The type of attribute `used_attrs` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:265:14-24: The type of attribute `used_attrs` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR kornia/core/tensor_wrapper.py:265:25-28: The type of attribute `add` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:265:25-28: The type of attribute `add` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR kornia/core/tensor_wrapper.py:265:28-34: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR kornia/core/tensor_wrapper.py:268:28-33: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:268:23-33: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:268:28-33: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:286:18-28: The type of attribute `used_attrs` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:286:18-28: The type of attribute `used_attrs` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR kornia/core/tensor_wrapper.py:286:29-32: The type of attribute `add` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:286:29-32: The type of attribute `add` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR kornia/core/tensor_wrapper.py:287:21-31: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:287:26-31: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:286:32-38: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR kornia/core/tensor_wrapper.py:287:26-31: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:294:14-19: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:294:14-19: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
+ ERROR kornia/core/tensor_wrapper.py:298:20-25: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:298:15-30: The type of `out` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:298:20-25: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:300:57-62: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
+ ERROR kornia/core/tensor_wrapper.py:301:35-38: The type of this argument is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:300:52-67: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:300:57-62: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:300:63-67: The type of attribute `ndim` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:300:77-81: The type of attribute `ndim` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:300:95-100: The type of attribute `shape` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:301:35-38: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:321:19-29: The type of attribute `used_calls` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:321:19-29: The type of attribute `used_calls` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR kornia/core/tensor_wrapper.py:321:30-33: The type of attribute `add` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR kornia/core/tensor_wrapper.py:321:33-39: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR kornia/core/tensor_wrapper.py:321:30-33: The type of attribute `add` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:321:34-38: The type of this argument is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:512:26-31: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
+ ERROR kornia/core/tensor_wrapper.py:516:25-30: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
+ ERROR kornia/core/tensor_wrapper.py:520:27-32: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
+ ERROR kornia/core/tensor_wrapper.py:524:29-34: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
+ ERROR kornia/core/tensor_wrapper.py:528:21-26: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:512:21-31: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:512:26-31: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:516:20-30: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:516:25-30: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:520:22-32: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:520:27-32: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:524:24-34: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:524:29-34: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:528:16-38: Returning Any from function declared to return "int" [no-any-return-explicit]
- ERROR kornia/core/tensor_wrapper.py:528:21-26: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:528:27-36: The type of attribute `__index__` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:548:25-30: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error]
- ERROR kornia/core/tensor_wrapper.py:548:20-30: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:548:25-30: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:574:14-24: The type of attribute `used_calls` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:574:14-24: The type of attribute `used_calls` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR kornia/core/tensor_wrapper.py:574:25-28: The type of attribute `add` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
+ ERROR kornia/core/tensor_wrapper.py:574:28-34: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR kornia/core/tensor_wrapper.py:574:25-28: The type of attribute `add` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:574:29-33: The type of this argument is an explicit `Any` [explicit-any-use]
- ERROR kornia/core/tensor_wrapper.py:575:19-24: The type of attribute `_data` is an explicit `Any` [explicit-any-use]
+ ERROR kornia/core/tensor_wrapper.py:575:19-24: The type of attribute `_data` is unknown because it comes from an error [unknown-from-error] |
Fixes #5326.
Why
Frozen dataclasses often initialize fields with
object.__setattr__(self, "attr", value)in__init__because direct assignment is rejected at runtime. Pyrefly only countedself.attr = value, so those fields were reported as uninitialized.What changed
object.__setattr__(self, "literal", value)andsetattr(self, "literal", value)as instance attribute initialization in the binder.Scope
__setattr__itself.Blast Radius
Affects
uninitialized-instance-variablefor constructors that use these patterns. False negatives need a literal name onselfin a method, matching ordinaryself.x =tracking.Verification
cargo test -p pyrefly --lib test_uninitialized_instance_variable— 11 passed (includes newtest_uninitialized_instance_variable_frozen_dataclass_setattr).