Combine Imports

This transform combines adjacent import statements into a single statement. The order of the imports will not be changed. This transform is always safe to use and enabled by default.

Disable this source transformation by passing the combine_imports=False argument to the python_minifier.minify() function, or passing --no-combine-imports to the pyminify command.

Example

Input

import requests
import collections
from typing import Dict
from typing import List, Optional
import sys
import os

Output

import requests,collections
from typing import Dict,List,Optional
import sys,os