Skip to content

Commit

Permalink
pip prod(deps): bump pyright from 1.1.345 to 1.1.384 (#3278)
Browse files Browse the repository at this point in the history
Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from
1.1.345 to 1.1.384.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/RobertCraigie/pyright-python/releases">pyright's
releases</a>.</em></p>
<blockquote>
<h2>v1.1.384</h2>
<p>No release notes provided.</p>
<h2>v1.1.383</h2>
<p>No release notes provided.</p>
<h2>v1.1.382.post1</h2>
<p>No release notes provided.</p>
<h2>v1.1.382.post0</h2>
<p>This release fixes a regression with <code>nodeenv</code> support in
the <code>v1.1.382</code> release</p>
<h2>v1.1.382</h2>
<p>No release notes provided.</p>
<h2>v1.1.381</h2>
<p>No release notes provided.</p>
<h2>v1.1.380</h2>
<p>No release notes provided.</p>
<h2>v1.1.379</h2>
<p>No release notes provided.</p>
<h2>v1.1.378</h2>
<p>No release notes provided.</p>
<h2>v1.1.377</h2>
<p>No release notes provided.</p>
<h2>v1.1.376</h2>
<p>No release notes provided.</p>
<h2>v1.1.375</h2>
<p>No release notes provided.</p>
<h2>v1.1.374</h2>
<p>No release notes provided.</p>
<h2>v1.1.373</h2>
<p>No release notes provided.</p>
<h2>v1.1.372</h2>
<p>No release notes provided.</p>
<h2>v1.1.371</h2>
<p>No release notes provided.</p>
<h2>v1.1.370</h2>
<p>No release notes provided.</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/5d9f60e04975ab1935dda05cc4ec0b30f05e1edb"><code>5d9f60e</code></a>
[pyright updated to 1.1.384] Update Version (<a
href="https://redirect.github.com/RobertCraigie/pyright-python/issues/313">#313</a>)</li>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/cd5d458e03deea2b1ddacead53cda25930a97d37"><code>cd5d458</code></a>
Pyright NPM Package update to 1.1.383 (<a
href="https://redirect.github.com/RobertCraigie/pyright-python/issues/312">#312</a>)</li>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/74d008809f97db1400a934b60c691a31f0cb6af3"><code>74d0088</code></a>
chore: release v1.1.382.post1 (<a
href="https://redirect.github.com/RobertCraigie/pyright-python/issues/310">#310</a>)</li>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/1ce7b237f3288d533e36c4564569e2b4b9cba447"><code>1ce7b23</code></a>
fix: avoid warning for .post versions (<a
href="https://redirect.github.com/RobertCraigie/pyright-python/issues/309">#309</a>)</li>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/c61cac83b57a8b52280ad2493f6c5d633d8be8ef"><code>c61cac8</code></a>
chore: release v1.1.382.post0 (<a
href="https://redirect.github.com/RobertCraigie/pyright-python/issues/307">#307</a>)</li>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/f8e738397b237b3caa58d174fb94e2a4c887bd38"><code>f8e7383</code></a>
CI: correct setup for nodeenv testing (<a
href="https://redirect.github.com/RobertCraigie/pyright-python/issues/306">#306</a>)</li>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/276e381d86df9da5a240f966107f485e594bc64a"><code>276e381</code></a>
fix: correct nodeenv environment (<a
href="https://redirect.github.com/RobertCraigie/pyright-python/issues/305">#305</a>)</li>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/05e4563350ad8c9b4a0b43a26eaf80953bb0f095"><code>05e4563</code></a>
Pyright NPM Package update to 1.1.382 (<a
href="https://redirect.github.com/RobertCraigie/pyright-python/issues/303">#303</a>)</li>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/0bf95f92cb33995e4429ba1e6fd5712bef976229"><code>0bf95f9</code></a>
refactor(internal): switch to src dir (<a
href="https://redirect.github.com/RobertCraigie/pyright-python/issues/301">#301</a>)</li>
<li><a
href="https://github.com/RobertCraigie/pyright-python/commit/f4beb25cfebde2357e51483d93259ad850c7073e"><code>f4beb25</code></a>
feat(cli): mention nodejs extra if nodeenv install fails</li>
<li>Additional commits viewable in <a
href="https://github.com/RobertCraigie/pyright-python/compare/v1.1.345...v1.1.384">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyright&package-manager=pip&previous-version=1.1.345&new-version=1.1.384)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
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 Oct 10, 2024
1 parent 187eb31 commit d6f787a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dev = [
"nbconvert>=7.7.2,<8.0.0",
"textual-dev==1.6.1",
"pytest-asyncio==0.24.0",
"pyright==1.1.345",
"pyright==1.1.384",
]
gui = ["textual==0.82.0", "pyclip==0.7"]
jax = ["jax==0.4.34", "numpy==2.1.2"]
Expand Down
15 changes: 10 additions & 5 deletions xdsl/dialects/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,17 +1499,22 @@ def __init__(
layout: MemrefLayoutAttr | NoneAttr = NoneAttr(),
memory_space: Attribute = NoneAttr(),
):
if not isinstance(shape, ArrayAttr):
shape = ArrayAttr(
s: ArrayAttr[IntAttr]
if isinstance(shape, ArrayAttr):
# Temporary cast until Pyright is fixed to not infer ArrayAttr[int] as a
# possible value for shape
s = cast(ArrayAttr[IntAttr], shape)
else:
s = ArrayAttr(
[IntAttr(dim) if isinstance(dim, int) else dim for dim in shape]
)
super().__init__(
[
shape,
(
s,
element_type,
layout,
memory_space,
]
)
)

def get_num_dims(self) -> int:
Expand Down
7 changes: 5 additions & 2 deletions xdsl/utils/dialect_stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dataclasses import dataclass, field
from importlib import import_module
from types import ModuleType
from typing import Any
from typing import Any, cast

import xdsl.ir
import xdsl.irdl
Expand Down Expand Up @@ -101,7 +101,10 @@ def _generate_constraint_type(self, constraint: AttrConstraint) -> str:
case AnyAttr():
self._import(xdsl.ir, Attribute)
return "Attribute"
case ParamAttrConstraint(base_type):
case ParamAttrConstraint():
base_type = cast(
ParamAttrConstraint[ParametrizedAttribute], constraint
).base_attr
return base_type.__name__

case _:
Expand Down

0 comments on commit d6f787a

Please sign in to comment.