|
25 | 25 | from labelbox.schema.export_filters import ProjectExportFilters, validate_datetime, build_filters |
26 | 26 | from labelbox.schema.export_params import ProjectExportParams |
27 | 27 | from labelbox.schema.export_task import ExportTask |
| 28 | +from labelbox.schema.identifiable import DataRowIdentifiers, IdType, UniqueIds, strings_to_identifiable |
28 | 29 | from labelbox.schema.media_type import MediaType |
29 | 30 | from labelbox.schema.queue_mode import QueueMode |
30 | 31 | from labelbox.schema.resource_tag import ResourceTag |
31 | 32 | from labelbox.schema.task import Task |
32 | 33 | from labelbox.schema.task_queue import TaskQueue |
33 | | -from labelbox.schema.user import User |
34 | 34 |
|
35 | 35 | if TYPE_CHECKING: |
36 | 36 | from labelbox import BulkImportRequest |
37 | 37 |
|
38 | | -try: |
39 | | - datetime.fromisoformat # type: ignore[attr-defined] |
40 | | -except AttributeError: |
41 | | - from backports.datetime_fromisoformat import MonkeyPatch |
42 | | - |
43 | | - MonkeyPatch.patch_fromisoformat() |
44 | | - |
45 | 38 | try: |
46 | 39 | from labelbox.data.serialization import LBV1Converter |
47 | 40 | except ImportError: |
@@ -643,7 +636,7 @@ def labeler_performance(self) -> PaginatedCollection: |
643 | 636 | def create_labeler_performance(client, result): |
644 | 637 | result["user"] = Entity.User(client, result["user"]) |
645 | 638 | # python isoformat doesn't accept Z as utc timezone |
646 | | - result["lastActivityTime"] = datetime.fromisoformat( |
| 639 | + result["lastActivityTime"] = utils.format_iso_from_string( |
647 | 640 | result["lastActivityTime"].replace('Z', '+00:00')) |
648 | 641 | return LabelerPerformance(**{ |
649 | 642 | utils.snake_case(key): value for key, value in result.items() |
|
0 commit comments