Skip to content

B906: ignore functions whose _fields attribute can't contain ast.AST subnodes#335

Merged
cooperlees merged 1 commit intoPyCQA:mainfrom
jakkdl:B906_false_alarms
Jan 18, 2023
Merged

B906: ignore functions whose _fields attribute can't contain ast.AST subnodes#335
cooperlees merged 1 commit intoPyCQA:mainfrom
jakkdl:B906_false_alarms

Conversation

@jakkdl
Copy link
Copy Markdown
Contributor

@jakkdl jakkdl commented Jan 17, 2023

fixes #330

@jakkdl jakkdl force-pushed the B906_false_alarms branch 2 times, most recently from 15d86d7 to 4206ad7 Compare January 17, 2023 14:45
Copy link
Copy Markdown

@felix-hilden felix-hilden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this so quickly 🙏 looking good apart from one thing below.

Comment thread bugbear.py Outdated
@cooperlees
Copy link
Copy Markdown
Collaborator

Will leave this for another release :)

@jakkdl jakkdl force-pushed the B906_false_alarms branch from 4206ad7 to a0c50e5 Compare January 18, 2023 09:31
@jakkdl jakkdl force-pushed the B906_false_alarms branch from a0c50e5 to dd121c3 Compare January 18, 2023 09:32
@jakkdl
Copy link
Copy Markdown
Contributor Author

jakkdl commented Jan 18, 2023

Rebased on top of main and removed ImportFrom

Copy link
Copy Markdown
Collaborator

@cooperlees cooperlees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sound research, tests show it does what we want and if @felix-hilden is happy I am happy here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

B906: Do not warn for missing visit calls for bottom-level nodes

3 participants