fix: when delete custom model remove its cache#38577
Merged
Merged
Conversation
Blackoutta
approved these changes
Jul 9, 2026
Contributor
Pyrefly Type Coverage
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-07-09 01:43:45.415278042 +0000
+++ /tmp/pyrefly_pr.txt 2026-07-09 01:43:36.989252464 +0000
@@ -4303,21 +4303,21 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `db_provider` with type `MCPToolProvider` in function `core.entities.mcp_provider.MCPProviderEntity.from_db_model` [bad-argument-type]
--> tests/unit_tests/core/entities/test_entities_mcp_provider.py:60:46
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:807:12
+ --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:808:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `credential_record` with type `ProviderCredential | ProviderModelCredential` in function `core.entities.provider_configuration.ProviderConfiguration._update_load_balancing_configs_with_credential` [bad-argument-type]
- --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1035:31
+ --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1036:31
ERROR Argument `SimpleNamespace` is not assignable to parameter `credential_record` with type `ProviderCredential | ProviderModelCredential` in function `core.entities.provider_configuration.ProviderConfiguration._update_load_balancing_configs_with_credential` [bad-argument-type]
- --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1054:27
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1170:12
+ --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1055:27
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1171:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1187:12
+ --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1172:12
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1188:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1699:12
+ --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1702:12
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1891:12
+ --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1894:12
ERROR Object of class `ModuleType` has no attribute `MockExtension` [missing-attribute]
--> tests/unit_tests/core/extension/test_extensible.py:62:9
ERROR Cannot index into `OrderedDict[str, ModuleExtension]` [bad-index]
|
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
fix #38576
Screenshots
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint gods