Skip to content

Footnotes for titles #450

Description

@epage

Ruff added footnote markers to titles for marking which items are fixable

SIM103 [*] Return the condition `bool(a)` directly
 --> SIM103.py:3:5
  |
1 |   def f():
2 |       # SIM103
3 | /     if a:
4 | |         return True
5 | |     else:
6 | |         return False
  | |____________________^
  |
help: Replace with `return bool(a)`
  |
2 |     # SIM103
  -     if a:
  -         return True
  -     else:
  -         return False
3 +     return bool(a)
4 |
  |
note: This is an unsafe fix and may change runtime behavior

(the actual footnote is not included)

Identified in astral-sh/ruff#27033

Fork: astral-sh/ruff#19644

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions