Skip to content

Commit 77369ab

Browse files
committed
refactor: added three D selector
1 parent 4e37304 commit 77369ab

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from typing import Literal
2+
3+
from ._base import DataSelector
4+
5+
6+
class ThreeDSelector(DataSelector):
7+
type: Literal["3D"] = "3D"
8+
kind: Literal["3D"] = "3D"
9+
published: bool | None = None
10+
11+
@property
12+
def group(self) -> str:
13+
return "3DModels"
14+
15+
def __str__(self) -> str:
16+
if self.published is not None:
17+
return f"3DModels_published_{self.published}"
18+
return "3DModels_all"

0 commit comments

Comments
 (0)