---
title: "lint/types/add-param-type-iterable-method-call"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/types/add-param-type-iterable-method-call" />

In the [`types`](/docs/rules/sets/types) set. Unsafe fix: it can change behaviour.

## What it does

Applies type hints to closures on Iterable method calls where key/value types are documented

## Configuration

```toml title="pun.toml"
[lint.rules]
"types/add-param-type-iterable-method-call" = "error"
```

To skip it in some files or lines, add an [override](/docs/configuration/pun-toml#lint) or an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`AddClosureParamTypeFromIterableMethodCall`](https://getrector.com/rule-detail/add-closure-param-type-from-iterable-method-call-rector) (rector)

[More lint/types rules](/docs/rules/lint/types) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
