Commit 98bf846d authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Mark Before/After classes as dataclasses

Functionally this makes no difference, but it fixes types in Sphinx
docs and may fix typing in general.
parent 6ce627a0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ class Position:
	subject: Header|Literal["start"]|Literal["end"]


@dataclass
class Before(Position):
	"""
	Indicates a relative position preceding a subject `Header` in a header list
@@ -128,6 +129,7 @@ class Before(Position):
	subject: Header


@dataclass
class After(Position):
	"""
	Indicates a relative position following a subject `Header` in a header list