[ty] "foo".startswith is not an instance of types.MethodWrapperType (#20317)

This commit is contained in:
Alex Waygood 2025-09-10 12:14:26 +01:00 committed by GitHub
parent fd7eb1e22f
commit b85c995927
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 236 additions and 151 deletions

View file

@ -326,7 +326,7 @@ impl<'db> Completion<'db> {
| Type::WrapperDescriptor(_)
| Type::DataclassTransformer(_)
| Type::Callable(_) => CompletionKind::Function,
Type::BoundMethod(_) | Type::MethodWrapper(_) => CompletionKind::Method,
Type::BoundMethod(_) | Type::KnownBoundMethod(_) => CompletionKind::Method,
Type::ModuleLiteral(_) => CompletionKind::Module,
Type::ClassLiteral(_) | Type::GenericAlias(_) | Type::SubclassOf(_) => {
CompletionKind::Class