Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
9ea55bad
Unverified
Commit
9ea55bad
authored
May 31, 2022
by
Zaida Zhou
Committed by
GitHub
May 31, 2022
Browse files
[Fix] dump has incompatible type TextIO (#2029)
parent
569d588e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mmcv/fileio/io.py
mmcv/fileio/io.py
+2
-2
No files found.
mmcv/fileio/io.py
View file @
9ea55bad
# 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
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment