Skip to content

Commit

Permalink
Corrige erro causado após correção de tipagem de retorno.
Browse files Browse the repository at this point in the history
-Volta ao bc28e58
  • Loading branch information
GabrielCastelo-31 committed Nov 28, 2023
1 parent 54ac2d0 commit ca96147
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/utils/web_scraping.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ def check_end(self, *args, **kwargs) -> bool:
return end_index is None and value_start_check

def get_start_index(self, intervals, last_included, value):
def get_start_index(self, intervals, last_included, value) -> Optional[int]:
for index, interval in enumerate(intervals):
if self.check_start(start_index=index, last_included=last_included, interval=interval, index=index, value=value):
return index + 1

Check warning on line 148 in api/utils/web_scraping.py

View check run for this annotation

Codecov / codecov/patch

api/utils/web_scraping.py#L148

Added line #L148 was not covered by tests
return None

def get_end_index(self, intervals, value):
def get_end_index(self, intervals, value) -> Optional[int]:
for index, interval in enumerate(intervals):
if self.check_end(end_index=index, interval=interval, index=index, value=value):
return index

Check warning on line 154 in api/utils/web_scraping.py

View check run for this annotation

Codecov / codecov/patch

api/utils/web_scraping.py#L154

Added line #L154 was not covered by tests
return len(intervals)
Expand Down

0 comments on commit ca96147

Please sign in to comment.