Skip to content

Commit

Permalink
fix pyright errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarice committed Jan 29, 2025
1 parent 258e8af commit cc59bbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion xdsl/dialects/arith.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import ClassVar, Literal, TypeVar, cast, overload

from xdsl.dialects.builtin import (
I1,
AnyFloat,
AnyFloatConstr,
AnyIntegerAttr,
Expand Down Expand Up @@ -55,7 +56,7 @@
from xdsl.utils.exceptions import VerifyException
from xdsl.utils.str_enum import StrEnum

boolLike = ContainerOf(IntegerType(1))
boolLike = ContainerOf[I1](IntegerType(1))
signlessIntegerLike = ContainerOf(AnyOf([IntegerType, IndexType]))
floatingPointLike = ContainerOf(AnyOf([Float16Type, Float32Type, Float64Type]))

Expand Down
2 changes: 1 addition & 1 deletion xdsl/dialects/varith.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from xdsl.printer import Printer
from xdsl.traits import Pure

integerOrFloatLike: ContainerOf = ContainerOf(
integerOrFloatLike = ContainerOf(
AnyOf(
[
IntegerType,
Expand Down

0 comments on commit cc59bbc

Please sign in to comment.