Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.4.5
->==0.4.8
Release Notes
etingof/pyasn1
v0.4.8
Compare Source
SingleValueConstraint
andPermittedAlphabetConstraint
objects into one for proper modelingFROM ... EXCEPT ...
ASN.1 clause.v0.4.7
Compare Source
isInconsistent
property to all constructed types. This propertyconceptually replaces
verifySizeSpec
method to serve a more generalpurpose e.g. ensuring all required fields are in a good shape. By default
this check invokes subtype constraints verification and is run by codecs
on value de/serialisation.
subtypeSpec
attributes and keyword argument. It is nowrecommended to pass
ValueSizeConstraint
, as well as all other constraints,to
subtypeSpec
.types are verified. Now if
Asn1Type
-based object is assigned, itscompatibility is verified based on having all tags and constraint
objects as the type in field definition. When a bare Python value is
assigned, then field type object is cloned and initialized with the
bare value (constraints verificaton would run at this moment).
WithComponentsConstraint
along with relatedComponentPresentConstraint
andComponentAbsentConstraint
classesto be used with
Sequence
/Set
types representingSET ... WITH COMPONENTS ...
like ASN.1 constructs.v0.4.6
Compare Source
SET OF ANY
construct encoding/decoding support.omitEmptyOptionals
option which is respected bySequence
and
Set
encoders. WhenomitEmptyOptionals
is set toTrue
, emptyinitialized optional components are not encoded. Default is
False
.SequenceOf
/SetOf
objects can now be added at anyposition - the requirement for the new elements to reside at the end
of the existing ones (i.e. s[len(s)] = 123) is removed.
SequenceOf
/SetOf
objects.SequenceOf
/SetOf
types to ensureconsistent behaviour with the rest of ASN.1 types. Before this change,
SequenceOf
/SetOf
instances immediately become value objects behavinglike an empty list. With this change,
SequenceOf
/SetOf
objectsremain schema objects unless a component is added or
.clear()
iscalled.
This change can potentially cause incompatibilities with existing
pyasn1 objects which assume
SequenceOf
/SetOf
instances are valueobjects right upon instantiation.
The behaviour of
Sequence
/Set
types depends on thecomponentType
initializer: if on
componentType
is given, the behaviour is thesame as
SequenceOf
/SetOf
have. IFcomponentType
is given, butneither optional nor defaulted components are present, the created
instance remains schema object, If, however, either optional or
defaulted component isi present, the created instance immediately
becomes a value object.
.reset()
method to all constructed types to turn value objectinto a schema object.
PyAsn1UnicodeDecodeError
/PyAsn1UnicodeDecodeError
exceptionsto help the caller treating unicode errors happening internally
to pyasn1 at the upper layers.
GeneralizedTime
codec.GeneralizedTime
.AnyDecoder
to accept possibleTagMap
asasn1Spec
to make dumping raw value operational
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.