3016 matches across 15 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 30 | def is_list_of_setuptools_extension(items: list[Any]) -> TypeGuard[list[Extension]]: |
| LOW | misc/incremental_checker.py | 86 | def ensure_environment_is_ready(mypy_path: str, temp_repo_path: str, mypy_cache_path: str) -> None: |
| LOW | misc/generate_changelog.py | 12 | def find_all_release_branches() -> list[tuple[int, int]]: |
| LOW | misc/generate_changelog.py | 108 | def filter_out_commits_from_old_release_branch( |
| LOW | misc/generate_changelog.py | 126 | def find_changes_between_releases(old_branch: str, new_branch: str) -> list[CommitInfo]: |
| LOW | misc/upload-pypi.py | 65 | def download_all_release_assets(release: dict[str, Any], dst: Path) -> None: |
| LOW | misc/sync-typeshed.py | 90 | def create_or_update_pull_request(*, title: str, body: str, branch_name: str) -> None: |
| LOW | mypyc/build.py | 249 | def generate_c_extension_shim( |
| LOW | mypyc/build.py | 457 | def _patch_setuptools_copy_extensions_to_source() -> None: |
| LOW | mypyc/annotate.py | 275 | def visit_dictionary_comprehension(self, o: DictionaryComprehension, /) -> None: |
| LOW | mypyc/namegen.py | 104 | def make_module_translation_map(names: list[str]) -> dict[str, str]: |
| LOW | mypyc/irbuild/vec.py | 281 | def vec_check_and_adjust_index( |
| LOW | mypyc/irbuild/ll_builder.py | 512 | def coerce_int_to_fixed_width(self, src: Value, target_type: RType, line: int) -> Value: |
| LOW | mypyc/irbuild/ll_builder.py | 607 | def coerce_tagged_to_fixed_width_with_range_check( |
| LOW | mypyc/irbuild/ll_builder.py | 658 | def emit_fixed_width_overflow_error(self, target_type: RType, line: int) -> None: |
| LOW | mypyc/irbuild/ll_builder.py | 670 | def coerce_short_int_to_fixed_width(self, src: Value, target_type: RType, line: int) -> Value: |
| LOW | mypyc/irbuild/ll_builder.py | 697 | def coerce_fixed_width_to_int(self, src: Value, line: int) -> Value: |
| LOW | mypyc/irbuild/ll_builder.py | 1301 | def native_args_to_positional( |
| LOW | mypyc/irbuild/ll_builder.py | 1844 | def translate_instance_contains(self, inst: Value, item: Value, op: str, line: int) -> Value: |
| LOW | mypyc/irbuild/ll_builder.py | 1867 | def _non_specialized_unary_op(self, value: Value, op: str, line: int) -> Value: |
| LOW | mypyc/irbuild/ll_builder.py | 2607 | def inline_fixed_width_divide(self, type: RType, lhs: Value, rhs: Value, line: int) -> Value: |
| LOW | mypyc/irbuild/ll_builder.py | 2741 | def set_immortal_if_free_threaded(self, v: Value, line: int) -> None: |
| LOW | mypyc/irbuild/ll_builder.py | 2811 | def translate_special_method_call( |
| LOW | mypyc/irbuild/ll_builder.py | 2839 | def _translate_special_low_level_method_call( |
| LOW | mypyc/irbuild/ll_builder.py | 2921 | def _translate_fast_optional_eq_cmp( |
| LOW | mypyc/irbuild/util.py | 191 | def get_explicit_native_class(path: str, cdef: ClassDef, errors: Errors) -> bool | None: |
| LOW | mypyc/irbuild/util.py | 222 | def is_implicit_extension_class(cdef: ClassDef) -> tuple[bool, str]: |
| LOW | mypyc/irbuild/mapper.py | 243 | def is_native_module_ref_expr(self, expr: RefExpr) -> bool: |
| LOW | mypyc/irbuild/prebuildvisitor.py | 36 | def _comprehension_has_lambda(node: GeneratorExpr | DictionaryComprehension) -> bool: |
| LOW | mypyc/irbuild/prebuildvisitor.py | 200 | def _visit_comprehension_with_scope(self, o: GeneratorExpr | DictionaryComprehension) -> None: |
| LOW | mypyc/irbuild/prebuildvisitor.py | 243 | def visit_dictionary_comprehension(self, o: DictionaryComprehension) -> None: |
| LOW | mypyc/irbuild/env_class.py | 277 | def setup_func_for_recursive_call( |
| LOW | mypyc/irbuild/format_str_tokenizer.py | 135 | def convert_format_expr_to_str( |
| LOW | mypyc/irbuild/format_str_tokenizer.py | 211 | def convert_format_expr_to_bytes( |
| LOW | mypyc/irbuild/statement.py | 158 | def transform_expression_stmt(builder: IRBuilder, stmt: ExpressionStmt) -> None: |
| LOW | mypyc/irbuild/statement.py | 177 | def check_unsupported_cls_assignment(builder: IRBuilder, stmt: AssignmentStmt) -> None: |
| LOW | mypyc/irbuild/statement.py | 209 | def transform_assignment_stmt(builder: IRBuilder, stmt: AssignmentStmt) -> None: |
| LOW | mypyc/irbuild/statement.py | 285 | def transform_operator_assignment_stmt(builder: IRBuilder, stmt: OperatorAssignmentStmt) -> None: |
| LOW | mypyc/irbuild/statement.py | 310 | def import_globals_id_and_name(module_id: str, as_name: str | None) -> tuple[str, str]: |
| LOW | mypyc/irbuild/statement.py | 371 | def split_import_group_to_python_and_native( |
| LOW | mypyc/irbuild/statement.py | 398 | def transform_imports_without_grouping( |
| LOW | mypyc/irbuild/statement.py | 414 | def transform_non_native_import_group( |
| LOW | mypyc/irbuild/statement.py | 525 | def transform_import_from_buckets( |
| LOW | mypyc/irbuild/statement.py | 754 | def transform_try_except_stmt(builder: IRBuilder, t: TryStmt) -> None: |
| LOW | mypyc/irbuild/statement.py | 842 | def try_finally_resolve_control( |
| LOW | mypyc/irbuild/statement.py | 892 | def transform_try_finally_stmt( |
| LOW | mypyc/irbuild/statement.py | 929 | def transform_try_finally_stmt_async( |
| LOW | mypyc/irbuild/statement.py | 1423 | def transform_yield_from_expr(builder: IRBuilder, o: YieldFromExpr) -> Value: |
| LOW | mypyc/irbuild/statement.py | 1435 | def transform_type_alias_stmt(builder: IRBuilder, s: TypeAliasStmt) -> None: |
| LOW | mypyc/irbuild/constant_fold.py | 80 | def constant_fold_binary_op_extended( |
| LOW | mypyc/irbuild/ast_helpers.py | 56 | def maybe_process_conditional_comparison( |
| LOW | mypyc/irbuild/builder.py | 360 | def load_bytes_from_str_literal(self, value: str, line: int = -1) -> Value: |
| LOW | mypyc/irbuild/builder.py | 465 | def set_immortal_if_free_threaded(self, v: Value, line: int) -> None: |
| LOW | mypyc/irbuild/builder.py | 593 | def maybe_add_implicit_return(self) -> None: |
| LOW | mypyc/irbuild/builder.py | 611 | def disallow_class_assignments(self, lvalues: list[Lvalue], line: int) -> None: |
| LOW | mypyc/irbuild/builder.py | 881 | def process_sequence_assignment( |
| LOW | mypyc/irbuild/builder.py | 911 | def process_iterator_tuple_assignment_helper( |
| LOW | mypyc/irbuild/builder.py | 926 | def process_iterator_tuple_assignment( |
| LOW | mypyc/irbuild/builder.py | 1057 | def get_sequence_type_from_type(self, target_type: Type) -> RType: |
| LOW | mypyc/irbuild/builder.py | 1093 | def get_dict_base_type_from_type(self, target_type: Type) -> list[Instance]: |
| 1140 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | misc/apply-cache-diff.py | 34 | |
| LOW | misc/diff-cache.py | 154 | |
| LOW | misc/gen_blog_post_html.py | 40 | |
| LOW | mypyc/build.py | 619 | |
| LOW | mypyc/build.py | 678 | |
| LOW | mypyc/build.py | 772 | |
| LOW | mypyc/build.py | 862 | |
| LOW | mypyc/subtype.py | 27 | |
| LOW | mypyc/subtype.py | 65 | |
| LOW | mypyc/annotate.py | 182 | |
| LOW | mypyc/annotate.py | 299 | |
| LOW | mypyc/annotate.py | 315 | |
| LOW | mypyc/annotate.py | 359 | |
| LOW | mypyc/build_setup.py | 35 | |
| LOW | mypyc/sametype.py | 57 | |
| LOW | mypyc/irbuild/vec.py | 209 | |
| LOW | mypyc/irbuild/ll_builder.py | 405 | |
| LOW | mypyc/irbuild/ll_builder.py | 896 | |
| LOW | mypyc/irbuild/ll_builder.py | 1301 | |
| LOW | mypyc/irbuild/ll_builder.py | 1566 | |
| LOW | mypyc/irbuild/ll_builder.py | 1950 | |
| LOW | mypyc/irbuild/ll_builder.py | 1990 | |
| LOW | mypyc/irbuild/ll_builder.py | 2131 | |
| LOW | mypyc/irbuild/ll_builder.py | 2303 | |
| LOW | mypyc/irbuild/ll_builder.py | 2401 | |
| LOW | mypyc/irbuild/ll_builder.py | 2539 | |
| LOW | mypyc/irbuild/ll_builder.py | 2657 | |
| LOW | mypyc/irbuild/util.py | 67 | |
| LOW | mypyc/irbuild/util.py | 105 | |
| LOW | mypyc/irbuild/util.py | 133 | |
| LOW | mypyc/irbuild/util.py | 191 | |
| LOW | mypyc/irbuild/mapper.py | 73 | |
| LOW | mypyc/irbuild/prebuildvisitor.py | 148 | |
| LOW | mypyc/irbuild/env_class.py | 236 | |
| LOW | mypyc/irbuild/format_str_tokenizer.py | 48 | |
| LOW | mypyc/irbuild/format_str_tokenizer.py | 135 | |
| LOW | mypyc/irbuild/format_str_tokenizer.py | 211 | |
| LOW | mypyc/irbuild/statement.py | 525 | |
| LOW | mypyc/irbuild/statement.py | 1222 | |
| LOW | mypyc/irbuild/constant_fold.py | 39 | |
| LOW | mypyc/irbuild/builder.py | 1610 | |
| LOW | mypyc/irbuild/builder.py | 684 | |
| LOW | mypyc/irbuild/builder.py | 706 | |
| LOW | mypyc/irbuild/builder.py | 824 | |
| LOW | mypyc/irbuild/builder.py | 1057 | |
| LOW | mypyc/irbuild/builder.py | 1301 | |
| LOW | mypyc/irbuild/classdef.py | 90 | |
| LOW | mypyc/irbuild/classdef.py | 567 | |
| LOW | mypyc/irbuild/classdef.py | 743 | |
| LOW | mypyc/irbuild/classdef.py | 836 | |
| LOW | mypyc/irbuild/specialize.py | 720 | |
| LOW | mypyc/irbuild/specialize.py | 809 | |
| LOW | mypyc/irbuild/specialize.py | 872 | |
| LOW | mypyc/irbuild/specialize.py | 940 | |
| LOW | mypyc/irbuild/specialize.py | 992 | |
| LOW | mypyc/irbuild/specialize.py | 1053 | |
| LOW | mypyc/irbuild/specialize.py | 1073 | |
| LOW | mypyc/irbuild/specialize.py | 1097 | |
| LOW | mypyc/irbuild/specialize.py | 1307 | |
| LOW | mypyc/irbuild/main.py | 58 | |
| 585 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | CHANGELOG.md | 2361 | # Mypy will now issue a warning if it detects this |
| LOW | test-requirements.txt | 1 | # |
| LOW | test-requirements.txt | 21 | # -r test-requirements.in |
| LOW | test-requirements.txt | 41 | # via |
| LOW | misc/find_type.py | 1 | #!/usr/bin/env python3 |
| LOW | misc/docker/run.sh | 1 | #!/bin/bash |
| LOW | mypyc/options.py | 41 | # even when its return type is just `bool`. |
| LOW | mypyc/options.py | 61 | # experimental mode (e.g. use _experimental suffix in librt run test). |
| LOW | mypyc/irbuild/statement.py | 341 | # |
| LOW | mypyc/irbuild/callable_class.py | 221 | # - A nested function: the callable class is instantiated |
| LOW | mypyc/irbuild/specialize.py | 161 | # function. Specializers can return None to indicate that they failed |
| LOW | mypyc/irbuild/for_helpers.py | 801 | def init(self, expr_reg: Value, target_type: RType) -> None: |
| LOW | mypyc/irbuild/function.py | 921 | # typ.fullname contains the module where the class object was defined. However, it is possible |
| LOW | mypyc/lib-rt/dict_ops.c | 1 | // Dict primitive operations |
| LOW | mypyc/lib-rt/misc_ops.c | 1 | #include "pythoncapi_compat.h" |
| LOW | mypyc/lib-rt/misc_ops.c | 1281 | Py_DECREF(file); |
| LOW | mypyc/lib-rt/CPy.h | 1 | // Mypyc C API |
| LOW | mypyc/lib-rt/CPy.h | 21 | |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 1 | // Header file providing new C API functions to old Python versions. |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 21 | #include <Python.h> |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 41 | # else |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 101 | |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 121 | # define Py_IsTrue(x) Py_Is(x, Py_True) |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 541 | return Py_NewRef(code->co_cellvars); |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 1201 | |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 1221 | |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 1921 | Py_DECREF(obj); |
| LOW | mypyc/lib-rt/pythoncapi_compat.h | 1941 | # define Py_T_USHORT 10 |
| LOW | mypyc/lib-rt/str_extra_ops.c | 1 | #include "str_extra_ops.h" |
| LOW | mypyc/lib-rt/stringwriter_extra_ops.c | 1 | // Primitives related to librt.strings.StringWriter that get linked statically |
| LOW | mypyc/lib-rt/str_ops.c | 1 | #include "pythoncapi_compat.h" |
| LOW | mypyc/lib-rt/getargs.c | 21 | * programmatically and can be assumed valid. |
| LOW | mypyc/lib-rt/getargs.c | 41 | #else |
| LOW | mypyc/lib-rt/vecs_extra_ops.c | 1 | // Primitives related to librt.vecs that get linked statically |
| LOW | mypyc/lib-rt/generic_ops.c | 1 | // Generic primitive operations |
| LOW | mypyc/lib-rt/bytearray_extra_ops.h | 1 | #ifndef MYPYC_BYTEARRAY_EXTRA_OPS_H |
| LOW | mypyc/lib-rt/pythonsupport.h | 1 | // Collects code that was copied in from cpython, for a couple of different reasons: |
| LOW | mypyc/lib-rt/pythonsupport.h | 21 | #include "internal/pycore_genobject.h" // _PyGen_FetchStopIterationValue |
| LOW | mypyc/lib-rt/int_ops.c | 1 | // Int primitive operations (tagged arbitrary-precision integers) |
| LOW | mypyc/lib-rt/int_ops.c | 21 | |
| LOW | mypyc/lib-rt/exc_ops.c | 201 | // to the internal C API: to the pycore_frame.h header file. |
| LOW | mypyc/lib-rt/mypyc_util.h | 1 | #ifndef MYPYC_UTIL_H |
| LOW | mypyc/lib-rt/mypyc_util.h | 21 | #define CPy_NOINLINE __declspec(noinline) |
| LOW | mypyc/lib-rt/mypyc_util.h | 41 | // 3. GNU thread local storage for GCC/Clang targets that still need it |
| LOW | mypyc/lib-rt/mypyc_util.h | 61 | #define CPY_UNROLL_LOOP(n) |
| LOW | mypyc/lib-rt/mypyc_util.h | 101 | |
| LOW | mypyc/lib-rt/mypyc_util.h | 161 | #define CPY_3_12_FEATURES (PY_VERSION_HEX >= 0x030c0000) |
| LOW | mypyc/lib-rt/mypyc_util.h | 181 | #define CPY_LONG_SIZE_SIGNED(o) (CPY_LONG_IS_NEGATIVE(o) ? -CPY_LONG_SIZE(o) : CPY_LONG_SIZE(o)) |
| LOW | mypyc/lib-rt/strings/librt_strings.c | 1 | #include "pythoncapi_compat.h" |
| LOW | mypyc/lib-rt/strings/librt_strings_common.h | 1 | #ifndef LIBRT_STRINGS_COMMON_H |
| LOW | mypyc/lib-rt/strings/librt_strings.h | 1 | #ifndef LIBRT_STRINGS_H |
| LOW | mypyc/lib-rt/strings/librt_strings_api.h | 1 | #ifndef LIBRT_STRINGS_API_H |
| LOW | mypyc/lib-rt/vecs/vec_i32.c | 1 | #define VEC VecI32 |
| LOW | mypyc/lib-rt/vecs/librt_vecs.c | 1 | // Definition of the mypyc.vecs module, which implements 'vec' and related functionality. |
| LOW | mypyc/lib-rt/vecs/librt_vecs.c | 21 | // * In native code, a vec instance is an immutable value type with two fields |
| LOW | mypyc/lib-rt/vecs/librt_vecs.c | 41 | // Implementation summary: |
| LOW | mypyc/lib-rt/vecs/librt_vecs.c | 61 | // * A vec with a reference item type, such as vec[str], is often faster than a list, |
| LOW | mypyc/lib-rt/vecs/vec_nested.c | 1 | // Implementation of nested vec[t], when t is a vec type. |
| LOW | mypyc/lib-rt/vecs/vec_t.c | 1 | // Implementation of generic vec[t], when t is a plain type object (possibly optional). |
| LOW | mypyc/lib-rt/vecs/vec_u8.c | 1 | #define VEC VecU8 |
| 476 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | conftest.py | 1 | |
| LOW | setup.py | 3 | |
| LOW | runtests.py | 3 | |
| LOW | misc/cherry-pick-typeshed.py | 8 | |
| LOW | misc/profile_check.py | 28 | |
| LOW | misc/incremental_checker.py | 34 | |
| LOW | misc/dump-ast.py | 6 | |
| LOW | misc/generate_changelog.py | 3 | |
| LOW | misc/apply-cache-diff.py | 10 | |
| LOW | misc/analyze_cache.py | 3 | |
| LOW | misc/upload-pypi.py | 8 | |
| LOW | misc/convert-cache.py | 8 | |
| LOW | misc/sync-typeshed.py | 10 | |
| LOW | misc/perf_compare.py | 20 | |
| LOW | misc/log_trace_check.py | 10 | |
| LOW | misc/perf_checker.py | 3 | |
| LOW | misc/diff-cache.py | 8 | |
| LOW | misc/find_type.py | 26 | |
| LOW | mypyc/build.py | 21 | |
| LOW | mypyc/build.py | 31 | |
| LOW | mypyc/subtype.py | 3 | |
| LOW | mypyc/options.py | 1 | |
| LOW | mypyc/crash.py | 1 | |
| LOW | mypyc/common.py | 1 | |
| LOW | mypyc/build_setup.py | 11 | |
| LOW | mypyc/errors.py | 1 | |
| LOW | mypyc/sametype.py | 3 | |
| LOW | mypyc/namegen.py | 1 | |
| LOW | mypyc/rt_subtype.py | 16 | |
| LOW | mypyc/__main__.py | 13 | |
| LOW | mypyc/irbuild/vec.py | 3 | |
| LOW | mypyc/irbuild/targets.py | 1 | |
| LOW | mypyc/irbuild/ll_builder.py | 7 | |
| LOW | mypyc/irbuild/util.py | 3 | |
| LOW | mypyc/irbuild/vtable.py | 3 | |
| LOW | mypyc/irbuild/mapper.py | 3 | |
| LOW | mypyc/irbuild/prebuildvisitor.py | 1 | |
| LOW | mypyc/irbuild/env_class.py | 18 | |
| LOW | mypyc/irbuild/format_str_tokenizer.py | 3 | |
| LOW | mypyc/irbuild/statement.py | 9 | |
| LOW | mypyc/irbuild/constant_fold.py | 11 | |
| LOW | mypyc/irbuild/ast_helpers.py | 7 | |
| LOW | mypyc/irbuild/builder.py | 6 | |
| LOW | mypyc/irbuild/classdef.py | 3 | |
| LOW | mypyc/irbuild/generator.py | 11 | |
| LOW | mypyc/irbuild/missingtypevisitor.py | 1 | |
| LOW | mypyc/irbuild/visitor.py | 6 | |
| LOW | mypyc/irbuild/context.py | 3 | |
| LOW | mypyc/irbuild/nonlocalcontrol.py | 6 | |
| LOW | mypyc/irbuild/callable_class.py | 7 | |
| LOW | mypyc/irbuild/specialize.py | 15 | |
| LOW | mypyc/irbuild/main.py | 23 | |
| LOW | mypyc/irbuild/for_helpers.py | 8 | |
| LOW | mypyc/irbuild/expression.py | 7 | |
| LOW | mypyc/irbuild/prepare.py | 14 | |
| LOW | mypyc/irbuild/function.py | 13 | |
| LOW | mypyc/irbuild/match.py | 1 | |
| LOW | mypyc/lib-rt/setup.py | 6 | |
| LOW | mypyc/lib-rt/setup.py | 17 | |
| LOW | mypyc/lib-rt/build_setup.py | 11 | |
| 312 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | mypyc/irbuild/ll_builder.py | 1777 | ComparisonOp(check_error_result, null, ComparisonOp.NEQ, line) |
| HIGH | mypyc/irbuild/ll_builder.py | 918 | null, don't put it in the dict. |
| HIGH | mypyc/irbuild/function.py | 412 | ComparisonOp(generic_getattr_result, null, ComparisonOp.NEQ, line) |
| HIGH | mypyc/irbuild/function.py | 455 | is_delattr = builder.add(ComparisonOp(value_arg, null, ComparisonOp.EQ, line)) |
| HIGH | mypyc/irbuild/function.py | 470 | builder.call_c(generic_setattr, [builder.self(), attr_arg, null], line) |
| HIGH | mypyc/analysis/attrdefined.py | 209 | # If an attribute we *read* may be undefined, it isn't always defined. |
| HIGH | mypyc/ir/rtypes.py | 83 | # undefined, we can't just rely on the error value to signal this. |
| HIGH | mypyc/codegen/emitmodule.py | 1551 | return f"{emitter.ctype_spaced(typ)}{static_name} = {undefined};" |
| HIGH | mypyc/codegen/emitfunc.py | 537 | # previously undefined), so decref the old value. |
| HIGH | mypyc/codegen/emit.py | 1100 | self.emit_lines(f"if ({dest} == -1.0 && PyErr_Occurred()) {{", failure, "}") |
| HIGH | mypyc/transform/spill.py | 81 | block.ops.extend([null, SetAttr(env_reg, spill_locs[op.src], null, op.line)]) |
| HIGH | mypyc/transform/refcount.py | 197 | # null). |
| HIGH | mypy/meet.py | 770 | n = r.length() if isinstance(r, TupleType) else 1 |
| HIGH | mypy/meet.py | 1017 | if s.length() == t.length(): |
| HIGH | mypy/meet.py | 1019 | for i in range(t.length()): |
| HIGH | mypy/meet.py | 1030 | if s.length() == t.length() and s_unpack_index == t_unpack_index: |
| HIGH | mypy/meet.py | 1066 | if fixed.length() < variadic.length() - 1: |
| HIGH | mypy/meet.py | 1069 | suffix_len = variadic.length() - prefix_len - 1 |
| HIGH | mypy/types.py | 2848 | return self.length() > 0 |
| HIGH | mypy/types.py | 2855 | if self.length() == 0: |
| HIGH | mypy/types.py | 2857 | if self.length() > 1: |
| HIGH | mypy/join.py | 480 | if s.length() == t.length(): |
| HIGH | mypy/join.py | 482 | for i in range(t.length()): |
| HIGH | mypy/join.py | 494 | if s.length() == t.length() and s_unpack_index == t_unpack_index: |
| HIGH | mypy/join.py | 499 | suffix_len = t.length() - t_unpack_index - 1 |
| HIGH | mypy/join.py | 526 | if s.length() == 1 or t.length() == 1: |
| HIGH | mypy/join.py | 558 | if fixed.length() < variadic.length() - 1: |
| HIGH | mypy/join.py | 562 | suffix_len = variadic.length() - prefix_len - 1 |
| HIGH | mypy/partially_defined.py | 272 | """If name has previously been reported as undefined, the NameExpr that was called will be returned.""" |
| HIGH | mypy/checkexpr.py | 4620 | return left.length() |
| HIGH | mypy/checkexpr.py | 4624 | return left.length() - 1 + unpack.type.min_len |
| HIGH | mypy/checkexpr.py | 4625 | return left.length() - 1 |
| HIGH | mypy/checkexpr.py | 4651 | extra_items = self.min_tuple_length(left) - left.length() + 1 |
| HIGH | mypy/checker.py | 7532 | if method(typ.length(), size): |
| HIGH | mypy/checker.py | 7542 | min_len = typ.length() - 1 + unpacked.min_len |
| HIGH | mypy/checker.py | 7554 | unpack = UnpackType(unpacked.copy_modified(min_len=size - typ.length() + 1)) |
| HIGH | mypy/checker.py | 7563 | min_len = typ.length() - 1 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | misc/sync-typeshed.py | 188 | # Create a commit |
| MEDIUM | mypyc/build.py | 973 | # Create a compiler object so we can make decisions based on what |
| MEDIUM | mypyc/irbuild/vec.py | 112 | # Create an integer which will hold the type object * as an integral value. |
| MEDIUM | mypyc/irbuild/vec.py | 395 | # Create an integer which will hold the type object * as an integral value. |
| MEDIUM | mypyc/irbuild/ll_builder.py | 1182 | # Create a C array containing all arguments as boxed values. |
| MEDIUM | mypyc/irbuild/statement.py | 1259 | # Create a new block for the instructions immediately following the yield expression, and |
| MEDIUM | mypyc/irbuild/classdef.py | 487 | # Create the class |
| MEDIUM | mypyc/irbuild/generator.py | 424 | # Define a variable representing the label to go to the next time |
| MEDIUM | mypyc/irbuild/callable_class.py | 64 | # Define the actual callable class ClassIR, and set its |
| MEDIUM | mypyc/irbuild/for_helpers.py | 653 | # Create a new block to handle cleanup after loop exit. |
| MEDIUM | mypyc/irbuild/for_helpers.py | 693 | # Create a new cleanup block for when the loop is finished. |
| MEDIUM | mypyc/irbuild/for_helpers.py | 742 | # Create a new cleanup block for when the loop is finished. |
| MEDIUM | mypyc/irbuild/for_helpers.py | 1184 | # Create a register to store the state of the loop index and |
| MEDIUM | mypyc/test/test_serialization.py | 3 | # This file is named test_serialization.py even though it doesn't |
| MEDIUM | mypyc/codegen/literals.py | 121 | # The following methods return the C encodings of literal values |
| MEDIUM | mypyc/codegen/emitwrapper.py | 160 | # Define the arguments the function accepts (but no types yet) |
| MEDIUM | mypyc/primitives/misc_ops.py | 260 | # Create a heap type based on a template non-heap type. |
| MEDIUM | mypyc/primitives/misc_ops.py | 278 | # Create a dataclass from an extension class. See |
| MEDIUM | docs/source/conf.py | 6 | # This file is execfile()d with the current directory set to its |
| MEDIUM | mypy/build.py | 1892 | # This file is a cache directory tag automatically created by mypy. |
| MEDIUM | mypy/stubgen.py | 2019 | # Create the output folder if it doesn't already exist. |
| MEDIUM | mypy/treetransform.py | 477 | # This method is used when the transform result must be a NameExpr. |
| MEDIUM | mypy/semanal_newtype.py | 89 | # Create the corresponding class definition if the aliased type is subtypeable |
| MEDIUM | mypy/typeanal.py | 968 | # Create a named TypedDictType |
| MEDIUM | mypy/typeops.py | 397 | # Create the type of self in subtype, of form t[a1, ...]. |
| MEDIUM | mypy/applytype.py | 109 | # Create a map from type variable id to target type. |
| MEDIUM | mypy/nodes.py | 4628 | # Create an Instance similar to fill_typevars(). |
| MEDIUM | mypy/nodes.py | 4650 | # Create an Instance similar to fill_typevars(). |
| MEDIUM | mypy/typestate.py | 30 | """This class provides subtype caching to improve performance of subtype checks. |
| MEDIUM | mypy/checker.py | 6019 | # Create a dummy subject expression to handle cases where a match statement's subject |
| MEDIUM | mypy/checker.py | 2542 | # This method is a subtype of at least one union variant. |
| MEDIUM | mypy/checker.py | 8578 | # This method is currently only used to decide whether to pair |
| MEDIUM | mypy/plugins/functools.py | 241 | # Create a valid context for various ad-hoc inspections in check_call(). |
| MEDIUM | mypy/plugins/common.py | 292 | # Create the final OverloadedFuncDef node: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | mypyc/build.py | 710 | # We let the test harness just pass in the c file contents instead |
| LOW | mypyc/build.py | 710 | # We let the test harness just pass in the c file contents instead |
| LOW | mypyc/irbuild/ll_builder.py | 2910 | # There's no __eq__ defined, so just use object identity. |
| LOW | mypyc/irbuild/callable_class.py | 185 | # If accessed through the class, just return the callable |
| LOW | mypyc/irbuild/function.py | 620 | # If there are no decorators associated with the function, then just return the |
| LOW | mypyc/irbuild/function.py | 1106 | # the generated C code seems to expect that __init__ returns a char, so just return 1 |
| LOW | mypyc/codegen/emitmodule.py | 159 | # If we aren't doing validity checks, just return the cache data |
| LOW | mypyc/codegen/emitwrapper.py | 963 | # Nothing special needs to done to handle errors, so just return. |
| LOW | mypyc/primitives/int_ops.py | 58 | # Native ints don't have a separate type object -- we just use 'builtins.int'. |
| MEDIUM | …c/external/googletest/include/gtest/gtest-death-test.h | 146 | // This implementation is *not* meant to be as highly tuned or robust |
| MEDIUM | …c/external/googletest/include/gtest/gtest-death-test.h | 218 | // In practice, this can be used to test functions that utilize the |
| LOW | mypy/fastparse.py | 2089 | # RawExpressionType so we just pass in 'None' for now. We'll report the |
| MEDIUM | mypy/build.py | 4598 | # to leverage parallelism as much as possible. |
| LOW | mypy/stubgen.py | 920 | # just use Incomplete as the base class. |
| LOW | mypy/checkmember.py | 1082 | # This is pretty bad, so just return the original signature if |
| MEDIUM | mypy/inspections.py | 552 | # We are using a bit slower but robust way to find a module by path, |
| MEDIUM | mypy/meet.py | 724 | # TODO: write a more robust algorithm for cases where both types are variadic. |
| LOW | mypy/meet.py | 607 | # that came as fallbacks, so simply call is_subtype() to avoid code duplication. |
| LOW | mypy/types.py | 3336 | # some other type, we just return that string repr directly. |
| LOW | mypy/types.py | 4014 | # For bytes literals, the value is already escaped, just add quotes and b prefix |
| LOW | mypy/join.py | 356 | # in join_instances_via_supertype). Otherwise, just return the nominal join. |
| LOW | mypy/types_utils.py | 164 | # Instead of using Tuple[Unpack[Tuple[...]]], just use Tuple[...] |
| LOW | mypy/typeanal.py | 1332 | # fine to just return it as-is. |
| LOW | mypy/typeanal.py | 1829 | # Types that we can just add directly to the literal/potential union of literals. |
| LOW | mypy/typeanal.py | 2868 | # TypeAliasTypes are analyzed separately already, just return it |
| LOW | mypy/typeops.py | 726 | # with the same fallback, we can skip doing that work again and just add the type |
| LOW | mypy/messages.py | 2729 | # No type arguments, just return the type name |
| LOW | mypy/messages.py | 3158 | # For other TypeVarLikeTypes, just use the repr |
| LOW | mypy/messages.py | 1842 | # Nothing special here; just create the note: |
| LOW | mypy/plugin.py | 446 | # A no-op callback would just return the inferred return type, but a useful |
| LOW | mypy/solve.py | 276 | # ...unless this is the only information we have, then we just pass it on. |
| LOW | mypy/nodes.py | 1307 | # TODO: we want to remove this at some point and just use `FuncBase` ideally. |
| LOW | mypy/checkexpr.py | 2084 | # So we give up and just use function arguments for type inference, with just two |
| LOW | mypy/checkexpr.py | 3058 | # We try returning a precise type if we can. If not, we give up and just return 'Any'. |
| LOW | mypy/checkexpr.py | 3699 | # type of the left operand, as the operation will simply return False if the union's container/iterator |
| LOW | mypy/checkexpr.py | 4640 | # indexing it seems benign to just return the upper bound item, similar |
| MEDIUM | mypy/checker.py | 7560 | # Homogeneous variadic item is the case where we are most flexible. Essentially, |
| MEDIUM | mypy/semanal.py | 4149 | # TODO: find a more robust way to track the order of definitions. |
| MEDIUM | mypy/semanal.py | 6580 | # TODO: this is not 100% robust for type variables nested within a class |
| LOW | mypy/checkpattern.py | 308 | # into individual items, so we just use its upper bound for the whole |
| MEDIUM | mypy/subtypes.py | 2216 | # TODO: Implement more robust support for runtime isinstance() checks, see issue #3827. |
| LOW | mypy/stubtest.py | 392 | # But we can't just return True here, because symtable doesn't know about symbols |
| LOW | mypy/plugins/enums.py | 221 | # If this is the case, we simply return this type. |
| MEDIUM | mypy/plugins/dataclasses.py | 751 | """Converts all attributes to @property methods in order to |
| LOW | mypy/server/deps.py | 580 | # dependencies from this so just return something. (The first, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | mypyc/test/test_annotate.py | 0 | perform a runtime checking transformation test case. |
| HIGH | mypyc/test/test_irbuild.py | 0 | perform a runtime checking transformation test case. |
| HIGH | mypyc/test/test_refcount.py | 0 | perform a runtime checking transformation test case. |
| HIGH | mypyc/test/test_exceptions.py | 0 | perform a runtime checking transformation test case. |
| HIGH | mypyc/test/test_alwaysdefined.py | 0 | perform a runtime checking transformation test case. |
| HIGH | mypyc/test/test_emitfunc.py | 0 | \ if (likely(pydict_check(cpy_r_r))) cpy_r_r0 = cpy_r_r; else { cpy_typeerror("dict", cpy_r_r); cpy_r_r0 = null; } |
| HIGH | mypyc/test/test_emitfunc.py | 0 | \ if (likely(pydict_check(cpy_r_r))) cpy_r_r0 = cpy_r_r; else { cpy_typeerror("dict", cpy_r_r); cpy_r_r0 = null; } |
| HIGH | mypyc/test/test_emitfunc.py | 0 | \ if (likely(pydict_check(cpy_r_r))) cpy_r_r0 = cpy_r_r; else { cpy_typeerror("dict", cpy_r_r); cpy_r_r0 = null; } |
| HIGH | mypyc/test/test_emitfunc.py | 0 | \ if (likely(pydict_check(cpy_r_r))) cpy_r_r0 = cpy_r_r; else { cpy_typeerror("dict", cpy_r_r); cpy_r_r0 = null; } |
| HIGH | mypy/util.py | 0 | return true if initialization was successful and we can use colors, false otherwise |
| HIGH | mypy/util.py | 0 | return true if initialization was successful and we can use colors, false otherwise |
| HIGH | mypy/util.py | 0 | return true if initialization was successful and we can use colors, false otherwise |
| HIGH | mypy/test/typefixture.py | 0 | callable(a1, ..., an, r) constructs a callable with argument types a1, ... an and return type r. |
| HIGH | mypy/test/testtypes.py | 0 | callable(a1, ..., an, r) constructs a callable with argument types a1, ... an and return type r. |
| HIGH | mypy/test/testtypes.py | 0 | callable(a1, ..., an, r) constructs a callable with argument types a1, ... an and return type r. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | misc/test-stubgenc.sh | 25 | # Check if generated stubs can actually be type checked by mypy |
| LOW | mypyc/build_setup.py | 49 | # Check if the matching argument contains a source filename. |
| LOW | mypyc/irbuild/ll_builder.py | 587 | # Check if value < upper_bound |
| LOW | mypyc/irbuild/ll_builder.py | 595 | # Check if value >= lower_bound |
| LOW | mypyc/irbuild/prebuildvisitor.py | 294 | # Check if child is nested within fdef (possibly indirectly |
| LOW | mypyc/irbuild/statement.py | 1000 | # Check if we have a return value |
| LOW | mypyc/irbuild/statement.py | 1017 | # Check if we need to reraise the original exception from sys.exc_info |
| LOW | mypyc/irbuild/statement.py | 1021 | # Check if exc_type is None |
| LOW | mypyc/irbuild/statement.py | 1057 | # Check if we're in an async function with a finally block that contains await |
| LOW | mypyc/irbuild/classdef.py | 645 | # Check if the metaclass defines a __prepare__ method, and if so, call it. |
| LOW | mypyc/irbuild/specialize.py | 275 | # Check if there's a specializer for this dunder method and type |
| LOW | mypyc/irbuild/specialize.py | 801 | # Return the result |
| LOW | mypyc/irbuild/specialize.py | 1419 | # Check if the adjusted index is in valid range |
| LOW | mypyc/irbuild/specialize.py | 1479 | # Check if the adjusted index is in valid range |
| LOW | mypyc/lib-rt/build_setup.py | 49 | # Check if the matching argument contains a source filename. |
| LOW | mypyc/analysis/attrdefined.py | 182 | # Check if __init__ can run unpredictable code (leak 'self'). |
| LOW | mypyc/primitives/misc_ops.py | 113 | # Check if the current exception is a StopIteration and return its value if so. |
| LOW | mypy/fastparse.py | 674 | # Check if stmts are reachable and add them to current_overload, |
| LOW | mypy/build.py | 2073 | # Check if plugins are still the same. |
| LOW | mypy/expandtype.py | 253 | # Set prefix to something empty, so we don't duplicate it below. |
| LOW | mypy/exprtotype.py | 115 | # Check if the type is Annotated[...]. For this we need the fullname, |
| LOW | mypy/checkmember.py | 1242 | # Check if original variable type has type variables. For example: |
| LOW | mypy/ipc.py | 94 | # Check if we already have a message in the buffer before |
| LOW | mypy/ipc.py | 128 | # Check if we already have a message in the buffer before |
| LOW | mypy/util.py | 618 | # Check if we are in a human-facing terminal on a supported platform. |
| LOW | mypy/checkstrformat.py | 608 | # Check if there are any other errors (like missing members). |
| LOW | mypy/nativeparse.py | 1257 | # Check if this is a super() call - if so, convert to SuperExpr |
| LOW | mypy/nativeparse.py | 1872 | # Check if stmts are reachable and add them to current_overload, |
| LOW | mypy/stubgenc.py | 321 | # Check if the argument has a default value |
| LOW | mypy/semanal_main.py | 507 | # Check if the class definition itself triggers a dataclass transform (via a parent class/ |
| LOW | mypy/constraints.py | 1575 | # Set TypeVarTuple to empty to improve error messages. |
| LOW | mypy/semanal_shared.py | 438 | # Check if there is a metaclass that is decorated with `typing.dataclass_transform` |
| LOW | mypy/checker.py | 784 | # Check if assignment widened the inferred type of a variable; in this case we |
| LOW | mypy/checker.py | 859 | # Check if the setter can accept two positional arguments. |
| LOW | mypy/checker.py | 1668 | # Check if __init__ has an invalid return type. |
| LOW | mypy/checker.py | 2521 | # Check if this override is covariant. |
| LOW | mypy/checker.py | 3477 | # Check if the nearest common ancestor frame for the definition site |
| LOW | mypy/checker.py | 3657 | # Check if we are a class variable with at least one base class |
| LOW | mypy/semanal.py | 3949 | # Check if there is a definition in supertype. If yes, we can't safely |
| LOW | mypy/semanal.py | 2228 | # Check if the class definition itself triggers a dataclass transform (via a parent class/ |
| LOW | mypy/checkpattern.py | 184 | # Check if other subpatterns capture the same names |
| LOW | mypy/test/test_nativeparse.py | 96 | # Check if we should skip function bodies (when ignoring errors) |
| LOW | mypy/test/helpers.py | 186 | # Display message that helps visualize the differences between two |
| LOW | mypy/plugins/attrs.py | 362 | # Check if attribute types are ready. |
| LOW | mypy/plugins/attrs.py | 526 | # Check if the right hand side is a call to an attribute maker. |
| LOW | mypy/plugins/attrs.py | 562 | # Check if the right hand side is a call to an attribute maker. |
| LOW | mypy/server/update.py | 947 | # Add it to the queue of files that need to be processed fully. |
| LOW | mypy/server/update.py | 1043 | # Check if any attribute types were changed and need to be propagated further. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | misc/analyze_typeform_stats.py | 45 | print("Error: Could not find all required counters in output") |
| LOW | mypyc/crash.py | 14 | except Exception: |
| LOW | mypyc/test/test_external.py | 61 | except Exception as err: |
| LOW | mypyc/test-data/driver/driver.py | 29 | except Exception as e: |
| MEDIUM | mypy/build.py | 703 | print(f"Error calling the plugin(version) entry point of {plugin_path}\n", file=stdout) |
| MEDIUM | mypy/build.py | 721 | print(f"Error constructing plugin instance of {plugin_type.__name__}\n", file=stdout) |
| MEDIUM | mypy/build.py | 3583 | print(f"Error serializing {self.id}", file=self.manager.stdout) |
| LOW | mypy/build.py | 309 | except Exception as exc: |
| LOW | mypy/build.py | 686 | except Exception as exc: |
| LOW | mypy/build.py | 702 | except Exception: |
| LOW | mypy/build.py | 720 | except Exception: |
| LOW | mypy/build.py | 1754 | except Exception as e: |
| LOW | mypy/build.py | 3066 | except Exception as err: |
| LOW | mypy/build.py | 3582 | except Exception: |
| LOW | mypy/moduleinspect.py | 65 | except Exception: |
| LOW | mypy/ipc.py | 369 | except Exception as e: |
| LOW | mypy/dmypy_util.py | 30 | except Exception as e: |
| LOW | mypy/dmypy_server.py | 244 | except Exception: |
| LOW | mypy/dmypy_server.py | 1118 | except Exception: |
| LOW | mypy/errors.py | 1345 | except Exception as e: |
| LOW | mypy/stubutil.py | 149 | except Exception as e: |
| LOW | mypy/checkexpr.py | 6195 | except Exception as err: |
| LOW | mypy/__main__.py | 36 | except Exception as e: |
| LOW | mypy/__main__.py | 43 | except Exception: |
| MEDIUM | mypy/__main__.py | 14 | def console_entry() -> None: |
| LOW | mypy/checker.py | 766 | except Exception as err: |
| LOW | mypy/semanal.py | 7733 | except Exception as err: |
| LOW | mypy/stubtest.py | 1486 | except Exception: |
| LOW | mypy/stubtest.py | 264 | except Exception as e: |
| LOW | mypy/stubtest.py | 402 | except Exception: |
| LOW | mypy/stubtest.py | 455 | except Exception: |
| LOW | mypy/stubtest.py | 493 | except Exception: |
| LOW | mypy/stubtest.py | 501 | except Exception: |
| LOW | mypy/stubtest.py | 715 | except Exception: |
| LOW | mypy/stubtest.py | 883 | except Exception: |
| LOW | mypy/stubtest.py | 1896 | except Exception: |
| LOW | mypy/stubtest.py | 1934 | except Exception: |
| LOW | mypy/stubtest.py | 1961 | except Exception: |
| LOW | mypy/build_worker/worker.py | 109 | except Exception as exc: |
| MEDIUM | mypy/build_worker/worker.py | 110 | print(f"Error writing status file {status_file}:", exc) |
| MEDIUM | mypy/build_worker/worker.py | 129 | print("Error communicating with coordinator:", exc) |
| LOW | mypy/build_worker/worker.py | 130 | except Exception as exc: |
| LOW | mypy/dmypy/client.py | 275 | except Exception: |
| LOW | mypy/test/data.py | 336 | except Exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | mypy/typeops.py | 637 | # Step 1: expand all nested unions |
| LOW | mypy/typeops.py | 640 | # Step 2: fast path for single item |
| LOW | mypy/typeops.py | 644 | # Step 3: remove redundant unions |
| LOW | mypy/typeops.py | 647 | # Step 4: If more than one literal exists in the union, try to simplify |
| LOW | mypy/typeops.py | 660 | # Step 5: At last, we erase any (inconsistent) extra attributes on instances. |
| LOW | mypy/checkexpr.py | 2806 | # Step 1: Filter call targets to remove ones where the argument counts don't match |
| LOW | mypy/checkexpr.py | 2811 | # Step 2: If the arguments contain a union, we try performing union math first, |
| LOW | mypy/checkexpr.py | 2856 | # Step 3: We try checking each branch one-by-one. |
| LOW | mypy/checkexpr.py | 2889 | # Step 4: Failure. At this point, we know there is no match. We fall back to trying |
| LOW | mypy/checkexpr.py | 2902 | # Step 5: We try and infer a second-best alternative if possible. If not, fall back |
| LOW | mypy/checkexpr.py | 3158 | # Step 1: If we are already too deep, then stop immediately. Otherwise mypy might |
| LOW | mypy/checkexpr.py | 3164 | # Step 2: Find position of the first union in arguments. Return the normal inferred |
| LOW | mypy/checkexpr.py | 3186 | # Step 3: Try a direct match before splitting to avoid unnecessary union splits |
| LOW | mypy/checkexpr.py | 3206 | # Step 4: Split the first remaining union type in arguments into items and |
| LOW | mypy/checkexpr.py | 3232 | # Step 5: If splitting succeeded, then filter out duplicate items before returning. |
| LOW | mypy/checkexpr.py | 4296 | # Step 1: We first try leaving the right arguments alone and destructure |
| LOW | mypy/checkexpr.py | 4320 | # Step 2: If that fails, we try again but also destructure the right argument. |
| LOW | mypy/checker.py | 6693 | # Step 1: Obtain the types of each operand and whether or not we can |
| LOW | mypy/checker.py | 6727 | # Step 2: Group operands chained by either the 'is' or '==' operands |
| LOW | mypy/checker.py | 6747 | # Step 3: Analyze each group and infer more precise type maps for each |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | mypy/main.py | 412 | # ===================== |
| MEDIUM | mypy/main.py | 414 | # ===================== |
| MEDIUM | mypy/main.py | 431 | # =============== |
| MEDIUM | mypy/main.py | 433 | # =============== |
| MEDIUM | mypy/stubtest.py | 213 | # ==================== |
| MEDIUM | mypy/stubtest.py | 215 | # ==================== |
| MEDIUM | mypy/stubtest.py | 1756 | # ==================== |
| MEDIUM | mypy/stubtest.py | 1758 | # ==================== |
| MEDIUM | mypy/stubtest.py | 2158 | # ==================== |
| MEDIUM | mypy/stubtest.py | 2160 | # ==================== |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | mypy/plugins/common.py | 252 | cls.info.defn.defs.body.append(func) |
| CRITICAL | mypy/plugins/common.py | 301 | cls.info.defn.defs.body.append(overload_def) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | mypyc/irbuild/env_class.py | 137 | # If this is a FuncDef, then make sure to load the FuncDef into its own environment |
| LOW | mypy/types.py | 80 | # make sure to audit the following methods: |
| MEDIUM | mypy/errors.py | 110 | # For errors on the same line you can use this to customize their sorting |
| MEDIUM | mypy/subtypes.py | 978 | # because you can use `B` everywhere you use `A`, but not the other way around. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | misc/analyze_cache.py | 92 | def helper(chunk: JsonDict) -> JsonDict: |
| LOW | misc/analyze_cache.py | 124 | def helper(chunk: JsonDict) -> JsonDict: |
| LOW | mypy/semanal_pass1.py | 48 | def do_stuff() -> None: |
| LOW | mypy/semanal.py | 628 | def helper(defs: list[Statement]) -> None: |