Added missing hasDeclaredType setting in types.

This commit is contained in:
Eric Traut 2020-09-27 22:25:35 -07:00
parent a2ecab1af4
commit 546e14eaef

View File

@ -1002,11 +1002,13 @@ export namespace FunctionType {
category: ParameterCategory.VarArgList,
name: 'args',
type: useUnknown ? UnknownType.create() : AnyType.create(),
hasDeclaredType: !useUnknown,
});
FunctionType.addParameter(functionType, {
category: ParameterCategory.VarArgDictionary,
name: 'kwargs',
type: useUnknown ? UnknownType.create() : AnyType.create(),
hasDeclaredType: !useUnknown,
});
}