This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: TypedDict inspect.signature error
Type: Stage:
Components: Library (Lib) Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: JelleZijlstra, jhwang, serhiy.storchaka, xtreak
Priority: normal Keywords:

Created on 2022-01-20 23:20 by jhwang, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg411056 - (view) Author: (jhwang) Date: 2022-01-20 23:20
I have Python 3.10.1 (Dec, 2021) installed and I see an error when inspecting signature of TypedDict class. This is the same issue reported on Issue43006 (msg385535 - (view)). It was marked as resolved but the error looks persistent. Can someone confirm if this was fixed or any release version with the fix? 


    import inspect

    class T(typing.TypedDict):
        a: int

    print(inspect.signature(T))

was `(*args, **kwargs)` and now raises `ValueError: no signature found for builtin type <class 'dict'>`
msg411097 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2022-01-21 08:31
This could be due to issue40187
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90606
2022-01-21 08:31:24xtreaksetnosy: + xtreak, serhiy.storchaka
messages: + msg411097
2022-01-21 06:40:29JelleZijlstrasetnosy: + JelleZijlstra
2022-01-20 23:20:43jhwangcreate