Skip to content

Commit

Permalink
pip prod(deps): bump pyright from 1.1.392.post0 to 1.1.393 (#3807)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sasha Lopoukhine <[email protected]>
  • Loading branch information
dependabot[bot] and superlopuh authored Jan 31, 2025
1 parent ab5e9bb commit 5934e29
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dev = [
"nbconvert>=7.7.2,<8.0.0",
"textual-dev==1.7.0",
"pytest-asyncio==0.25.3",
"pyright==1.1.392.post0",
"pyright==1.1.393",
]
docs = [
"mkdocs-gen-files>=0.5.0",
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions xdsl/dialects/stencil.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,9 @@ def parse_operand():
assign_args = parser.parse_comma_separated_list(
parser.Delimiter.PAREN, parse_assign_args
)
args: list[Parser.Argument]
operands: list[SSAValue]
args, operands = zip(*assign_args) if assign_args else ([], [])
args: tuple[Parser.Argument, ...]
operands: tuple[SSAValue, ...]
args, operands = zip(*assign_args) if assign_args else ((), ())

if parser.parse_optional_punctuation("->"):
parser.parse_punctuation("(")
Expand Down
2 changes: 1 addition & 1 deletion xdsl/utils/hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def isa(arg: Any, hint: "TypeForm[_T]") -> TypeGuard[_T]:
raise ValueError(f"isa: unsupported type hint '{hint}' {get_origin(hint)}")


def assert_isa(arg: Any, hint: type[_T]) -> TypeGuard[_T]:
def assert_isa(arg: Any, hint: "TypeForm[_T]") -> TypeGuard[_T]:
"""
Check if `arg` is of the type described by `hint`.
For now, only lists, dictionaries, unions,
Expand Down

0 comments on commit 5934e29

Please sign in to comment.