mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-25 09:28:14 +00:00
[ty] "foo".startswith is not an instance of types.MethodWrapperType (#20317)
This commit is contained in:
parent
fd7eb1e22f
commit
b85c995927
16 changed files with 236 additions and 151 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue