mirror of
https://github.com/microsoft/pyright.git
synced 2024-07-14 11:00:25 +03:00
Fixed bug that results in a false positive reportUntypedFunctionDecorator error under certain circumstances. This addresses #8298.
This commit is contained in:
parent
8a766d59a4
commit
0591abaae8
@ -2596,6 +2596,10 @@ export function containsAnyOrUnknown(type: Type, recurse: boolean): AnyType | Un
|
|||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override visitTypeAlias(type: Type) {
|
||||||
|
// Don't explore type aliases.
|
||||||
|
}
|
||||||
|
|
||||||
override visitUnknown(type: UnknownType) {
|
override visitUnknown(type: UnknownType) {
|
||||||
this.anyOrUnknownType = this.anyOrUnknownType ? preserveUnknown(this.anyOrUnknownType, type) : type;
|
this.anyOrUnknownType = this.anyOrUnknownType ? preserveUnknown(this.anyOrUnknownType, type) : type;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user