Skip to content

Commit b6a91d2

Browse files
ghislainpiotguillaume-dequenne
authored andcommitted
SONARPY-2168 FunctionDescriptorToPythonTypeConverter should set STUB type origin
1 parent c33934a commit b6a91d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-frontend/src/main/java/org/sonar/python/semantic/v2/converter/FunctionDescriptorToPythonTypeConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public PythonType convert(ConversionContext ctx, FunctionDescriptor from) {
4646
.map(fqn -> (PythonType) ctx.lazyTypesContext().getOrCreateLazyType(fqn))
4747
.orElse(PythonType.UNKNOWN);
4848

49-
var typeOrigin = TypeOrigin.LOCAL;
49+
var typeOrigin = TypeOrigin.STUB;
5050

5151
var hasVariadicParameter = hasVariadicParameter(parameters);
5252

0 commit comments

Comments
 (0)