chore: add sqlite3 to conftest#38475
Merged
asukaminato0721 merged 1 commit intoJul 7, 2026
Merged
Conversation
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-07-06 10:32:39.168867680 +0000
+++ /tmp/pyrefly_pr.txt 2026-07-06 10:32:25.938749823 +0000
@@ -1868,38 +1868,36 @@
--> tests/unit_tests/commands/test_data_migration_commands.py:183:12
ERROR `(self: list[Unknown], object: Unknown, /) -> None` is not assignable to attribute `echo` with type `(message: Any | None = None, file: IO[Any] | None = None, nl: bool = True, err: bool = False, color: bool | None = None) -> None` [bad-assignment]
--> tests/unit_tests/commands/test_data_migration_wizard.py:142:33
-ERROR Generator function should return `Generator` [bad-return]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:36:38
ERROR Object of class `FromClause` has no attribute `insert` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:204:13
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:195:13
ERROR Argument `list[SimpleNamespace] | list[Unknown]` is not assignable to parameter `rows` with type `list[object]` in function `FakeExecuteResult.__init__` [bad-argument-type]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:405:38
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:396:38
ERROR Object of class `object` has no attribute `scope` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:429:12
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:420:12
ERROR Argument `list[SimpleNamespace] | list[Unknown]` is not assignable to parameter `rows` with type `list[object]` in function `FakeExecuteResult.__init__` [bad-argument-type]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:461:38
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:452:38
ERROR Object of class `object` has no attribute `callback` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:551:5
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:542:5
ERROR Object of class `object` has no attribute `callback` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:612:5
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:603:5
ERROR Object of class `TextIOBase` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:625:17
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:616:17
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:709:48
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:700:48
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:788:48
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:779:48
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:891:48
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:882:48
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:969:48
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:960:48
ERROR Class `object` has no class attribute `__table__` [missing-attribute]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1024:42
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1015:42
ERROR Class member `SlowLineOutput.write` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1092:13
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1083:13
ERROR Argument `object` is not assignable to parameter `orig` with type `BaseException` in function `sqlalchemy.exc.DBAPIError.__init__` [bad-argument-type]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1394:44
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1385:44
ERROR Argument `SimpleNamespace` is not assignable to parameter `orig` with type `BaseException` in function `sqlalchemy.exc.DBAPIError.__init__` [bad-argument-type]
- --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1418:57
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1409:57
ERROR Expected a callable, got `None` [not-callable]
--> tests/unit_tests/commands/test_reset_encrypt_key_pair.py:18:9
ERROR Object of class `ModuleType` has no attribute `upgrade` [missing-attribute]
@@ -1913,9 +1911,9 @@
ERROR Object of class `FunctionType` has no attribute `assert_called_once_with` [missing-attribute]
--> tests/unit_tests/commands/test_upgrade_db.py:85:5
ERROR Object of class `ModuleType` has no attribute `redis_client` [missing-attribute]
- --> tests/unit_tests/conftest.py:48:13
+ --> tests/unit_tests/conftest.py:52:13
ERROR Object of class `ModuleType` has no attribute `pubsub_redis_client` [missing-attribute]
- --> tests/unit_tests/conftest.py:50:13
+ --> tests/unit_tests/conftest.py:54:13
ERROR No attribute `MethodView` in module `builtins` [missing-attribute]
--> tests/unit_tests/controllers/common/test_fields.py:8:5
ERROR Cannot index into `object` [bad-index]
|
Contributor
Pyrefly Type Coverage
|
agarwalpranav0711
pushed a commit
to agarwalpranav0711/dify
that referenced
this pull request
Jul 7, 2026
lyzno1
pushed a commit
that referenced
this pull request
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
#38159
Screenshots
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint gods