Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
badGarnet committed Oct 15, 2024
1 parent e97dd4a commit df1c82f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unstructured_inference/inference/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def as_list(self):
]

@classmethod
def from_list(cls, regions: list[TextRegion]):
def from_list(cls, regions: list):
"""create TextRegions from a list of TextRegion objects; the objects must have the same
source"""
coords, texts = [], []
Expand Down
2 changes: 1 addition & 1 deletion unstructured_inference/inference/layoutelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def as_list(self):
]

@classmethod
def from_list(cls, elements: list[LayoutElement]):
def from_list(cls, elements: list):
"""create LayoutElements from a list of LayoutElement objects; the objects must have the
same source"""
len_ele = len(elements)
Expand Down

0 comments on commit df1c82f

Please sign in to comment.