We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e87c0d2 commit ecb0d94Copy full SHA for ecb0d94
1 file changed
Src/IronPython/Modules/_ast.cs
@@ -548,9 +548,9 @@ public ArgType(string arg, object annotation) : this() {
548
this.annotation = annotation;
549
}
550
551
- internal ArgType(Parameter parameter) {
+ internal ArgType(Parameter parameter) : this() {
552
arg = parameter.Name;
553
- annotation = Convert(parameter.Annotation);
+ annotation = parameter.Annotation == null ? null : Convert(parameter.Annotation);
554
555
556
public string arg { get; set; }
0 commit comments