Skip to content

Commit f6e1716

Browse files
committed
Remove dataclasses usage as we're still supporting python 3.6
1 parent b2e2441 commit f6e1716

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/utils/test_cases.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from dataclasses import dataclass
21
import os
32
from datetime import datetime
43
import csv
@@ -54,13 +53,14 @@
5453
temporal=TemporalExtent.from_now()) # noqa: E126
5554

5655

57-
@dataclass
5856
class ExampleInfo:
59-
path: str
60-
object_type: ps.STACObjectType
61-
stac_version: str
62-
extensions: List[str]
63-
valid: bool
57+
def __init__(self, path: str, object_type: ps.STACObjectType, stac_version: str,
58+
extensions: List[str], valid: bool) -> None:
59+
self.path = path
60+
self.object_type = object_type
61+
self.stac_version = stac_version
62+
self.extensions = extensions
63+
self.valid = valid
6464

6565

6666
class TestCases:

0 commit comments

Comments
 (0)