Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
YouTube Security VideosfreeCodeCamp.org: Kotlin Course For Beginners – Full Tutorial(02.10.2026 um 15:05 Uhr)
•
Windows Tipps & SecurityNorton 360 Premium schützt zehn Geräte zwei Jahre lang- für 22,99 Euro(02.10.2026 um 15:09 Uhr)
•••••••••
YouTube Security VideosfreeCodeCamp.org: Kotlin Course For Beginners – Full Tutorial(02.10.2026 um 15:05 Uhr)
•
Windows Tipps & SecurityNorton 360 Premium schützt zehn Geräte zwei Jahre lang- für 22,99 Euro(02.10.2026 um 15:09 Uhr)
•••••••••
Intelligence View
⚡ tsecurity.de Intelligence

trunk/84426d5540ded429a12d8bcea2c1ba5b8b07036f: [Typing] Fix TypeVar misuse in triton_heuristics (#184412)

The _T TypeVar was declared with bound=_KernelType, where _KernelType is a CompiledKernel | StaticallyLaunchedCudaKernel | StaticallyLaunchedXpuKernel union. A…

Beitrag
0
Seite
0
↗ Quelle (github.com)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!

The _T TypeVar was declared with bound=_KernelType, where _KernelType is a CompiledKernel | StaticallyLaunchedCudaKernel | StaticallyLaunchedXpuKernel union.

A union bound doesn't give a TypeVar any real constraining power; the spec-correct form for "exactly one of these three" is a constrained TypeVar (positional arguments).

Switch to that, keep _KernelType as an explicit TypeAlias for the few sites that genuinely want the union (return types, local annotations), and pin the two definitions together with an import-time assert so they can't silently drift.

The three aggregate CompileResult[_KernelType] sites become CompileResult[Any] since a constrained TypeVar can't be parameterized with the union itself.


Fixes #184159

Authored by Claude


Pull Request resolved: #184412

Approved by: https://github.com/jansel, https://github.com/Skylion007

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten trunk/84426d5540ded429a12d8bcea2c1ba5b8b07036f: [Typing] Fix TypeVar misuse in triton_heuristics (#184412)

Thematisch verwandte Begriffe: trunk84426d5540ded429a12d8bcea2c1ba5b8b07036f, Typing, TypeVar, misuse · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag