跨领域核心规则
12 条横跨多个主题、因此没有更细分类标签的 Python 类型规范核心规则。
-
assignment_compatibilityAssignment type incompatibility (literal mismatches) -
calls_argument_countToo few arguments in a function call -
calls_argument_typeArgument type mismatch at a call site -
dict_key_hashableUnhashable type used as a dict key -
imports_module_attributeAccess to a module attribute the local stub does not declare -
imports_unresolvedUnresolved import -
match_exhaustivenessNon-exhaustivematchstatement -
names_unboundUnbound variable on some code paths -
names_undefinedUndefined variable used in a return statement -
returns_compatibilityReturn type mismatch -
returns_compatibility_2Return type mismatch — inferred return type incompatible with annotation -
version_target_syntaxPEP 695 syntax used below the configured target version