Skip to content

Numpydoc 1.9.0: AttributeError: 'property' object has no attribute '__module__'. #638

Open
@jeremiedbb

Description

@jeremiedbb

Hi,

It looks like version 1.9.0 introduced a regression in the validation of property objects:
AttributeError: 'property' object has no attribute '__module__'.

It was detected in scikit-learn's CI; https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=77826&view=logs&jobId=dfe99b15-50db-5d7b-b1e9-4105c42527cf&j=dfe99b15-50db-5d7b-b1e9-4105c42527cf&t=ef785ae2-496b-5b02-9f0e-07a6c3ab3081

It can be reproduced by calling:
numpydoc.validate.validate("sklearn.model_selection._classification_threshold.FixedThresholdClassifier.classes_")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions