Create a Key from :class:`flake8.violation.Violation`.
(cls, error: Violation)
| 79 | |
| 80 | @classmethod |
| 81 | def create_from(cls, error: Violation) -> Key: |
| 82 | """Create a Key from :class:`flake8.violation.Violation`.""" |
| 83 | return cls(filename=error.filename, code=error.code) |
| 84 | |
| 85 | def matches(self, prefix: str, filename: str | None) -> bool: |
| 86 | """Determine if this key matches some constraints. |
no outgoing calls