File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
libs/labelbox/src/labelbox/schema Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1+ import json
2+ import os
3+ import tempfile
4+ import warnings
15from abc import ABC , abstractmethod
26from dataclasses import dataclass
37from enum import Enum
48from functools import lru_cache
5- import json
69from typing import (
10+ TYPE_CHECKING ,
11+ Any ,
712 Callable ,
813 Generic ,
914 Iterator ,
1015 Optional ,
1116 Tuple ,
1217 TypeVar ,
1318 Union ,
14- TYPE_CHECKING ,
15- Any ,
1619)
1720
1821import requests
19- import tempfile
20- import os
22+ from pydantic import BaseModel
2123
2224from labelbox .schema .task import Task
2325from labelbox .utils import _CamelCaseMixin
24- from pydantic import BaseModel
2526
2627if TYPE_CHECKING :
2728 from labelbox import Client
@@ -120,6 +121,7 @@ def _get_file_content(
120121 )
121122 response = requests .get (file_info .file , timeout = 30 )
122123 response .raise_for_status ()
124+ response .encoding = "utf-8"
123125 assert (
124126 len (response .content )
125127 == file_info .offsets .end - file_info .offsets .start + 1
You can’t perform that action at this time.
0 commit comments