Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

BUG: validator now handles properties #500

Merged
merged 3 commits into from
Sep 7, 2023
Merged

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 !

# for free to join this conversation on GitHub. Already have an account? # 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