refactor: make compatibility exports ruff clean
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from .shared import *
|
||||
from .shared import (
|
||||
Any,
|
||||
datetime,
|
||||
db,
|
||||
fail,
|
||||
now_iso,
|
||||
ok,
|
||||
re,
|
||||
row_to_dict,
|
||||
)
|
||||
|
||||
def _rule_matches(rule: dict[str, Any], tx: dict[str, Any]) -> bool:
|
||||
if rule.get("transaction_type") and rule.get("transaction_type") != tx.get("type", ""):
|
||||
|
||||
Reference in New Issue
Block a user