mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
[ruff 0.8] [flake8-annotations
] Remove deprecated rules ANN101 and ANN102 (#14384)
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
52f526eb38
commit
1081694140
8 changed files with 47 additions and 114 deletions
|
@ -53,6 +53,7 @@ pub(crate) fn violation(violation: &ItemStruct) -> Result<TokenStream> {
|
|||
#[derive(Debug, PartialEq, Eq)]
|
||||
#violation
|
||||
|
||||
#[allow(deprecated)]
|
||||
#[automatically_derived]
|
||||
impl From<#ident> for ruff_diagnostics::DiagnosticKind {
|
||||
fn from(value: #ident) -> Self {
|
||||
|
@ -71,12 +72,15 @@ pub(crate) fn violation(violation: &ItemStruct) -> Result<TokenStream> {
|
|||
#[derive(Debug, PartialEq, Eq)]
|
||||
#violation
|
||||
|
||||
#[automatically_derived]
|
||||
#[allow(deprecated)]
|
||||
impl #ident {
|
||||
pub fn explanation() -> Option<&'static str> {
|
||||
Some(#explanation)
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(deprecated)]
|
||||
#[automatically_derived]
|
||||
impl From<#ident> for ruff_diagnostics::DiagnosticKind {
|
||||
fn from(value: #ident) -> Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue