A fast type checker and language server for Python
This report summarizes scanner evidence for facebook/pyrefly, a Rust project with 7,077 GitHub stars. SynthScan examined 684,024 lines of code across 1913 source files, recording 3380 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 7.1 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1939 finding(s).
Are imports declared and package/API names verified? 786 finding(s).
Are wrappers, guards, and repeated structures necessary? 1776 finding(s).
Which changes need focused human review? 3380 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 3380 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/lib/test/generic_callable_degeneracy.rs | 77 | def preserve_argument_inference( | CODE |
| LOW | pyrefly/lib/test/typing_self.rs | 270 | def person_create_with_name_trampoline(cls, *args, **kwargs): | CODE |
| LOW | pyrefly/lib/test/typing_self.rs | 277 | def person_create_with_name_orig(cls, name: str) -> Self: # E: `Self` must appear within a class | CODE |
| LOW | pyrefly/lib/test/yields.rs | 205 | async def async_coroutine_of_async_generator() -> AsyncGenerator[int, None]: | CODE |
| LOW | pyrefly/lib/test/yields.rs | 600 | def generator_with_only_yield_from() -> Iterator[int]: | CODE |
| LOW | pyrefly/lib/test/returns.rs | 824 | def uninitialized_local_logic(value: int | str | float) -> str: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 2328 | def contradictory_source_true() -> Tensor[[contradictory_source_or(None, Int[3], Int[7], True)]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 2329 | def contradictory_source_false() -> Tensor[[contradictory_source_or(None, Int[3], Int[7], False)]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 2330 | def contradictory_branch_none() -> Tensor[[contradictory_branch(None, Int[7])]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 2334 | def conditional_literal_local_true() -> Tensor[conditional_literal_local_tuple(True)]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 2335 | def conditional_literal_local_false() -> Tensor[conditional_literal_local_tuple(False)]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 3668 | def defaulted_helper_mismatch(n: Int, k: int) -> Int: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 3677 | def inconsistent_helper_branches(n: Int, k: int, first: bool) -> Int: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 3684 | def conflicting_branch_return_dimension_first( | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 4022 | def optional_literal_comparison() -> Tensor[[optional_lt_literal(Int[2], Int[7], Int[8])]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 4023 | def reversed_optional_literal_comparison() -> Tensor[[literal_lt_optional(Int[2], Int[7], Int[8])]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 4024 | def optional_parameter_comparison() -> Tensor[[optional_lt_parameter(Int[2], Int[3], Int[7], Int[8])]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 4359 | def subtract_overflow_reversed() -> Tensor[[flag_subtract(9223372036854775807, -1)]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 4361 | def multiply_overflow_reversed() -> Tensor[[flag_multiply(2, 9223372036854775807)]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 4363 | def modulo_min_by_negative_one() -> Tensor[[flag_modulo(-9223372036854775808, -1)]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 5771 | def bare_concrete_tuple_splat( | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 5781 | def bare_concrete_inttuple_splat( | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 5786 | def bare_splat_matches_elements_spelling( | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9486 | def einsum_implicit_kernel_ir() -> int: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9491 | def einsum_malformed_kernel_ir() -> int: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9496 | def einsum_repeated_output_kernel_ir() -> int: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9501 | def einsum_ellipsis_masked_kernel_ir() -> int: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9506 | def einsum_ellipsis_kernel_ir() -> int: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9639 | def einsum_implicit_kernel_fn() -> int: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9642 | def einsum_malformed_kernel_fn() -> int: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9645 | def einsum_repeated_output_kernel_fn() -> int: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9648 | def einsum_ellipsis_masked_kernel_fn() -> int: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 9651 | def einsum_ellipsis_kernel_fn() -> int: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 11017 | def check_overflow_floor_divide(x: Tensor[[2, 3]]) -> Tensor[overflow_floor_divide(IntTuple[2, 3])]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 11018 | def check_overflow_negative_literal(x: Tensor[[2, 3]]) -> Tensor[overflow_negative_literal(IntTuple[2, 3])]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 11021 | def check_invalid_right_operand(x: Tensor[[2, 3]]) -> Tensor[invalid_right_operand_after_overflow(IntTuple[2, 3])]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 11022 | def check_unknown_modulo_zero(x: Tensor[[2, 3]]) -> Tensor[unknown_modulo_zero(IntTuple[2, 3], int)]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 11028 | def check_unknown_before_invalid(x: Tensor[[2, 3]]) -> Tensor[unknown_before_invalid(IntTuple[2, 3], int)]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 11029 | def check_known_before_invalid(x: Tensor[[2, 3]]) -> Tensor[known_before_invalid(IntTuple[2, 3])]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 11030 | def check_invalid_before_unknown(x: Tensor[[2, 3]]) -> Tensor[invalid_before_unknown(IntTuple[2, 3], int)]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 11031 | def check_false_before_invalid(x: Tensor[[2, 3]]) -> Tensor[false_before_invalid(IntTuple[2, 3], IntTuple[1])]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 12707 | def narrowed_optional_to_required(shape: IntTuple, mode: str | None) -> IntTuple: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 12713 | def narrowed_value_to_optional(shape: IntTuple, mode: str | None) -> IntTuple: | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 12719 | def inferred_optional_to_required( | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 12751 | def apply_narrowed_flag_arithmetic() -> Tensor[[narrowed_flag_arithmetic_to_int_helper(2, Int[7])]]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 12756 | def apply_narrowed_optional_to_required() -> Tensor[narrowed_optional_to_required(IntTuple[2, 3], "keep")]: ... | CODE |
| LOW⚡ | pyrefly/lib/test/shape_dsl.rs | 12757 | def apply_narrowed_value_to_optional() -> Tensor[narrowed_value_to_optional(IntTuple[2, 3], "keep")]: ... | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 738 | def second_string_is_not_a_docstring(x: Int) -> Int: | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 744 | def nested_string_is_not_a_docstring(x: Int) -> Int: | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 1349 | def gradual_claim_must_be_true(x: Array[[2, 3], int]) -> None: | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 1411 | def explicit_class_non_shape_arg(bad: Box[list[int]]) -> None: # E: Tensor shape dimensions must be integer literals, s | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 1527 | def nested_concrete_tuple_carrier( | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 1532 | def nested_unbounded_tuple_carrier( | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 1579 | def shapeful_unbounded_middle( | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 1968 | def check_accumulated_upper_bound( | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 2292 | def conditional_literal_local_tuple(choose: bool) -> IntTuple: | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 2297 | def arithmetic_literal_local_tuple(_unused: Int) -> IntTuple: | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 2521 | def branch_narrowing_does_not_leak( | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 2692 | def deferred_to_int_or_optional( | CODE |
| LOW | pyrefly/lib/test/shape_dsl.rs | 2728 | def deferred_flag_to_wider_flag( | CODE |
| 1023 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pyrefly/lib/test/shape_dsl.rs | 10011 | // ── Recursion-safety tests ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 36 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 38 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 112 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 114 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 135 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 137 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 282 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 284 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 557 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tensor-shapes/jax-pyrefly-stubs/examples/nanogpt.py | 559 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 41 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 43 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 135 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 137 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 230 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 232 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 307 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 309 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 344 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 346 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 393 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 395 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 469 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/jax-pyrefly-stubs/examples/bert.py | 471 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 38 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 40 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 107 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 109 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 226 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 228 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 278 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 280 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 340 | # ============================================================================ | COMMENT |
| MEDIUM | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 342 | # ============================================================================ | COMMENT |
| MEDIUM | …apes/pyrefly-torch-stubs/examples/learning_to_paint.py | 37 | # ============================================================================ | COMMENT |
| MEDIUM | …apes/pyrefly-torch-stubs/examples/learning_to_paint.py | 39 | # ============================================================================ | COMMENT |
| MEDIUM | …apes/pyrefly-torch-stubs/examples/learning_to_paint.py | 127 | # ============================================================================ | COMMENT |
| MEDIUM | …apes/pyrefly-torch-stubs/examples/learning_to_paint.py | 129 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 56 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 58 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 112 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 114 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 184 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 186 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 242 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 244 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 304 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 306 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 518 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/drq.py | 520 | # ============================================================================ | COMMENT |
| MEDIUM | …nsor-shapes/pyrefly-torch-stubs/examples/squeezenet.py | 136 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …nsor-shapes/pyrefly-torch-stubs/examples/squeezenet.py | 138 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py | 55 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py | 57 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py | 77 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py | 79 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py | 122 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py | 124 | # ============================================================================ | COMMENT |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/tacotron2.py | 179 | # ============================================================================ | COMMENT |
| 270 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pyrefly/lib/test/attrs/third-party/attr/validators.py | 651 | except self.exc_types: | CODE |
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_make.py | 984 | except ValueError: # noqa: PERF203 | CODE |
| HIGH | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 621 | except KeyError: | CODE |
| HIGH | pyrefly/lib/test/pydantic/third-party/pydantic/types.py | 2121 | except ValueError: | CODE |
| HIGH | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 1003 | except PydanticUndefinedAnnotation: | CODE |
| HIGH | …/third-party/pydantic/_internal/_model_construction.py | 611 | except (NameError, TypeError): | CODE |
| HIGH | …hapes/jax-pyrefly-stubs/test/test_searching_sorting.py | 37 | except ValueError: | CODE |
| HIGH | …hapes/jax-pyrefly-stubs/test/test_searching_sorting.py | 64 | except ValueError: | CODE |
| HIGH | …hapes/jax-pyrefly-stubs/test/test_searching_sorting.py | 89 | except ValueError: | CODE |
| HIGH | …hapes/jax-pyrefly-stubs/test/test_searching_sorting.py | 140 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 80 | except (TypeError, ValueError): | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 180 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 243 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 338 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 347 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 355 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 394 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 404 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 412 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 420 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 469 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 477 | except (TypeError, ValueError): | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_linalg.py | 485 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_reductions.py | 153 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 23 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 33 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 75 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 83 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 92 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 101 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 191 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 200 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 209 | except ValueError: | CODE |
| HIGH | …nsor-shapes/jax-pyrefly-stubs/test/test_polynomials.py | 218 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_lax.py | 152 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_lax.py | 168 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_lax.py | 290 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_lax.py | 298 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_lax.py | 306 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_lax.py | 314 | except (TypeError, ValueError): | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_lax.py | 441 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_lax.py | 446 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_reshape.py | 84 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_reshape.py | 97 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_reshape.py | 110 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_reshape.py | 118 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_reshape.py | 131 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_reshape.py | 139 | except TypeError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_reshape.py | 158 | except ZeroDivisionError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_reshape.py | 166 | except ZeroDivisionError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_creation.py | 174 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_creation.py | 207 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_creation.py | 215 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_indexing.py | 85 | except IndexError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_indexing.py | 139 | except IndexError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_indexing.py | 148 | except (IndexError, TypeError): | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_indexing.py | 155 | except IndexError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_indexing.py | 192 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_indexing.py | 218 | except ValueError: | CODE |
| HIGH | tensor-shapes/jax-pyrefly-stubs/test/test_indexing.py | 243 | except ValueError: | CODE |
| 89 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/bin/main.rs | 41 | /// Main CLI entrypoint for Pyrefly. | COMMENT |
| LOW | pyrefly/bin/main.rs | 61 | /// own name. A binary that embeds the shared commands in a larger CLI (such as | COMMENT |
| LOW | pyrefly/lib/lib.rs | 1 | /* | COMMENT |
| LOW | pyrefly/lib/query.rs | 201 | /// already carries a value-shape property. | COMMENT |
| LOW | pyrefly/lib/embed.rs | 1 | /* | COMMENT |
| LOW | pyrefly/lib/test/yields.rs | 181 | "#, | COMMENT |
| LOW | pyrefly/lib/test/natural.rs | 1 | /* | COMMENT |
| LOW | pyrefly/lib/test/python_env.rs | 121 | /// it need not have, never let a truly-discoverable one slip through). | COMMENT |
| LOW | pyrefly/lib/test/narrow.rs | 4581 | def setup(self) -> None: | COMMENT |
| LOW | pyrefly/lib/test/perf.rs | 141 | ); | COMMENT |
| LOW | pyrefly/lib/test/perf.rs | 241 | // 1. Check `A <: P1 | P2` — union tries `A <: P1`. | COMMENT |
| LOW | pyrefly/lib/test/flow_branching.rs | 3541 | print(1) | COMMENT |
| LOW | pyrefly/lib/test/incremental.rs | 1241 | /// Changing an export's type (not its existence) shouldn't invalidate | COMMENT |
| LOW | pyrefly/lib/test/incremental.rs | 1321 | } | COMMENT |
| LOW | pyrefly/lib/test/incremental.rs | 1441 | /// - `from torch.distributed.fsdp import fully_shard` | COMMENT |
| LOW | pyrefly/lib/test/incremental.rs | 1461 | // 2. Then re-export the changed `y` (from bar) | COMMENT |
| LOW | pyrefly/lib/test/incremental.rs | 2861 | /// Test that when __all__ contains Module entries (like `__all__.extend(other.__all__)`), | COMMENT |
| LOW | pyrefly/lib/test/state.rs | 181 | } | COMMENT |
| LOW | pyrefly/lib/test/state.rs | 241 | let location = transaction.lookup_export_location(&target, &Name::new_static("CONST")); | COMMENT |
| LOW | pyrefly/lib/test/state.rs | 1301 | .collect_errors() | COMMENT |
| LOW | pyrefly/lib/test/class_subtyping.rs | 241 | r#" | COMMENT |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_compat.py | 81 | # This is needed because there is no other (thread-safe) way to pass info | COMMENT |
| LOW | pyrefly/lib/test/tsp/tsp_interaction/explicit_config.rs | 21 | /// | COMMENT |
| LOW | …refly/lib/test/tsp/tsp_interaction/get_type_queries.rs | 1461 | // identifier even when that identifier appears in a call position. The LSP | COMMENT |
| LOW | …refly/lib/test/tsp/tsp_interaction/get_type_queries.rs | 1601 | assert_eq!( | COMMENT |
| LOW | …refly/lib/test/tsp/tsp_interaction/get_type_queries.rs | 1861 | // ---- Container element / dict value contexts ------------------------- | COMMENT |
| LOW | pyrefly/lib/test/lsp/code_actions.rs | 681 | ## Before: | COMMENT |
| LOW | pyrefly/lib/test/lsp/code_actions.rs | 761 | # Title: Insert import: `from _io import BytesIO` | COMMENT |
| LOW | pyrefly/lib/test/lsp/code_actions.rs | 861 | # ^ | COMMENT |
| LOW | pyrefly/lib/test/lsp/code_actions.rs | 981 | ## Before: | COMMENT |
| LOW | pyrefly/lib/test/lsp/code_actions.rs | 1001 | # ^ | COMMENT |
| LOW | pyrefly/lib/test/lsp/code_actions.rs | 1921 | # ^ | COMMENT |
| LOW | …ly/lib/test/lsp/lsp_interaction/open_file_benchmark.rs | 1 | /* | COMMENT |
| LOW | pyrefly/lib/test/lsp/lsp_interaction/configuration.rs | 321 | COMMENT | |
| LOW | pyrefly/lib/test/lsp/lsp_interaction/configuration.rs | 881 | } | COMMENT |
| LOW | …/lib/test/lsp/lsp_interaction/workspace_diagnostics.rs | 161 | return Some(Ok(())); | COMMENT |
| LOW | pyrefly/lib/test/lsp/lsp_interaction/definition.rs | 581 | // `a.b.c.D` -> `a` (line 7, char 0) | COMMENT |
| LOW | …b/test/lsp/lsp_interaction/test_files/syntax_errors.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …p/lsp_interaction/test_files/no_config_syntax_error.py | 1 | # @nolint | COMMENT |
| LOW | …/lsp_interaction/test_files/unused_ignore_no_config.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …lib/test/lsp/lsp_interaction/test_files/type_errors.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …b/test/lsp/lsp_interaction/test_files/text_document.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | pyrefly/lib/test/lsp/lsp_interaction/test_files/utf.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …interaction/test_files/unused_type_ignore_no_config.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …es/diagnostics_file_in_excludes/type_errors_exclude.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …es/diagnostics_file_in_excludes/type_errors_include.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …on/test_files/imports_builtins/site-packages/typing.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …_party/lib/python3.12/site-packages/third_party_lib.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …n/test_files/safe_delete_file_relative/pkg/__init__.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …on/test_files/package_from_import_noop/pkg/__init__.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …nteraction/test_files/baseline_new_errors/new_error.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …nteraction/test_files/baseline_new_errors/clean_fix.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …eraction/test_files/baseline_unused_type_ignore/bad.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …eraction/test_files/deep_submodule_chain/a/__init__.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …action/test_files/deep_submodule_chain/a/b/__init__.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …erpreter/lib/python3.12/site-packages/custom_module.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …iles/filtering_stdlib_errors_with_default/pyrefly.toml | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …_errors_with_default/usr/lib/python3.12/stdlib_file.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …action/test_files/baseline_unused_ignore_prune/keep.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …n/test_files/baseline_unused_ignore_prune/clean_fix.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| 536 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test.py | 12 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/setters.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/validators.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 25 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 26 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 26 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 26 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/exceptions.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/converters.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attrs/filters.py | 3 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 10 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 10 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 10 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 10 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 10 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 11 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 12 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 12 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 13 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 13 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 13 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 13 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 13 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 14 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 14 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 14 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 14 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 14 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 14 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 14 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 14 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/exceptions.py | 3 | CODE | |
| 685 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | layernorm but with an optional bias. generic over normalized dimension size. | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | layernorm but with an optional bias. generic over normalized dimension size. | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | layernorm but with an optional bias. generic over normalized dimension size. | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | layernorm but with an optional bias. generic over normalized dimension size. | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | layernorm but with an optional bias. generic over normalized dimension size. | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | configuration for gpt model, generic over key dimensions | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | configuration for gpt model, generic over key dimensions | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | configuration for gpt model, generic over key dimensions | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | configuration for gpt model, generic over key dimensions | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | configuration for gpt model, generic over key dimensions | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | multi-head causal self-attention. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | multi-head causal self-attention. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | multi-head causal self-attention. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | multi-head causal self-attention. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | multi-head causal self-attention. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | multi-layer perceptron. generic over embedding dimension. | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | multi-layer perceptron. generic over embedding dimension. | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | multi-layer perceptron. generic over embedding dimension. | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | multi-layer perceptron. generic over embedding dimension. | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | multi-layer perceptron. generic over embedding dimension. | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | transformer block with self-attention and mlp. generic over embedding dim, num heads, and block size. | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | typeddict for gptconfig constructor arguments, generic over key dimensions | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | typeddict for gptconfig constructor arguments, generic over key dimensions | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | typeddict for gptconfig constructor arguments, generic over key dimensions | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | typeddict for gptconfig constructor arguments, generic over key dimensions | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | typeddict for gptconfig constructor arguments, generic over key dimensions | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | typeddict defining the structure of gpt transformer modules. generic over key dimensions. | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | typeddict defining the structure of gpt transformer modules. generic over key dimensions. | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | typeddict defining the structure of gpt transformer modules. generic over key dimensions. | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | typeddict defining the structure of gpt transformer modules. generic over key dimensions. | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | typeddict defining the structure of gpt transformer modules. generic over key dimensions. | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers. | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers. | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers. | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers. | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | gpt language model. generic over vocabulary size, block size, embedding dim, num heads, and num layers. | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted. | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted. | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted. | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted. | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | return the number of parameters in the model. for non-embedding count (default), the position embeddings get subtracted. | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | estimate model flops utilization (mfu) in units of a100 bfloat16 peak flops | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | estimate model flops utilization (mfu) in units of a100 bfloat16 peak flops | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | estimate model flops utilization (mfu) in units of a100 bfloat16 peak flops | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | estimate model flops utilization (mfu) in units of a100 bfloat16 peak flops | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | estimate model flops utilization (mfu) in units of a100 bfloat16 peak flops | STRING |
| HIGH | tensor-shapes/pyrefly-torch-stubs/examples/nanogpt.py | 0 | take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, | STRING |
| HIGH | …stubs/examples/runtime/nanogpt_sym_int_var_runnable.py | 0 | take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, | STRING |
| HIGH | …h-stubs/examples/runtime/nanogpt_future_annotations.py | 0 | take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, | STRING |
| HIGH | …xamples/runtime/nanogpt_future_annotations_runnable.py | 0 | take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, | STRING |
| HIGH | …ly-torch-stubs/examples/runtime/nanogpt_sym_int_var.py | 0 | take a conditioning sequence of indices idx (longtensor of shape (b,t)) and complete the sequence max_new_tokens times, | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_make.py | 580 | Create a new instance, based on the first positional argument with *changes* applied. .. tip:: On | STRING |
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_make.py | 1886 | Return the tuple of *attrs* attributes for a class. The tuple also allows accessing the fields by their names | STRING |
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_make.py | 1932 | Return an ordered dictionary of *attrs* attributes for a class, whose keys are the attribute names. Args: | STRING |
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_next_gen.py | 652 | Inspect the class and return its effective build parameters. Warning: This feature is currently **expe | STRING |
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_funcs.py | 36 | Return the *attrs* attribute values of *inst* as a dict. Optionally recurse into other *attrs*-decorated class | STRING |
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_funcs.py | 239 | Return the *attrs* attribute values of *inst* as a tuple. Optionally recurse into other *attrs*-decorated clas | STRING |
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_funcs.py | 355 | Check whether *cls* is a class with *attrs* attributes. Args: cls (type): Class to introspect. Ra | STRING |
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_funcs.py | 383 | Copy *inst* and apply *changes*. This is different from `evolve` that applies the changes to the arguments | STRING |
| HIGH | pyrefly/lib/test/attrs/third-party/attr/_funcs.py | 428 | Resolve any strings and forward annotations in type annotations. This is only required if you need concrete ty | STRING |
| HIGH | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 293 | Create a new `FieldInfo` object with the `Field` function. Args: default: The default value for the | STRING |
| HIGH | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 638 | Return a new `FieldInfo` instance from a `dataclasses.Field` instance. Args: dc_field: The `datacla | STRING |
| HIGH | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1195 | !!! abstract "Usage Documentation" [Fields](../concepts/fields.md) Create a field for objects that can be c | STRING |
| HIGH | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1487 | !!! abstract "Usage Documentation" [Private Model Attributes](../concepts/models.md#private-model-attributes) | STRING |
| HIGH | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1664 | !!! abstract "Usage Documentation" [The `computed_field` decorator](../concepts/fields.md#the-computed_field-dec | STRING |
| HIGH | …y/lib/test/pydantic/third-party/pydantic/root_model.py | 87 | Create a new model using the provided root object and update fields set. Args: root: The root objec | STRING |
| HIGH | …/lib/test/pydantic/third-party/pydantic/dataclasses.py | 113 | !!! abstract "Usage Documentation" [`dataclasses`](../concepts/dataclasses.md) A decorator used to create a | STRING |
| HIGH | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 608 | Compute the class name for parametrizations of generic classes. This method can be overridden to achieve a cust | STRING |
| HIGH | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 730 | Validate a pydantic model instance. Args: obj: The object to validate. strict: Whether | STRING |
| HIGH | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 774 | !!! abstract "Usage Documentation" [JSON Parsing](../concepts/json.md#json-parsing) Validate the gi | STRING |
| HIGH | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 1891 | !!! abstract "Usage Documentation" [Dynamic Model Creation](../concepts/models.md#dynamic-model-creation) D | STRING |
| HIGH | …/third-party/pydantic/_internal/_model_construction.py | 481 | Iterate over the namespace and: * gather private attributes * check for items which look like fields but are not | STRING |
| HIGH | …/third-party/pydantic/_internal/_model_construction.py | 705 | Finish building a model class. This logic must be called after class has been created since validation functions mu | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/lib/test/returns.rs | 162 | except Exception: | CODE |
| LOW | pyrefly/lib/test/paramspec.rs | 488 | except Exception: | CODE |
| LOW | pyrefly/lib/test/attributes.rs | 3232 | except Exception: | CODE |
| LOW | pyrefly/lib/test/scope.rs | 990 | except Exception as e1: | CODE |
| LOW | pyrefly/lib/test/scope.rs | 998 | except Exception as e2: | CODE |
| LOW⚡ | pyrefly/lib/test/scope.rs | 1010 | except Exception: | CODE |
| LOW⚡ | pyrefly/lib/test/scope.rs | 1020 | except Exception: | CODE |
| LOW | pyrefly/lib/test/scope.rs | 1036 | except Exception: | CODE |
| LOW | pyrefly/lib/test/scope.rs | 1048 | except Exception: | CODE |
| MEDIUM | pyrefly/lib/test/scope.rs | 987 | def try_except(): | CODE |
| MEDIUM | pyrefly/lib/test/scope.rs | 995 | def try_except_finally(): | CODE |
| MEDIUM | pyrefly/lib/test/scope.rs | 1005 | def try_except_twice(): | CODE |
| MEDIUM | pyrefly/lib/test/scope.rs | 1015 | def try_except_multiple_finally(): | CODE |
| MEDIUM | pyrefly/lib/test/scope.rs | 1031 | def try_except_else(): | CODE |
| MEDIUM | pyrefly/lib/test/scope.rs | 1043 | def try_except_else_finally(): | CODE |
| LOW | pyrefly/lib/test/flow_branching.rs | 497 | except Exception as e2: | CODE |
| LOW | pyrefly/lib/test/flow_branching.rs | 616 | except Exception: # E: This `except` clause is unreachable, because an earlier clause already catches `BaseException` | CODE |
| LOW | pyrefly/lib/test/flow_branching.rs | 626 | except Exception: | CODE |
| LOW | pyrefly/lib/test/flow_branching.rs | 646 | except Exception: | CODE |
| LOW | pyrefly/lib/test/flow_branching.rs | 676 | except Exception: | CODE |
| LOW | pyrefly/lib/test/flow_branching.rs | 763 | except Exception: | CODE |
| LOW | pyrefly/lib/test/flow_branching.rs | 2997 | except Exception: | CODE |
| LOW | pyrefly/lib/test/flow_branching.rs | 3014 | except Exception as exc: | CODE |
| LOW | pyrefly/lib/test/flow_branching.rs | 3019 | except Exception: | CODE |
| MEDIUM | pyrefly/lib/test/flow_branching.rs | 784 | def as_sibling() -> None: | CODE |
| LOW | pyrefly/lib/test/attrs/third-party/attr/validators.py | 713 | except Exception: # noqa: BLE001, PERF203, S112 | STRING |
| LOW | pyrefly/lib/test/lsp/folding_ranges.rs | 266 | except Exception: | CODE |
| LOW | pyrefly/lib/test/lsp/folding_ranges.rs | 357 | except Exception: | CODE |
| LOW | pyrefly/lib/test/lsp/semantic_tokens.rs | 1350 | except Exception as e: | CODE |
| LOW | pyrefly/lib/test/lsp/semantic_tokens.rs | 1891 | except Exception as e: | CODE |
| LOW | pyrefly/lib/test/lsp/local_find_refs.rs | 308 | except Exception: | CODE |
| LOW | pyrefly/lib/test/lsp/definition.rs | 611 | except Exception as e: | CODE |
| LOW | pyrefly/lib/test/lsp/document_symbols.rs | 2039 | except Exception: | CODE |
| LOW | …iles/tests_requiring_config/with_synthetic_bindings.py | 10 | except Exception: | CODE |
| LOW | pyrefly/lib/report/glean.rs | 142 | except Exception as ex: | CODE |
| LOW | …ates/tsp_types/protocol_generator/generate_protocol.py | 240 | except Exception as e: | CODE |
| LOW | …ates/tsp_types/protocol_generator/generate_protocol.py | 965 | except Exception as e: | CODE |
| LOW | crates/pyrefly_bundled/update.py | 67 | except Exception as e: | CODE |
| MEDIUM | test/sarif/validate_sarif.py | 45 | print("Error: Required packages not installed.") | CODE |
| MEDIUM | schemas/validate_schemas.py | 30 | print("Error: Required packages not installed.") | CODE |
| LOW | scripts/github_utils.py | 242 | except Exception as e: | CODE |
| LOW | scripts/github_utils.py | 351 | except Exception as e: | CODE |
| LOW | scripts/github_utils.py | 540 | except Exception as e: | CODE |
| LOW | scripts/github_utils.py | 602 | except Exception as e: | CODE |
| MEDIUM | scripts/github_utils.py | 731 | print("Error: Repository must be in format owner/repo", file=sys.stderr) | STRING |
| LOW | scripts/github_utils.py | 776 | except Exception as e: | STRING |
| LOW | scripts/github_utils.py | 920 | except Exception as e: | STRING |
| LOW | scripts/compare_typecheckers.py | 801 | except Exception as e: | CODE |
| LOW | scripts/generate_release_notes.py | 113 | except Exception: | CODE |
| LOW | scripts/generate_release_notes.py | 135 | except Exception as e: | CODE |
| MEDIUM | scripts/generate_release_notes.py | 560 | print(f"Error: Unknown provider '{provider}'.", file=sys.stderr) | CODE |
| MEDIUM | scripts/generate_release_notes.py | 574 | print(f"Error: Template file not found: {template_path}", file=sys.stderr) | CODE |
| MEDIUM | scripts/generate_release_notes.py | 580 | print(f"Error: Prompt file not found: {prompt_path}", file=sys.stderr) | CODE |
| MEDIUM | scripts/generate_release_notes.py | 694 | print("Error: Repository must be in 'owner/repo' format.", file=sys.stderr) | CODE |
| LOW | scripts/generate_release_notes.py | 732 | except Exception as e: | CODE |
| MEDIUM | scripts/sandbox_links.py | 31 | print("Error: lzstring package required. Install with: pip install lzstring") | CODE |
| LOW⚡ | scripts/benchmark/lsp_memory_benchmark.py | 309 | except Exception: | CODE |
| MEDIUM | scripts/benchmark/lsp_memory_benchmark.py | 304 | def shutdown(self) -> None: | CODE |
| MEDIUM | scripts/benchmark/typecheck_benchmark.py | 275 | print(f"Error: {install_envs_file} not found") | CODE |
| MEDIUM | scripts/benchmark/typecheck_benchmark.py | 754 | print("Error: No packages found in install_envs.json") | CODE |
| 28 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/lib/test/lsp/lsp_interaction/notebook_sync.rs | 297 | // Step 1: Delete cell 2 | COMMENT |
| LOW | pyrefly/lib/test/lsp/lsp_interaction/notebook_sync.rs | 317 | // Step 2: Insert cell 2 at position 0 | COMMENT |
| LOW | pyrefly/lib/report/pysa/module_index.rs | 142 | // Step 1: Build short_identifier_to_function_ref and short_identifier_to_setter_ref | COMMENT |
| LOW | pyrefly/lib/report/pysa/module_index.rs | 181 | // Step 2: Build func_def_to_function_ref by iterating all | COMMENT |
| LOW | pyrefly/lib/report/pysa/module_index.rs | 197 | // Step 3: Build class field mappings. | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 330 | // Step 1: eliminate overloads that accept an incompatible number of arguments. | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 364 | // Step 2: evaluate each overload as a regular (non-overloaded) call. | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 379 | // Step 3: argument type expansion. When the mypy-compatibility flag is on, we also | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 900 | // Step 4: if any arguments supply an unknown number of args and at least one | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 934 | // Step 5: for each overload, check whether it's the case that all possible | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 1074 | // Step 6: does there exist a return type that is consistent with all materializations of | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 1710 | // Step 1: Expand non-recursive UntypedAlias(Ref(...)) nodes by | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 1720 | // Step 2: Check for cyclic self-references after expansion. | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2432 | // Step 1: Compute raw TypeInfo (Vars unpinned) | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2435 | // Step 2: Check whether the type actually contains partial types that | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2454 | // Step 3: Store partial answer that the first-use solve will read and potentially pin. | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2457 | // Step 4: Evaluate the first-use; throw away both the result and errors, this is | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2467 | // Step 5: Remove the partial answer, we've finished with it, and proceed to | COMMENT |
| LOW | pyrefly/lib/alt/solve.rs | 1733 | // Step 3: Extract type parameters from the (now expanded) body. | COMMENT |
| LOW | …s/skills/add-shape-types-to-torch-model/style_guide.md | 113 | ### Step 1: Identify the degrees of freedom | COMMENT |
| LOW | …s/skills/add-shape-types-to-torch-model/style_guide.md | 136 | ### Step 2: Type the constructor | COMMENT |
| LOW | …s/skills/add-shape-types-to-torch-model/style_guide.md | 150 | ### Step 3: Type the forward signature | COMMENT |
| LOW | …-shapes/skills/add-shape-types-to-torch-model/SKILL.md | 301 | ## Step 1: Inventory parameters | COMMENT |
| LOW | …-shapes/skills/add-shape-types-to-torch-model/SKILL.md | 388 | ## Step 2: Type the constructor | COMMENT |
| LOW | …-shapes/skills/add-shape-types-to-torch-model/SKILL.md | 496 | ## Step 3: Probe the forward | COMMENT |
| LOW | …-shapes/skills/add-shape-types-to-torch-model/SKILL.md | 532 | ## Step 4: Diagnose and contain tracking boundaries | COMMENT |
| LOW | …-shapes/skills/add-shape-types-to-torch-model/SKILL.md | 634 | ## Step 5: Write forward and assert_type | COMMENT |
| LOW | …-shapes/skills/add-shape-types-to-torch-model/SKILL.md | 710 | ## Step 6: Post-module check | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 646 | // Step 2: Flatten to list of terms | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 652 | // Step 3: Combine like terms by extracting coefficients | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 662 | // Step 4: Rebuild terms, filtering out zero coefficients | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 684 | // Step 5: Sort terms by canonical order | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 687 | // Step 6: Build result | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 781 | // Step 1: Recursively canonicalize operands | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 785 | // Step 2: Flatten to list of factors | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 790 | // Step 3: Check for zero | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 798 | // Step 4: Separate literals from non-literals | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 898 | // Step 6: Sort factors by canonical order | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 901 | // Step 7: Add literal coefficient if not 1 | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 908 | // Step 8: Build result | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 934 | // Step 1: Canonicalize operands | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 938 | // Step 2: Check if numerator is a division - if so, flatten only when the | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1104 | // Step 1: Separate literals from non-literals | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1108 | // Step 2: Apply GCD to literals | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1118 | // Step 3: Find and remove structurally equal non-literal factors | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1131 | // Step 4: Rebuild numerator | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1137 | // Step 5: Rebuild denominator | COMMENT |
| LOW | crates/pyrefly_types/src/dimension.rs | 635 | // Step 1: Recursively canonicalize operands | COMMENT |
| LOW | crates/pyrefly_types/src/dimension.rs | 858 | // Step 5: Distributive law — coeff * (a + b) → coeff*a + coeff*b | COMMENT |
| LOW | crates/pyrefly_types/src/dimension.rs | 949 | // Step 4: Apply simplifications | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/lib/test/lsp/lsp_interaction/notebook_sync.rs | 297 | // Step 1: Delete cell 2 | COMMENT |
| LOW | pyrefly/lib/test/lsp/lsp_interaction/notebook_sync.rs | 317 | // Step 2: Insert cell 2 at position 0 | COMMENT |
| LOW | pyrefly/lib/report/pysa/module_index.rs | 142 | // Step 1: Build short_identifier_to_function_ref and short_identifier_to_setter_ref | COMMENT |
| LOW | pyrefly/lib/report/pysa/module_index.rs | 181 | // Step 2: Build func_def_to_function_ref by iterating all | COMMENT |
| LOW | pyrefly/lib/report/pysa/module_index.rs | 197 | // Step 3: Build class field mappings. | COMMENT |
| LOW | pyrefly/lib/alt/attr.rs | 2382 | // `module_name` could refer to a package, in which case we need to check if | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 330 | // Step 1: eliminate overloads that accept an incompatible number of arguments. | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 364 | // Step 2: evaluate each overload as a regular (non-overloaded) call. | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 379 | // Step 3: argument type expansion. When the mypy-compatibility flag is on, we also | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 900 | // Step 4: if any arguments supply an unknown number of args and at least one | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 934 | // Step 5: for each overload, check whether it's the case that all possible | COMMENT |
| LOW | pyrefly/lib/alt/overload.rs | 1074 | // Step 6: does there exist a return type that is consistent with all materializations of | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 1710 | // Step 1: Expand non-recursive UntypedAlias(Ref(...)) nodes by | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 1720 | // Step 2: Check for cyclic self-references after expansion. | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2432 | // Step 1: Compute raw TypeInfo (Vars unpinned) | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2435 | // Step 2: Check whether the type actually contains partial types that | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2454 | // Step 3: Store partial answer that the first-use solve will read and potentially pin. | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2457 | // Step 4: Evaluate the first-use; throw away both the result and errors, this is | COMMENT |
| LOW⚡ | pyrefly/lib/alt/solve.rs | 2467 | // Step 5: Remove the partial answer, we've finished with it, and proceed to | COMMENT |
| LOW | pyrefly/lib/alt/solve.rs | 1733 | // Step 3: Extract type parameters from the (now expanded) body. | COMMENT |
| LOW | pyrefly/lib/alt/special_calls.rs | 606 | // We need to check if there is any field with unassignable types, since the `isinstance` check | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 646 | // Step 2: Flatten to list of terms | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 652 | // Step 3: Combine like terms by extracting coefficients | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 662 | // Step 4: Rebuild terms, filtering out zero coefficients | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 684 | // Step 5: Sort terms by canonical order | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 687 | // Step 6: Build result | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 781 | // Step 1: Recursively canonicalize operands | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 785 | // Step 2: Flatten to list of factors | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 790 | // Step 3: Check for zero | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 798 | // Step 4: Separate literals from non-literals | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 898 | // Step 6: Sort factors by canonical order | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 901 | // Step 7: Add literal coefficient if not 1 | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 908 | // Step 8: Build result | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 934 | // Step 1: Canonicalize operands | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 938 | // Step 2: Check if numerator is a division - if so, flatten only when the | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1104 | // Step 1: Separate literals from non-literals | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1108 | // Step 2: Apply GCD to literals | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1118 | // Step 3: Find and remove structurally equal non-literal factors | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1131 | // Step 4: Rebuild numerator | COMMENT |
| LOW⚡ | crates/pyrefly_types/src/dimension.rs | 1137 | // Step 5: Rebuild denominator | COMMENT |
| LOW | crates/pyrefly_types/src/dimension.rs | 635 | // Step 1: Recursively canonicalize operands | COMMENT |
| LOW | crates/pyrefly_types/src/dimension.rs | 858 | // Step 5: Distributive law — coeff * (a + b) → coeff*a + coeff*b | COMMENT |
| LOW | crates/pyrefly_types/src/dimension.rs | 949 | // Step 4: Apply simplifications | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 379 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 1319 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 2143 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 666 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 813 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 849 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 1435 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_funcs.py | 28 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_funcs.py | 154 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_funcs.py | 232 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 485 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 569 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 733 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 838 | CODE | |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/types.py | 1017 | CODE | |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 335 | CODE | |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 424 | CODE | |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 1514 | CODE | |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 1134 | CODE | |
| LOW | …/third-party/pydantic/_internal/_model_construction.py | 474 | CODE | |
| LOW | …/third-party/pydantic/_internal/_model_construction.py | 108 | CODE | |
| LOW | tensor-shapes/stub_coverage.py | 156 | CODE | |
| LOW | tensor-shapes/stub_coverage.py | 191 | CODE | |
| LOW | tensor-shapes/stub_coverage.py | 218 | CODE | |
| LOW | tensor-shapes/stub_coverage.py | 285 | CODE | |
| LOW | tensor-shapes/stub_coverage.py | 339 | CODE | |
| LOW | tensor-shapes/test_stub_coverage.py | 34 | CODE | |
| LOW | tensor-shapes/test_stub_coverage.py | 265 | CODE | |
| LOW | tensor-shapes/test_stub_coverage.py | 306 | CODE | |
| LOW | tensor-shapes/test_stub_coverage.py | 347 | CODE | |
| LOW | tensor-shapes/test_stub_coverage.py | 468 | CODE | |
| LOW | …refly-shape-extensions/shape_extensions/torchscript.py | 47 | CODE | |
| LOW | …refly-shape-extensions/shape_extensions/torchscript.py | 69 | CODE | |
| LOW | …refly-shape-extensions/shape_extensions/torchscript.py | 87 | CODE | |
| LOW | …ates/tsp_types/protocol_generator/generate_protocol.py | 62 | CODE | |
| LOW | …ates/tsp_types/protocol_generator/generate_protocol.py | 299 | CODE | |
| LOW | …ates/tsp_types/protocol_generator/generate_protocol.py | 403 | CODE | |
| LOW | …ates/tsp_types/protocol_generator/generate_protocol.py | 547 | CODE | |
| LOW | …ates/tsp_types/protocol_generator/generate_protocol.py | 726 | CODE | |
| LOW | scripts/github_utils.py | 87 | CODE | |
| LOW | scripts/github_utils.py | 562 | CODE | |
| LOW | scripts/github_utils.py | 784 | CODE | |
| LOW | scripts/github_utils.py | 356 | CODE | |
| LOW | scripts/compare_typecheckers.py | 213 | CODE | |
| LOW | scripts/compare_typecheckers.py | 494 | CODE | |
| LOW | scripts/generate_release_notes.py | 367 | CODE | |
| LOW | scripts/benchmark/lsp_memory_benchmark.py | 101 | CODE | |
| LOW | scripts/benchmark/lsp_memory_benchmark.py | 793 | CODE | |
| LOW | scripts/benchmark/lsp_memory_benchmark.py | 252 | CODE | |
| LOW | scripts/benchmark/typecheck_benchmark.py | 303 | CODE | |
| LOW | scripts/benchmark/typecheck_benchmark.py | 526 | CODE | |
| LOW | scripts/benchmark/typecheck_benchmark.py | 837 | CODE | |
| LOW | scripts/benchmark/lsp_benchmark.py | 189 | CODE | |
| LOW | scripts/benchmark/lsp_benchmark.py | 384 | CODE | |
| LOW | scripts/benchmark/lsp_benchmark.py | 1024 | CODE | |
| LOW | scripts/benchmark/lsp_benchmark.py | 1055 | CODE | |
| LOW | scripts/benchmark/lsp_benchmark.py | 1405 | CODE | |
| LOW | scripts/benchmark/lsp_benchmark.py | 523 | CODE | |
| LOW | scripts/benchmark/lsp_benchmark.py | 701 | CODE | |
| LOW | conformance/conformance_output.py | 130 | CODE | |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | pyrefly/lib/test/literal.rs | 513 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 513 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 514 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 514 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 515 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 515 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 516 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 516 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 517 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 517 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 518 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 518 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 519 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 519 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 520 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 520 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 521 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 521 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 522 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 522 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 523 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 523 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 524 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 524 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 525 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 525 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 526 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 526 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 527 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW⚡ | pyrefly/lib/test/literal.rs | 527 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliq | CODE |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/config.py | 78 | user = User(name='John Doe', age=20) # (2)! | STRING |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/config.py | 80 | #> name='John Doe' | STRING |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/config.py | 260 | user = User(name='John Doe') # (1)! | STRING |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/config.py | 262 | #> name='John Doe' | STRING |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/config.py | 279 | user = User(name='John Doe') # (2)! | STRING |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/config.py | 281 | #> name='John Doe' | STRING |
| LOW | crates/pyrefly_types/src/types.rs | 1693 | /// Collect "placeholder" vars - vars that are placeholders for a not-yet-solved type, like | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 106 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 1319 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 2483 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_next_gen.py | 23 | CODE | |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_next_gen.py | 437 | CODE | |
| LOW | …p_interaction/test_files/call_hierarchy_test/caller.py | 15 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 922 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 961 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1000 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1039 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1078 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1117 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1154 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1634 | CODE | |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1649 | CODE | |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/types.py | 1041 | CODE | |
| LOW | …y/lib/test/pydantic/third-party/pydantic/root_model.py | 137 | CODE | |
| LOW | …/lib/test/pydantic/third-party/pydantic/dataclasses.py | 99 | CODE | |
| LOW | …/lib/test/pydantic/third-party/pydantic/dataclasses.py | 33 | CODE | |
| LOW | …/lib/test/pydantic/third-party/pydantic/dataclasses.py | 50 | CODE | |
| LOW | …/lib/test/pydantic/third-party/pydantic/dataclasses.py | 69 | CODE | |
| LOW | …/lib/test/pydantic/third-party/pydantic/dataclasses.py | 84 | CODE | |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 460 | CODE | |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 518 | CODE | |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 1458 | CODE | |
| LOW | …sor-shapes/pyrefly-torch-stubs/examples/super_slomo.py | 223 | CODE | |
| LOW | tensor-shapes/pyrefly-torch-stubs/examples/densenet.py | 82 | CODE | |
| LOW | tensor-shapes/pyrefly-torch-stubs/examples/stargan.py | 148 | CODE | |
| LOW | tensor-shapes/pyrefly-torch-stubs/examples/resnet.py | 54 | CODE | |
| LOW | tensor-shapes/pyrefly-torch-stubs/examples/resnet.py | 86 | CODE | |
| LOW | tensor-shapes/pyrefly-torch-stubs/examples/apg.py | 199 | CODE | |
| LOW | tensor-shapes/pyrefly-torch-stubs/examples/apg.py | 293 | CODE | |
| LOW | tensor-shapes/pyrefly-torch-stubs/examples/gptfast.py | 584 | CODE | |
| LOW | …stubs/examples/runtime/gptfast_sym_int_var_runnable.py | 535 | CODE | |
| LOW | …ly-torch-stubs/examples/runtime/gptfast_sym_int_var.py | 591 | CODE | |
| LOW | …xamples/runtime/gptfast_future_annotations_runnable.py | 545 | CODE | |
| LOW | …h-stubs/examples/runtime/gptfast_future_annotations.py | 587 | CODE | |
| LOW | scripts/benchmark/typecheck_benchmark.py | 718 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pyrefly/lib/test/attrs/attributes.rs | 289 | // Checked via construction (not the inferred param type) to stay robust to the separate | COMMENT |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/types.py | 1745 | # hence we just use `secret_display` | COMMENT |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 1288 | # early if there are no keys to ignore (we would just return False later on anyway) | COMMENT |
| MEDIUM | pyrefly/lib/solver/subset.rs | 3017 | // Pyrefly incremental more robust. | COMMENT |
| MEDIUM | pyrefly/lib/state/lsp.rs | 511 | /// downstream logic can utilize the info. | COMMENT |
| MEDIUM | pyrefly/lib/alt/answers_solver.rs | 1562 | /// (cycle_start), making it a robust anchor. | COMMENT |
| MEDIUM | pyrefly/lib/alt/answers_solver.rs | 1611 | // (cycle_start), making it a more robust anchor. | COMMENT |
| MEDIUM | pyrefly/lib/alt/class/dataclass.rs | 527 | // left to the stub, avoiding false positives and staying robust to new `Type` variants. | COMMENT |
| LOW⚡ | …pes/pyrefly-torch-stubs/examples/speech_transformer.py | 365 | # so we skip adding it and just pass through. The original adds it to src_seq. | COMMENT |
| MEDIUM | crates/pyrefly_lsp_test/src/object_model.rs | 1353 | #[expect(clippy::new_without_default, reason = "test harness constructor")] | COMMENT |
| MEDIUM | crates/pyrefly_lsp_test/src/object_model.rs | 1423 | #[expect(clippy::new_without_default, reason = "test harness constructor")] | COMMENT |
| MEDIUM | conformance/third_party/generics_variance.py | 10 | # > To facilitate the declaration of container types where covariant or | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/lib/test/attrs/third-party/attrs/__init__.py | 31 | __all__ = [ | CODE |
| LOW | pyrefly/lib/test/attrs/third-party/attr/validators.py | 19 | __all__ = [ | CODE |
| LOW | pyrefly/lib/test/attrs/third-party/attr/__init__.py | 43 | __all__ = [ | CODE |
| LOW | pyrefly/lib/test/attrs/third-party/attr/converters.py | 13 | __all__ = [ | CODE |
| LOW | pyrefly/lib/test/attrs/third-party/attr/_config.py | 3 | __all__ = ["get_run_validators", "set_run_validators"] | CODE |
| LOW | …ction/test_files/prefer_pyi_when_missing_in_py/main.py | 8 | __all__ = ["bar"] | CODE |
| LOW | …p_interaction/test_files/unused_import_all/__init__.py | 8 | __all__ = ["Foo", "Baz"] | CODE |
| LOW | …rt_outside_search_path/site_packages/mypkg/__init__.py | 8 | __all__ = ["MyClass"] | CODE |
| LOW | …ng_config/workspace_symbol_prefer_non_init/__init__.py | 12 | __all__ = [ | CODE |
| LOW | …equiring_config/workspace_symbol_multibyte/__init__.py | 12 | __all__ = ["workspace_symbol_multibyte_repro"] | CODE |
| LOW | …action/test_files/dunder_all_submodule/pkg/__init__.py | 6 | __all__ = ["sub"] | CODE |
| LOW | …est/pydantic/third-party/pydantic_settings/__init__.py | 7 | __all__ = ["BaseSettings"] | CODE |
| LOW | …refly/lib/test/pydantic/third-party/pydantic/fields.py | 1564 | def _update_from_config(self, config_wrapper: ConfigWrapper, name: str) -> None: | CODE |
| LOW | pyrefly/lib/test/pydantic/third-party/pydantic/main.py | 1777 | def update_forward_refs(cls, **localns: Any) -> None: # noqa: D102 | CODE |
| LOW | …/third-party/pydantic/_internal/_model_construction.py | 627 | def set_default_hash_func(cls: type[BaseModel], bases: tuple[type[Any], ...]) -> None: | CODE |
| LOW | …/third-party/pydantic/_internal/_model_construction.py | 818 | def set_deprecated_descriptors(cls: type[BaseModel]) -> None: | CODE |
| LOW | pyrefly/lib/test/stubgen/dunder_all/input.py | 8 | __all__ = ["public_func", "PublicClass", "PUBLIC_VAR", "Vector"] | CODE |
| LOW | pyrefly/lib/test/stubgen/dunder_all_reexport/input.py | 8 | __all__ = ["op"] | CODE |
| LOW⚡ | tensor-shapes/test_stub_coverage.py | 147 | __all__ = [] | STRING |
| LOW⚡ | tensor-shapes/test_stub_coverage.py | 179 | __all__ = ["Previous"] | STRING |
| LOW⚡ | tensor-shapes/test_stub_coverage.py | 180 | __all__ = ["Current"] | STRING |
| LOW⚡ | tensor-shapes/test_stub_coverage.py | 219 | __all__ = ["Hidden"] | STRING |
| LOW | tensor-shapes/test_stub_coverage.py | 84 | __all__ = ["Exported"] | STRING |
| LOW | tensor-shapes/test_stub_coverage.py | 122 | __all__ = ["Alias"] | STRING |
| LOW | …/pyrefly-shape-extensions/shape_extensions/__init__.py | 37 | __all__ = [ | CODE |
| LOW | …refly-shape-extensions/shape_extensions/torchscript.py | 33 | __all__ = [*_shape_extensions_all, "remove_shape_types_from_torch_sources"] | CODE |
| LOW | tensor-shapes/pyrefly-torch-stubs/examples/bert.py | 284 | def set_mask(self, mask: Tensor) -> None: | CODE |
| LOW | conformance/conformance_output.py | 48 | def update_file(file_path: str, content: str) -> None: | CODE |
| LOW | conformance/third_party/typeddicts_readonly_update.py | 33 | def update_a(a: A, b: B) -> None: | CODE |
| LOW | conformance/third_party/generics_variance_inference.py | 145 | def set_value(self, value: T) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …test/lsp/lsp_interaction/test_files/error_docs_test.py | 7 | # This file contains various error types to test that documentation links are properly included | COMMENT |
| MEDIUM | pyrefly/lib/test/pydantic/third-party/pydantic/types.py | 984 | # Create an instance | STRING |
| MEDIUM | …y/lib/test/pydantic/third-party/pydantic/root_model.py | 152 | """This method is included just to get a more accurate return type for type checkers. | STRING |
| MEDIUM | …/third-party/pydantic/_internal/_model_construction.py | 443 | """This function is meant to behave like a BaseModel method to initialise private attributes. | STRING |
| MEDIUM | tensor-shapes/pyrefly-torch-stubs/examples/dlrm.py | 372 | # Create a standard EmbeddingBag and prepare for quantization | COMMENT |
| MEDIUM | …ates/tsp_types/protocol_generator/generate_protocol.py | 508 | # Create an alias for the result type that matches the response name | COMMENT |
| MEDIUM | schemas/test-pyrefly.toml | 2 | # This file contains examples of all configuration options | COMMENT |
| MEDIUM | scripts/benchmark/lsp_benchmark.py | 846 | # Create a small probe file | COMMENT |
| MEDIUM | .github/workflows/publish_github_release.yml | 7 | # Creating the release will in turn trigger publish_upload_binaries.yml | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | release_notes/release-notes-v1.0.0.md | 103 | - **Pyrefly \+ AI agents** — Pyrefly's speed makes it a natural verification step in agentic workflows. See our guide on | CODE |
| MEDIUM | website/blog/2026-05-12-v1.0.md | 143 | We have already published a guide on [adding Pyrefly to your agentic loop](https://pyrefly.org/blog/pyrefly-agentic-loop | CODE |
| MEDIUM⚡ | scripts/benchmark/typecheck_benchmark.py | 714 | # Main benchmark orchestration | COMMENT |
| MEDIUM⚡ | scripts/benchmark/lsp_benchmark.py | 950 | # Multi-package orchestration helpers | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | pyrefly/lib/state/state.rs | 3252 | if self.transaction.data.state.run_count.load(Ordering::SeqCst) <= 1 { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | conformance/third_party/directives_version_platform.py | 66 | this_raises = val10 # E?: `val10` is undefined, but support for `os.name` is optional | CODE |
| HIGH | conformance/third_party/directives_version_platform.py | 75 | this_raises = val13 # E?: `val13` is undefined, but support for `os.name` is optional | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/lib/test/generic_restrictions.rs | 1689 | # The below is a real error that we need to make sure to catch. | COMMENT |
| LOW | pyrefly/lib/test/flow_branching.rs | 409 | // Regression test to ensure we don't forget to create loop recursion | COMMENT |
| MEDIUM | pyrefly/lib/test/attrs/third-party/attr/_funcs.py | 496 | # Return the class so you can use it as a decorator too. | COMMENT |
| MEDIUM | conformance/third_party/generics_type_erasure.py | 25 | # > you can use an annotation to force the type of the variable, e.g.: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyrefly/lib/test/attrs/third-party/attr/_make.py | 698 | # Check if the pre init method has more arguments than just `self` | COMMENT |
| LOW | …s/skills/add-shape-types-to-torch-model/verify_port.sh | 99 | # Check if the line has a comment explaining the root cause | COMMENT |
| LOW | …ates/tsp_types/protocol_generator/generate_protocol.py | 51 | # Check if it's a version string like "0.1.0" | COMMENT |
| LOW | website/scripts/audit_and_fix_vulnerabilities.sh | 20 | # Check if there are vulnerabilities | COMMENT |
| LOW | scripts/github_utils.py | 53 | # Check if username ends with [bot] | COMMENT |
| LOW | scripts/benchmark/lsp_benchmark.py | 1464 | # Open the file on each server | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pyrefly/lib/alt/call.rs | 2713 | // log a name-not-found error, but we also assert/reveal the type as requested. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …lsp_interaction/test_files/code_lens/main_and_tests.py | 9 | def helper(): | CODE |
| LOW | …action/test_files/prefixed_with_underscore/_private.py | 7 | def my_function(): | CODE |
| LOW | …p_interaction/test_files/call_hierarchy_test/callee.py | 7 | def my_function(): | CODE |
| LOW | …components/landing-page/PerformanceComparisonChart.tsx | 128 | function getData(project: ProjectValue): TypeCheckerData[] { | CODE |
| LOW | conformance/third_party/literals_parameterizations.py | 56 | def my_function(x: Literal[1 + 2]) -> int: # E | CODE |
| LOW | conformance/third_party/literals_literalstring.py | 23 | def my_function(literal_string: LiteralString) -> LiteralString: | CODE |
| LOW | conformance/third_party/generics_scoping.py | 67 | def do_something(self, x: S) -> S: # OK | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | conformance/third_party/annotations_generators.py | 140 | CODE | |
| MEDIUM | conformance/third_party/annotations_generators.py | 145 | CODE | |
| MEDIUM | conformance/third_party/annotations_generators.py | 190 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | website/src/sandbox/generateSandboxUrl.ts | 33 | 'def function(value: object | None = None) -> object:\n if value is None:\n return None\n e | CODE |