Fix preview link references in 2 rule docs (#14060)

This commit is contained in:
Steve C 2024-11-03 06:45:35 -05:00 committed by GitHub
parent bc7615af0e
commit be485602de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -37,8 +37,6 @@ use crate::checkers::ast::Checker;
///
/// ## References
/// - [Python documentation: Mapping Types](https://docs.python.org/3/library/stdtypes.html#mapping-types-dict)
///
/// [preview]: https://docs.astral.sh/ruff/preview/
#[violation]
pub struct InDictKeys {
operator: String,

View file

@ -33,6 +33,7 @@ use crate::rules::pycodestyle::helpers::is_ambiguous_name;
/// of stubs: a well-written stub should aim to faithfully represent the
/// interface of the equivalent .py file as it exists at runtime, including any
/// ambiguously named variables in the runtime module.
/// [preview]: https://docs.astral.sh/ruff/preview/
#[violation]
pub struct AmbiguousVariableName(pub String);