mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-12-15 16:43:38 +00:00
12 lines
426 B
Python
12 lines
426 B
Python
from dataclasses import dataclass
|
|
|
|
# Data class that defines a Special Interest Group "info" or reference. As well as the basic reference ID we include a
|
|
# name and a lookup URL.
|
|
@dataclass
|
|
class SIGRef:
|
|
# Reference ID, e.g. "GB-0001".
|
|
id: str
|
|
# Name of the reference, e.g. "Null Country Park", if known.
|
|
name: str = None
|
|
# URL to look up more information about the reference, if known.
|
|
url: str = None |