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

[mypyc] Support new syntax for generic functions and classes (PEP 695)#17357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JukkaL merged 16 commits intomasterfrommypyc-type-var-syntax
Jun 11, 2024
Merged
Changes from1 commit
Commits
Show all changes
16 commits
Select commitHold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Fix test failure
  • Loading branch information
@JukkaL
JukkaL committedJun 10, 2024
commit101b1accc9b128de1a74ad6558f73229fa048097
5 changes: 4 additions & 1 deletionmypyc/test-data/irbuild-set.test
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -39,7 +39,10 @@ L0:
return r0

[case testNewSetFromIterable]
from typing import Set, List
from typing import Set, List, TypeVar

T = TypeVar("T")

def f(l: List[T]) -> Set[T]:
return set(l)
[out]
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp