pub enum RuleName {
Show 158 variants
AttrDefined,
UnionAttr,
NameDefined,
UsedBeforeDef,
CallArg,
ArgType,
CallOverload,
ValidType,
VarAnnotated,
Override,
Return,
EmptyBody,
ReturnValue,
Assignment,
MethodAssign,
TypeVar,
Operator,
Index,
ListItem,
DictItem,
TypedDictItem,
TypedDictUnknownKey,
HasType,
Import,
ImportNotFound,
ImportUntyped,
NoRedef,
FuncReturnsValue,
Abstract,
TypeAbstract,
SafeSuper,
ValidNewtype,
ExitReturn,
NameMatch,
LiteralRequired,
NoOverloadImpl,
UnusedCoroutine,
TopLevelAwait,
AwaitNotAsync,
AssertType,
TruthyFunction,
StrFormat,
StrBytesSafe,
OverloadOverlap,
OverloadCannotMatch,
AnnotationUnchecked,
PropDecorator,
Syntax,
TypedDictReadonlyMutated,
NarrowedTypeNotSubtype,
Misc,
TypeArg,
NoUntypedDef,
RedundantCast,
RedundantSelf,
ComparisonOverlap,
NoUntypedCall,
NoAnyReturn,
NoAnyUnimported,
Unreachable,
Deprecated,
RedundantExpr,
PossiblyUndefined,
TruthyBool,
TruthyIterable,
IgnoreWithoutCode,
UnusedAwaitable,
UnusedIgnore,
ExplicitOverride,
MutableOverride,
UnimportedReveal,
ExplicitAny,
ExhaustiveMatch,
ReportGeneralTypeIssues,
ReportPropertyTypeMismatch,
ReportFunctionMemberAccess,
ReportMissingImports,
ReportMissingModuleSource,
ReportInvalidTypeForm,
ReportMissingTypeStubs,
ReportImportCycles,
ReportUnusedImport,
ReportUnusedClass,
ReportUnusedFunction,
ReportUnusedVariable,
ReportDuplicateImport,
ReportWildcardImportFromLibrary,
ReportAbstractUsage,
ReportArgumentType,
ReportAssertTypeFailure,
ReportAssignmentType,
ReportAttributeAccessIssue,
ReportCallIssue,
ReportInconsistentOverload,
ReportIndexIssue,
ReportInvalidTypeArguments,
ReportInvalidTypeVarUse,
ReportMissingParameterType,
ReportMissingTypeArgument,
ReportOperatorIssue,
ReportOptionalMemberAccess,
ReportOptionalSubscript,
ReportOptionalIterable,
ReportOptionalCall,
ReportOptionalOperand,
ReportOptionalContextManager,
ReportPrivateImportUsage,
ReportPrivateUsage,
ReportRedeclaration,
ReportReturnType,
ReportTypedDictNotRequiredAccess,
ReportUndefinedVariable,
ReportUnknownArgumentType,
ReportUnknownLambdaType,
ReportUnknownMemberType,
ReportUnknownParameterType,
ReportUnknownVariableType,
ReportUnnecessaryCast,
ReportUnnecessaryComparison,
ReportUnnecessaryContains,
ReportUnnecessaryIsInstance,
ReportUnnecessaryTypeIgnoreComment,
ReportUnsupportedDunderAll,
ReportUntypedBaseClass,
ReportUntypedClassDecorator,
ReportUntypedFunctionDecorator,
ReportUntypedNamedTuple,
ReportIncompatibleMethodOverride,
ReportIncompatibleVariableOverride,
ReportInvalidStringEscapeSequence,
ReportMissingCallArgument,
ReportUnboundVariable,
ReportPossiblyUnboundVariable,
ReportImplicitOverride,
ReportInvalidStubStatement,
ReportIncompleteStub,
ReportUnusedCoroutine,
ReportAwaitNotAsync,
ReportMatchNotExhaustive,
ReportShadowedImports,
ReportImplicitStringConcatenation,
ReportDeprecated,
ReportNoOverloadImplementation,
ReportTypeCommentUsage,
ReportConstantRedefinition,
ReportInconsistentConstructor,
ReportOverlappingOverload,
ReportMissingSuperCall,
ReportUninitializedInstanceVariable,
ReportCallInDefaultInitializer,
ReportAssertAlwaysTrue,
ReportSelfClsParameterName,
ReportUnhashable,
ReportUnusedCallResult,
ReportUnusedExcept,
ReportUnusedExpression,
ReportUnreachable,
Custom(String),
}
Expand description
Type checker rule names for MyPy error codes and Pyright diagnostic rules
Variants§
AttrDefined
UnionAttr
NameDefined
UsedBeforeDef
CallArg
ArgType
CallOverload
ValidType
VarAnnotated
Override
Return
EmptyBody
ReturnValue
Assignment
MethodAssign
TypeVar
Operator
Index
ListItem
DictItem
TypedDictItem
TypedDictUnknownKey
HasType
Import
ImportNotFound
ImportUntyped
NoRedef
FuncReturnsValue
Abstract
TypeAbstract
SafeSuper
ValidNewtype
ExitReturn
NameMatch
LiteralRequired
NoOverloadImpl
UnusedCoroutine
TopLevelAwait
AwaitNotAsync
AssertType
TruthyFunction
StrFormat
StrBytesSafe
OverloadOverlap
OverloadCannotMatch
AnnotationUnchecked
PropDecorator
Syntax
TypedDictReadonlyMutated
NarrowedTypeNotSubtype
Misc
TypeArg
NoUntypedDef
RedundantCast
RedundantSelf
ComparisonOverlap
NoUntypedCall
NoAnyReturn
NoAnyUnimported
Unreachable
Deprecated
RedundantExpr
PossiblyUndefined
TruthyBool
TruthyIterable
IgnoreWithoutCode
UnusedAwaitable
UnusedIgnore
ExplicitOverride
MutableOverride
UnimportedReveal
ExplicitAny
ExhaustiveMatch
ReportGeneralTypeIssues
ReportPropertyTypeMismatch
ReportFunctionMemberAccess
ReportMissingImports
ReportMissingModuleSource
ReportInvalidTypeForm
ReportMissingTypeStubs
ReportImportCycles
ReportUnusedImport
ReportUnusedClass
ReportUnusedFunction
ReportUnusedVariable
ReportDuplicateImport
ReportWildcardImportFromLibrary
ReportAbstractUsage
ReportArgumentType
ReportAssertTypeFailure
ReportAssignmentType
ReportAttributeAccessIssue
ReportCallIssue
ReportInconsistentOverload
ReportIndexIssue
ReportInvalidTypeArguments
ReportInvalidTypeVarUse
ReportMissingParameterType
ReportMissingTypeArgument
ReportOperatorIssue
ReportOptionalMemberAccess
ReportOptionalSubscript
ReportOptionalIterable
ReportOptionalCall
ReportOptionalOperand
ReportOptionalContextManager
ReportPrivateImportUsage
ReportPrivateUsage
ReportRedeclaration
ReportReturnType
ReportTypedDictNotRequiredAccess
ReportUndefinedVariable
ReportUnknownArgumentType
ReportUnknownLambdaType
ReportUnknownMemberType
ReportUnknownParameterType
ReportUnknownVariableType
ReportUnnecessaryCast
ReportUnnecessaryComparison
ReportUnnecessaryContains
ReportUnnecessaryIsInstance
ReportUnnecessaryTypeIgnoreComment
ReportUnsupportedDunderAll
ReportUntypedBaseClass
ReportUntypedClassDecorator
ReportUntypedFunctionDecorator
ReportUntypedNamedTuple
ReportIncompatibleMethodOverride
ReportIncompatibleVariableOverride
ReportInvalidStringEscapeSequence
ReportMissingCallArgument
ReportUnboundVariable
ReportPossiblyUnboundVariable
ReportImplicitOverride
ReportInvalidStubStatement
ReportIncompleteStub
ReportUnusedCoroutine
ReportAwaitNotAsync
ReportMatchNotExhaustive
ReportShadowedImports
ReportImplicitStringConcatenation
ReportDeprecated
ReportNoOverloadImplementation
ReportTypeCommentUsage
ReportConstantRedefinition
ReportInconsistentConstructor
ReportOverlappingOverload
ReportMissingSuperCall
ReportUninitializedInstanceVariable
ReportCallInDefaultInitializer
ReportAssertAlwaysTrue
ReportSelfClsParameterName
ReportUnhashable
ReportUnusedCallResult
ReportUnusedExcept
ReportUnusedExpression
ReportUnreachable
Custom(String)
Custom rule name escape hatch for rules not in the enum
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleName
impl<'de> Deserialize<'de> for RuleName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RuleName
impl StructuralPartialEq for RuleName
Auto Trait Implementations§
impl Freeze for RuleName
impl RefUnwindSafe for RuleName
impl Send for RuleName
impl Sync for RuleName
impl Unpin for RuleName
impl UnwindSafe for RuleName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more