Skip to content

Commit

Permalink
Import Self from typing_extensions (backport to 3.10).
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Dec 10, 2024
1 parent cc0f068 commit b2dd271
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iree/turbine/kernel/lang/wave_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
ClassVar,
Iterable,
Optional,
Self,
Type,
TypeAlias,
TypeVar,
Expand All @@ -17,6 +16,7 @@

from sympy import Symbol
from sympy.core.expr import Expr
from typing_extensions import Self

from itertools import chain

Expand Down
2 changes: 1 addition & 1 deletion iree/turbine/kernel/ops/wave_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
Any,
Callable,
Optional,
Self,
Sequence,
Type,
TypeVar,
final,
)
from typing_extensions import Self
import torch.fx as fx

from ..lang.wave_types import Memory, Register, IndexMapping
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lit==18.1.7
mypy==1.8.0
ml_dtypes==0.5.0
setuptools
typing_extensions
wheel

# It is expected that you have installed a PyTorch version/variant specific
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def initialize_options(self):
"torch>=2.3.0",
f"Jinja2{get_version_spec('Jinja2')}",
f"ml_dtypes{get_version_spec('ml_dtypes')}",
f"typing_extensions{get_version_spec('typing_extensions')}",
],
extras_require={
"testing": [
Expand Down

0 comments on commit b2dd271

Please sign in to comment.