mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
[python] Return unmodifiable maps from GenericSubstitutions
GitOrigin-RevId: 130cfb308dc625017c66ebf86233b38b84e7c8c4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7874bb7b29
commit
ea23931911
@@ -816,7 +816,7 @@ public final class PyTypeChecker {
|
||||
result.typeVarTuples.put(typeVarTuple, (PyVariadicType)typeArgument);
|
||||
}
|
||||
else if (typeParameter instanceof PyParamSpecType) {
|
||||
result.getParamSpecs().put((PyParamSpecType)typeParameter, as(typeArgument, PyParamSpecType.class));
|
||||
result.paramSpecs.put((PyParamSpecType)typeParameter, as(typeArgument, PyParamSpecType.class));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1631,15 +1631,15 @@ public final class PyTypeChecker {
|
||||
}
|
||||
|
||||
public @NotNull Map<PyParamSpecType, PyParamSpecType> getParamSpecs() {
|
||||
return paramSpecs;
|
||||
return Collections.unmodifiableMap(paramSpecs);
|
||||
}
|
||||
|
||||
public @NotNull Map<PyTypeVarType, PyType> getTypeVars() {
|
||||
return typeVars;
|
||||
return Collections.unmodifiableMap(typeVars);
|
||||
}
|
||||
|
||||
public @NotNull Map<PyTypeVarTupleType, PyVariadicType> getTypeVarTuples() {
|
||||
return typeVarTuples;
|
||||
return Collections.unmodifiableMap(typeVarTuples);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user