Skip to content

the return type of pybliometrics.scopus.AbstractRetrieval.funding_text() #434

@Zhouzhou-cloud

Description

@Zhouzhou-cloud

pybliometrics version:
pybliometrics | 4.4.2.dev1+g34fbe512d |  

Code to reproduce the bug:

import pybliometrics
pybliometrics.init()
ab = pybliometrics.scopus.AbstractRetrieval("2-s2.0-105002632983", view="FULL", refresh=30)
print(ab.funding_text)

Expected behavior:
it seems return list[dict] | str. but the defination is str | None:

@property
def funding_text(self) -> str | None:
    """The raw text from which Scopus derives funding information."""
    path = ['item', 'xocs:meta', 'xocs:funding-list', 'xocs:funding-text']
    return chained_get(self._json, path)

it maybe beacuse the len(funding_text)==2, when 1 is ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions