Skip to content

Commit

Permalink
Update src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet authored Jun 27, 2023
1 parent b2a8da0 commit b7c12ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public override void WriteCodeElement(CodeMethod codeElement, LanguageWriter wri
var requestConfigParam = codeElement.Parameters.OfKind(CodeParameterKind.RequestConfiguration);
var requestParams = new RequestParams(requestBodyParam, requestConfigParam);
if (!codeElement.IsOfKind(CodeMethodKind.Setter, CodeMethodKind.Constructor) &&
parentClass.IsOfKind(CodeClassKind.RequestBuilder)))
parentClass.IsOfKind(CodeClassKind.RequestBuilder))
foreach (var parameter in codeElement.Parameters.Where(static x => !x.Optional).OrderBy(static x => x.Name))
{
var parameterName = parameter.Name.ToSnakeCase();
Expand Down

0 comments on commit b7c12ce

Please sign in to comment.