Skip to content

numpy's and torch's functions are suddenly treated as typos #969

Closed
@Borda

Description

@Borda

Another case is when we see an increase in detected typos, but not sure if they shall be treated as typos...

  - repo: https://github.com/crate-ci/typos
    rev: v1.20.0
    hooks:
      - id: typos

gives following

error: `arange` should be `arrange`
  --> src/torchmetrics/functional/retrieval/precision_recall_curve.py:89:22
   |
89 |         topk = torch.arange(1, max_k + 1, device=preds.device)
   |                      ^^^^^^
   |
error: `arange` should be `arrange`
  --> tests/unittests/image/test_psnr.py:55:44
   |
55 |         batch = np.moveaxis(batch, dim, np.arange(-num_dims, 0))
   |                                            ^^^^^^
   |
error: `arange` should be `arrange`

see full log here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions