Skip to content

BUG: validator now handles properties#500

Merged
larsoner merged 3 commits intonumpy:mainfrom
sdiebolt:property-patch
Sep 7, 2023
Merged

BUG: validator now handles properties#500
larsoner merged 3 commits intonumpy:mainfrom
sdiebolt:property-patch

Conversation

@sdiebolt
Copy link
Contributor

This PR fixes a bug that prevented Validator.source_file_def_line and Validator.source_file_name to return correct values on @property and @functools.cached_property decorated methods.

Similarly to #496, this issue made validate miss inline ignore comments on properties, since the definition line and source file name of properties would be None.

Closes #495.

@larsoner
Copy link
Collaborator

larsoner commented Sep 7, 2023

Thanks @sdiebolt !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

numpydoc ignore inline comment not recognized when using decorators

4 participants