Skip to content

Commit

Permalink
remove quotes around primitive type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
shemogumbe committed Nov 9, 2024
1 parent ab3ecaa commit b33eb7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -809,11 +809,10 @@ private string GetSerializationMethodName(CodeTypeBase propType)
_ => "write_object_value",
};
}

internal string GetTypeFactory(bool isVoid, bool isStream, bool isEnum, string returnType)
{
if (isVoid) return string.Empty;
if (isStream || isEnum) return $" {returnType},";
if (isStream || isEnum) return $" \"{returnType}\",";
if (conventions.IsPrimitiveType(returnType)) return $" {returnType},";
return $" {returnType},";
}
Expand Down

0 comments on commit b33eb7e

Please sign in to comment.