Files
spothole/data/sig.py

14 lines
319 B
Python

from dataclasses import dataclass
@dataclass
class SIG:
"""Data class that defines a Special Interest Group."""
# SIG name, e.g. "POTA"
name: str
# Description, e.g. "Parks on the Air"
description: str
# Regex matcher for references, e.g. for POTA r"[A-Z]{2}\-\d+".
ref_regex: str = None