Skip to content

Commit

Permalink
refactor: 🔥 remove deprecated include_unknown_refs option
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnsilva committed Aug 11, 2023
1 parent 0f55507 commit 4f188c8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions semanticscholar/SemanticScholar.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def timeout(self, timeout: int) -> None:
def get_paper(
self,
paper_id: str,
include_unknown_refs: bool = False,
fields: list = None
) -> Paper:
'''Paper lookup
Expand Down Expand Up @@ -101,11 +100,6 @@ def get_paper(

fields = ','.join(fields)
parameters = f'&fields={fields}'
if include_unknown_refs:
warnings.warn(
'include_unknown_refs parameter is deprecated and will be disabled ' +
'in the future', DeprecationWarning)
parameters += '&include_unknown_references=true'

data = self._requester.get_data(url, parameters, self.auth_header)
paper = Paper(data)
Expand Down

0 comments on commit 4f188c8

Please sign in to comment.