File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
libs/labelbox/src/labelbox/schema Expand file tree Collapse file tree 1 file changed +8
-7
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
59from io import TextIOWrapper
6- import json
710from pathlib import Path
811from typing import (
12+ TYPE_CHECKING ,
13+ Any ,
914 Callable ,
1015 Generic ,
1116 Iterator ,
1419 Tuple ,
1520 TypeVar ,
1621 Union ,
17- TYPE_CHECKING ,
1822 overload ,
19- Any ,
2023)
2124
2225import requests
23- import warnings
24- import tempfile
25- import os
26+ from pydantic import BaseModel
2627
2728from labelbox .schema .task import Task
2829from labelbox .utils import _CamelCaseMixin
29- from pydantic import BaseModel , Field , AliasChoices
3030
3131if TYPE_CHECKING :
3232 from labelbox import Client
@@ -241,6 +241,7 @@ def _get_file_content(
241241 )
242242 response = requests .get (file_info .file , timeout = 30 )
243243 response .raise_for_status ()
244+ response .encoding = "utf-8"
244245 assert (
245246 len (response .content )
246247 == file_info .offsets .end - file_info .offsets .start + 1
You can’t perform that action at this time.
0 commit comments