Skip to content

Commit

Permalink
Merge branch 'open-mmlab:master' into tripleMu-typehintFinal
Browse files Browse the repository at this point in the history
  • Loading branch information
triple-Mu authored May 30, 2022
2 parents f23d076 + 9ea55ba commit b7cbbbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmcv/fileio/io.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright (c) OpenMMLab. All rights reserved.
from io import BytesIO, StringIO
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional, Union
from typing import Any, Callable, Dict, List, Optional, TextIO, Union

from ..utils import is_list_of
from .file_client import FileClient
from .handlers import BaseFileHandler, JsonHandler, PickleHandler, YamlHandler

FileLikeObject = Union[StringIO, BytesIO]
FileLikeObject = Union[TextIO, StringIO, BytesIO]

file_handlers = {
'json': JsonHandler(),
Expand Down

0 comments on commit b7cbbbe

Please sign in to comment.