Skip to content

Commit

Permalink
Release 0.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
etingof committed Sep 1, 2019
1 parent 3cae125 commit 771aa24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Revision 0.4.7, released XX-09-2019
Revision 0.4.7, released 01-09-2019
-----------------------------------

- Added `isInconsistent` property to all constructed types. This property
Expand Down
6 changes: 4 additions & 2 deletions pyasn1/type/constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ class Item(Sequence): # Set is similar
OptionalNamedType('id', Integer()),
OptionalNamedType('name', OctetString())
)
withComponents = ConstraintsIntersection(
withComponents = ConstraintsUnion(
WithComponentsConstraint(
('id', ComponentPresentConstraint()),
('name', ComponentAbsentConstraint())
Expand All @@ -471,9 +471,11 @@ class Item(Sequence): # Set is similar
item['id'] = 1
# This will succeed
item.reset()
item['name'] = 'John'
# This will fail on encoding
# This will fail (on encoding)
item.reset()
descr['id'] = 1
descr['name'] = 'John'
"""
Expand Down

0 comments on commit 771aa24

Please sign in to comment.