FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-106368: Argument clinic: Fix minor bug in `state_modulename_name` by AlexWaygood · Pull Request #107387 · python/cpython · GitHub

/ cpython Public

gh-106368: Argument clinic: Fix minor bug in state_modulename_name - #107387

Merged
AlexWaygood merged 2 commits into
python:mainfrom
AlexWaygood:minor-modulename-bugs
Jul 28, 2023
Merged

gh-106368: Argument clinic: Fix minor bug in state_modulename_name#107387
AlexWaygood merged 2 commits into
python:mainfrom
AlexWaygood:minor-modulename-bugs

Conversation

AlexWaygood commented Jul 28, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

cls on this line could be None, which causes the test case I'm adding in this PR to fail with AttributeError: 'NoneType' object has no attribute 'functions' on the main branch.

print("cls. functions", cls.functions)

(This failure path is currently not covered by any test cases, as far as I can tell. The bug is flagged by mypy if you add type annotations to the last remaining untyped function in clinic.py, _module_and_class().)

@erlend-aasland: this is another one that could be backported, since it's technically a bugfix, but to me feels minor enough to not be worth it.

This comment was marked as outdated.

Comment thread Tools/clinic/clinic.py Outdated
AlexWaygood merged commit ecc05e2 into python:main Jul 28, 2023
AlexWaygood deleted the minor-modulename-bugs branch July 28, 2023 18:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL