Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.1k
Closed
Description
Bug Report
When using stubgen thetotal attribute ofTypedDict is lost.
To Reproduce
Assuming the following example
fromtypingimportTypedDictclassMyDict(TypedDict,total=False):foo:strbar:int
After running stubgen we get the following output:
fromtypingimportTypedDictclassMyDict(TypedDict):foo:strbar:int
Expected Behavior
The type signature matches the original method andtotal attribute is kept.
Actual Behavior
total attribute is lost
Your Environment
- Python 3.10
- MyPy 1.2.0