astral-sh/ruff · error

The `{SECTION_CONFIG_PULLTYPES}` directive does not take a v

Error message

The `{SECTION_CONFIG_PULLTYPES}` directive does not take a value.

What it means

Error "The `{SECTION_CONFIG_PULLTYPES}` directive does not take a value." thrown in astral-sh/ruff.

Source

Thrown at crates/mdtest/src/parser.rs:626

                                (directive.trim(), Some(value.trim().to_string()))
                            }
                            None => (html_comment, None),
                        };

                        match directive {
                            SECTION_CONFIG_SNAPSHOT => {
                                anyhow::ensure!(
                                    value.is_none(),
                                    "The `{SECTION_CONFIG_SNAPSHOT}` directive \
                                    does not take a value."
                                );
                                self.process_mdtest_directive(
                                    MdtestDirective::SnapshotDiagnostics,
                                    None,
                                )?;
                            }
                            SECTION_CONFIG_PULLTYPES => {
                                anyhow::ensure!(
                                    value.is_none(),
                                    "The `{SECTION_CONFIG_PULLTYPES}` directive \
                                    does not take a value."
                                );
                                self.process_mdtest_directive(
                                    MdtestDirective::PullTypesSkip,
                                    None,
                                )?;
                            }
                            SECTION_CONFIG_EXPECT_PANIC => {
                                self.process_mdtest_directive(MdtestDirective::ExpectPanic, value)?;
                            }
                            _ => {
                                if !HTML_COMMENT_ALLOWLIST.contains(&html_comment) {
                                    bail!(
                                        "Unknown HTML comment `{html_comment}` -- \
                                        possibly a typo? (Add to `HTML_COMMENT_ALLOWLIST` \
                                        if this is a false positive)"

View on GitHub (pinned to 672bb4edf0)

When it happens

Trigger: Thrown at crates/mdtest/src/parser.rs:626 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of astral-sh/ruff@672bb4edf0 (2026-08-16). Data as JSON: /api/errors/c22dca1e4d499b52. Report an issue: GitHub.