Skip to content

Commit

Permalink
Fixed a rare parse failure involving functions with a particular argu…
Browse files Browse the repository at this point in the history
…ment configuration.
  • Loading branch information
peterebden committed Mar 4, 2019
1 parent 753a854 commit 5fdf7b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version 13.4.8

* Fix worker replacements that are not build labels not to be prefixed incorrectly.
* Honour escape sequences in f-strings correctly.
* Fixed a rare parse failure involving functions with a particular argument configuration.


Version 13.4.7
Expand Down
2 changes: 1 addition & 1 deletion src/parse/asp/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ func (f *pyFunc) validateType(s *scope, i int, expr *Expression) pyObject {
if f.types[i] == nil {
return val
} else if val == None {
if f.constants[i] == nil && f.defaults[i] == nil {
if f.constants[i] == nil && (f.defaults == nil || f.defaults[i] == nil) {
return val
}
return f.defaultArg(s, i, f.args[i])
Expand Down

0 comments on commit 5fdf7b6

Please sign in to comment.