Skip to content

Commit 442a63d

Browse files
authored
Fix Gluon for Python 3.9 (#7114)
Fixing `TypeError` with Python 3.9: ``` language/test_frontend.py:3: in <module> from triton._filecheck import filecheck_test /opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/triton/_filecheck.py:9: in <module> from triton.experimental.gluon._runtime import GluonASTSource /opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/triton/experimental/gluon/__init__.py:1: in <module> from ._runtime import jit /opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/triton/experimental/gluon/_runtime.py:58: in <module> do_not_specialize: Optional[Iterable[int | str]] = None, E TypeError: unsupported operand type(s) for |: 'type' and 'type' ```
1 parent b010cf1 commit 442a63d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/triton/experimental/gluon/_runtime.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import annotations
12
import triton
23
from triton.compiler.code_generator import ast_to_ttir
34
from triton.compiler.compiler import ASTSource

0 commit comments

Comments
 (0)