Skip to content

Conversation

@P4rk
Copy link
Contributor

@P4rk P4rk commented Oct 16, 2019

Hi @contygm I found an issue while developing against avalra with this sdk.

Rather than having a separate variable that keeps track of the number of lines,
use a property that returns the length of the list of lines. This also allows
us to set line numbers as strings, which is allowed through the Avatax API.

This also fixes a bug, where if functions using the line_num variable are called
before the with_line function a TypeError is raised. This was due to the
line_num variable not being instantiated until after the first time the
with_line function is called.

Rather than having a separate variable that keeps track of the number of lines,
use a property that returns the length of the list of lines. This also allows
us to set line numbers as strings, which is allowed through the Avatax API.

This also fixes a bug, where if functions using the line_num variable are called
before the `with_line` function a TypeError is raised. This was due to the
line_num variable not being instantiated until after the first time the
`with_line` function is called.
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

Successfully merging this pull request may close these issues.

2 participants