Skip to content

Commit

Permalink
import CaseBody and CaseData from Justopinion
Browse files Browse the repository at this point in the history
  • Loading branch information
mscarey committed Oct 17, 2021
1 parent 8419aa1 commit 047c30a
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions authorityspoke/decisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Optional, Sequence, Tuple, Union

from anchorpoint.textselectors import TextQuoteSelector, TextPositionSelector
from justopinion.decisions import Decision, CAPCitation
from justopinion.decisions import Decision, CaseBody, CaseData

from nettlesome.terms import Comparable, ContextRegister, Explanation
from nettlesome.factors import Factor
Expand All @@ -21,24 +21,6 @@
RawDecision = Dict[str, Union[str, int, Sequence[RawOpinion], Sequence[RawCAPCitation]]]


class CaseData(BaseModel):
"""
The content of a Decision, including Opinions.
"""

head_matter: Optional[str] = None
corrections: Optional[str] = None
parties: List[str] = []
attorneys: List[str] = []
opinions: List[Opinion] = []
judges: List[str] = []


class CaseBody(BaseModel):
data: CaseData
status: str = ""


class DecisionReading(BaseModel, Comparable):
"""An interpretation of what Holdings are supported by the Opinions of a Decision."""

Expand Down

0 comments on commit 047c30a

Please sign in to comment.