Skip to content

FURB118 static method "false positive" #11045

@Rhinopitheque

Description

@Rhinopitheque

The rule FURB118 detects "false positives" on classes methods.

Keywords: "FURB118", "method"

@staticmethod 
    def get_postal_code(area_code: str) -> str:
        return area_code[:5]

Ruff v0.4.0 used with pre-commit hook:

  - repo: https://github.com/charliermarsh/ruff-pre-commit
    rev: v0.4.0
    hooks:
      - id: ruff

Metadata

Metadata

Assignees

Labels

needs-infoMore information is needed from the issue author

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions