Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stubgen does not copy total attribute from TypedDict #15195

Closed
Labels
bugmypy got something wrong
@bramstroker

Description

@bramstroker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp