<!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutorial: https://docs.python.org/3/tutorial/ - posting in the "Users" category on discuss.python.org: https://discuss.python.org/c/users/7 - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list - searching our issue tracker (https://github.com/python/cpython/issues) to see if your problem has already been reported --> # Bug report Starting in Python 3.10.6, the following code raises an exception: ```python from inspect import signature from unittest.mock import AsyncMock mock = AsyncMock() signature(mock) ``` * No exception is raised when `Mock` is used. * The exception does not occur with Python 3.10.5. # Your environment <!-- Include as many relevant details as possible about the environment you experienced the bug in --> - CPython versions tested on: 3.10.4, 3.10.5, 3.10.6 (Only occurs in 3.10.6) - Operating system and architecture: Windows 10, Linux (Official Docker Image) <!-- You can freely edit this text. Remove any lines you believe are unnecessary. --> <!-- gh-linked-prs --> ### Linked PRs * gh-96335 * gh-101646 * gh-101647 * gh-108652 <!-- /gh-linked-prs -->