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

Unsupported operand types for + ("list[None]" and "list[str]") #19413

Closed as duplicate
Labels
bugmypy got something wrong
@randolf-scholz

Description

@randolf-scholz

To Reproduce

fromtypingimportIterabledefprod[T](iter1:Iterable[T])->Iterable[tuple[T]]:return ((x,)forxiniter1)x:list[str]= ["a","b","c"]prod([None]+x)# false positive [operator]

https://mypy-play.net/?mypy=master&python=3.12&gist=390f48f0541325d872d9cb419e3a5f20

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