Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListOf cannot be required? #27

Closed
justinbastress opened this issue Apr 11, 2018 · 1 comment
Closed

ListOf cannot be required? #27

justinbastress opened this issue Apr 11, 2018 · 1 comment

Comments

@justinbastress
Copy link
Contributor

This code:

extension = SubRecord({
  "critical": Boolean(),
  "oid": String(),
  "value": Binary(),
}) 
relativeDistinguishedName = SubRecord({
  "type": String(),
  "value": String(),
})
certificate = SubRecord({
  "extensions": ListOf(extension, required=False),
  "raw_subject": ListOf(relativeDistinguishedName, required=True)
})

gives a runtime error TypeError: __init__() got an unexpected keyword argument 'required'.

@zakird
Copy link
Member

zakird commented Apr 30, 2018

This looks like it was fixed in the recent rearrange

@zakird zakird closed this as completed Apr 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants