Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add a test case fortoo-complex in match case, for discussion#9667

New issue

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

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Pierre-Sassoulas wants to merge1 commit intomain
base:main
Choose a base branch
Loading
frommatch-case-too-complex

Conversation

Pierre-Sassoulas
Copy link
Member

Type of Changes

Type
🐛 Bug fix
📜 Docs

Description

Seeastral-sh/ruff#11421 for initial reasoning behind this. I think we should modify the way we compute match case. But not sure if we should add a new visit method in pylint or add aget_children method for match case in astroid so we ends up not having to modify anything on the pylint side (and would benefit from it elsewhere too ?).

@Pierre-SassoulasPierre-Sassoulas added Discussion 🤔 Needs specification 🔐Accepted as a potential improvement, and needs to specify edge cases, message names, etc. labelsMay 22, 2024
@github-actionsGitHub Actions

This comment has been minimized.

@cdce8p
Copy link
Member

But not sure if we should add a new visit method in pylint or add aget_children method for match case in astroid so we ends up not having to modify anything on the pylint side (and would benefit from it elsewhere too ?).

get_children should already work same asvisitMatchCase. I haven't looked into themccabe extension yet, so not sure I can really help with that at this point.

Pierre-Sassoulas reacted with thumbs up emoji

@cdce8pcdce8p removed their request for reviewJune 8, 2024 08:37
@github-actionsGitHub Actions
Copy link
Contributor

🤖 According to the primer, this change hasno effect on the checked open source code. 🤖🎉

This comment was generated for commitb1ba516

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Discussion 🤔Needs specification 🔐Accepted as a potential improvement, and needs to specify edge cases, message names, etc.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Pierre-Sassoulas@cdce8p

[8]ページ先頭

©2009-2025 Movatter.jp