AlexWaygood
### Checklist - [X] I am confident this is a bug in CPython, not a bug in a third-party project - [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues), and am confident this bug has not been reported before ### A clear and concise description of the bug ```py foo.foo() ``` ### CPython versions tested on 3.9, 3.11 ### Operating systems and architectures tested on Windows ### Any other relevant information _No response_