Skip to content

Commit

Permalink
further simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Aug 14, 2024
1 parent 9f7f4ee commit c12dbff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dsp_permissions_scripts/doap/doap_model.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from __future__ import annotations

from typing import Self
from typing import Union

from pydantic import BaseModel
from pydantic import Field
from pydantic import model_validator

from dsp_permissions_scripts.models.group import Group
Expand All @@ -14,7 +12,7 @@
class Doap(BaseModel):
"""Model representing a DOAP, containing the target, the scope and the IRI of the DOAP."""

target: Union[GroupDoapTarget, EntityDoapTarget] = Field(union_mode="smart")
target: GroupDoapTarget | EntityDoapTarget
scope: PermissionScope
doap_iri: str

Expand Down

0 comments on commit c12dbff

Please sign in to comment.