Skip to content

Investigate why named arguments in FormatSpec.precision seem to have indices that don't correspond to a span in Context.arg_spans #99266

Description

@PrestonFrom

As noted int #99263, named arguments in FormatSpec.precision seem to have indices that don't correspond to a span in Context.arg_spans. This caused an ICE with the named_arguments_used_positionally lint, which assumed the index in the FxHashSet for named arguments would correspond to the index for arg_spans in context.

Determine if this is a bug or if some sort of translation is necessary and update accordingly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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