Use 'as name' patter to re-export names from stubs (PEP 484) (#1484)

This commit is contained in:
Ivan Levkivskyi authored and Jelle Zijlstra committed 2017-07-14 21:31:53 -07:00
1 parent 643aedea1b
commit d75ea88da5
4 files changed
+8 -7

No files matched your search

+3 -3
View File
@@ -1,10 +1,10 @@
import sys
from typing import Any, IO, Optional, Tuple, Callable, Dict, List, Union
from .decoder import JSONDecoder
from .encoder import JSONEncoder
from .decoder import JSONDecoder as JSONDecoder
from .encoder import JSONEncoder as JSONEncoder
if sys.version_info >= (3, 5):
from .decoder import JSONDecodeError
from .decoder import JSONDecodeError as JSONDecodeError
def dumps(obj: Any,
skipkeys: bool = ...,