Skip to content

Commit 451f4eb

Browse files
maggiemossmeta-codesync[bot]
authored andcommitted
Upgrade pyrefly version (#169633)
Summary: Upgrades pyrefly to the most recent version and silences related errors `pyrefly check --suppress-errors` Will follow up with a PR that removes unused ignores X-link: pytorch/pytorch#169633 Approved by: https://github.com/oulgen, https://github.com/Skylion007, https://github.com/mlazos Reviewed By: izaitsevfb Differential Revision: D89072717 fbshipit-source-id: 3499a58b840584cb817bbd3c644c461e5de1367b
1 parent 7982332 commit 451f4eb

File tree

1 file changed

+3
-1
lines changed
  • userbenchmark/dynamo/dynamobench/_dynamo

1 file changed

+3
-1
lines changed

userbenchmark/dynamo/dynamobench/_dynamo/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2676,7 +2676,9 @@ def check_numpy_ndarray_args(args: Iterable[Any], kwargs: Mapping[Any, Any]) ->
26762676
dict_values: type[ValuesView[Any]] = type({}.values())
26772677
dict_items: type[ItemsView[Any, Any]] = type({}.items())
26782678
odict_values: type[ValuesView[Any]] = type(OrderedDict().values())
2679+
# pyrefly: ignore [bad-assignment]
26792680
tuple_iterator: type[Iterator[Any]] = type(iter(()))
2681+
# pyrefly: ignore [bad-assignment]
26802682
range_iterator: type[Iterator[Any]] = type(iter(range(0)))
26812683
tuple_iterator_len = tuple_iterator.__length_hint__ # type: ignore[attr-defined]
26822684
object_new = object.__new__
@@ -4658,7 +4660,7 @@ def __init__(
46584660
self.unflatten_fn = unflatten_fn
46594661

46604662
def forward(self, *args: Any) -> Any:
4661-
# pyrefly: ignore [annotation-mismatch]
4663+
# pyrefly: ignore [annotation-mismatch, redefinition]
46624664
args: list[Any] = list(args)
46634665
return self.gm(*self.unflatten_fn(args))
46644666

0 commit comments

Comments
 (0)