Skip to content

Commit

Permalink
fix: incorrect typing def
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Apr 12, 2024
1 parent 0ecd3f9 commit 03bae38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/get_contacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

lookyloo = Lookyloo()

details: dict[str, Any]
details: list[dict[str, Any]]
details = lookyloo.get_takedown_information('uuid')
details = lookyloo.get_takedown_information('uuid', False)
emails: list[str] = lookyloo.get_takedown_information('uuid', True)
4 changes: 2 additions & 2 deletions pylookyloo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,10 @@ def get_takedown_information(self, capture_uuid: str, filter_contacts: Literal[T
...

@overload
def get_takedown_information(self, capture_uuid: str, filter_contacts: Literal[False]=False) -> dict[str, Any]:
def get_takedown_information(self, capture_uuid: str, filter_contacts: Literal[False]=False) -> list[dict[str, Any]]:
...

def get_takedown_information(self, capture_uuid: str, filter_contacts: bool=False) -> dict[str, Any] | list[str]:
def get_takedown_information(self, capture_uuid: str, filter_contacts: bool=False) -> list[dict[str, Any]] | list[str]:
'''Returns information required to request a takedown for a capture
:param capture_uuid: UUID of the capture
Expand Down

0 comments on commit 03bae38

Please sign in to comment.