Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jul 28, 2023

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.

@AlexWaygood

This comment was marked as outdated.

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