Skip to content

Commit

Permalink
revert annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
miriam-groeneveld committed Oct 5, 2023
1 parent 0bd44d2 commit ef53d8e
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions panimg/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@
from enum import Enum
from functools import cached_property
from pathlib import Path
from typing import (
Any,
ClassVar,
Dict,
FrozenSet,
List,
NamedTuple,
Optional,
Set,
Tuple,
)
from typing import Any, Dict, FrozenSet, List, NamedTuple, Optional, Set, Tuple
from uuid import UUID, uuid4

import numpy as np
Expand Down Expand Up @@ -195,9 +185,7 @@ class SimpleITKImage(BaseModel):
spacing_valid: bool
eye_choice: EyeChoice = EyeChoice.NOT_APPLICABLE

model_config: ClassVar[ConfigDict] = ConfigDict(
arbitrary_types_allowed=True, frozen=True
)
model_config = ConfigDict(arbitrary_types_allowed=True, frozen=True)

@property
def width(self) -> int:
Expand Down Expand Up @@ -420,7 +408,7 @@ class TIFFImage(BaseModel):
eye_choice: EyeChoice = EyeChoice.NOT_APPLICABLE
segments: Optional[FrozenSet[int]] = None

model_config: ClassVar[ConfigDict] = ConfigDict(frozen=True)
model_config = ConfigDict(frozen=True)

def save(self, output_directory: Path) -> Tuple[PanImg, Set[PanImgFile]]:
pk = uuid4()
Expand Down

0 comments on commit ef53d8e

Please sign in to comment.