Skip to content

Commit

Permalink
Fix for most recent release of docsig
Browse files Browse the repository at this point in the history
  • Loading branch information
nonprofittechy committed May 22, 2024
1 parent 108c5a1 commit c107407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docassemble/AssemblyLine/al_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,27 +776,27 @@ def initializeObject(self, *pargs, **kwargs) -> Any:
self[the_key].field_name = the_key
return newobj

def from_list(self, data) -> None:
def from_list(self, data: List[Dict]) -> None:
"""
Populate the dictionary using a list of field data.
Args:
data (list): List of dictionaries containing field data with keys "field_name"
and "overflow_trigger".
and "overflow_trigger".
"""
for entry in data:
new_field = self.initializeObject(entry["field_name"], ALAddendumField)
new_field.field_name = entry["field_name"]
new_field.overflow_trigger = entry["overflow_trigger"]
return

def defined_fields(self, style="overflow_only") -> list:
def defined_fields(self, style: str = "overflow_only") -> list:
"""
Fetch a list of fields that are defined.
Args:
style (str, optional): If set to "overflow_only", only the fields with overflow values
will be returned. Defaults to "overflow_only".
will be returned. Defaults to "overflow_only".
Returns:
list: List of defined fields based on the specified style.
Expand Down

0 comments on commit c107407

Please sign in to comment.