Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/hookify/core/config_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys
import glob
import re
from typing import List, Optional, Dict, Any
from typing import List, Optional, Dict, Any, Tuple
from dataclasses import dataclass, field


Expand Down Expand Up @@ -84,7 +84,7 @@ def from_dict(cls, frontmatter: Dict[str, Any], message: str) -> 'Rule':
)


def extract_frontmatter(content: str) -> tuple[Dict[str, Any], str]:
def extract_frontmatter(content: str) -> Tuple[Dict[str, Any], str]:
"""Extract YAML frontmatter and message body from markdown.

Returns (frontmatter_dict, message_body).
Expand Down