Skip to content

Conversation

@Burhan-Q
Copy link

I bumped into the same issue raised in #159. I found a quick workaround after looking at the code, and updated the Readme with a note for anyone else looking for the same.

Using VS Code (ver 1.99.3) I was able to add an attribute docstring wrapped in () and still get the docstring hint on hover, without pre-commit-hooks flagging the file.

image

@asottile
Copy link
Member

hmmm I don't really want to document that as I don't think your workaround is passing intentionally. it's a quirk of how the hook uses the tokenizer

@asottile asottile closed this Apr 25, 2025
@Burhan-Q Burhan-Q deleted the patch-1 branch April 25, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants