Skip to content

Commit

Permalink
BytesInteger and BitsInteger docstrings updated accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
arekbulski committed Mar 21, 2021
1 parent 19fbf8a commit e766db3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions construct/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ class BytesInteger(Construct):
:raises StreamError: requested reading negative amount, could not read enough bytes, requested writing different amount than actual data, or could not write all bytes
:raises IntegerError: lenght is negative, given a negative value when field is not signed, or not an integer
:raises ValueError: number does not fit given width and signed parameters
Can propagate any exception from the lambda, possibly non-ConstructError.
Expand Down Expand Up @@ -1150,6 +1151,7 @@ class BitsInteger(Construct):
:raises StreamError: requested reading negative amount, could not read enough bytes, requested writing different amount than actual data, or could not write all bytes
:raises IntegerError: lenght is negative, given a negative value when field is not signed, or not an integer
:raises ValueError: number does not fit given width and signed parameters
Can propagate any exception from the lambda, possibly non-ConstructError.
Expand Down

0 comments on commit e766db3

Please sign in to comment.