Skip to content

Commit

Permalink
refactor: 🗑️ deprecate include_unknown_refs parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnsilva committed Jan 21, 2023
1 parent efe16fe commit 1d74d22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions semanticscholar/SemanticScholar.py
Expand Up @@ -103,6 +103,9 @@ 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)
Expand Down

0 comments on commit 1d74d22

Please sign in to comment.