add updates libs

This commit is contained in:
Christoph Brandau
2026-06-18 17:21:58 +02:00
parent 91ce762570
commit 41f331d4c4
150 changed files with 8249 additions and 2550 deletions
+3 -3
View File
@@ -1,5 +1,4 @@
from enum import Enum
from typing import Tuple
class Rule(Enum):
@@ -16,6 +15,7 @@ class Rule(Enum):
REDEFINED_BUILTIN = "redefined-builtin"
UNBRACED_EXPR = "unbraced-expr"
REDUNDANT_EXPR = "redundant-expr"
UNOPENED_QUOTE = "unopened-quote"
def __str__(self):
return self.value
@@ -26,7 +26,7 @@ ALL_RULES = [rule for rule in Rule]
class Violation:
def __init__(
self, id: Rule, message: str, start: Tuple[int, int], end: Tuple[int, int]
self, id: Rule, message: str, start: tuple[int, int], end: tuple[int, int]
):
self.id = id
self.message = message
@@ -44,7 +44,7 @@ class Violation:
@classmethod
def create(cls, id):
def func(message: str, start: Tuple[int, int], end: Tuple[int, int]):
def func(message: str, start: tuple[int, int], end: tuple[int, int]):
return cls(id, message, start, end)
return func