diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-12-12 18:41:08 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-12-12 18:41:08 -0800 |
commit | 47aba1507f4f0051271c02899904c557c6a34b27 (patch) | |
tree | c2d85ed4ab9b2354eda8439bb54f05547e266e73 | |
parent | 2b3b1160f38c107e18b8c0b4190ee95ac710e7dd (diff) | |
download | isort-47aba1507f4f0051271c02899904c557c6a34b27.tar.gz |
Take extension in sort_imports endpoints
-rw-r--r-- | isort/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/api.py b/isort/api.py index 000314bf..d0738522 100644 --- a/isort/api.py +++ b/isort/api.py @@ -126,7 +126,7 @@ def sorted_file(filename: str, config: Config = DEFAULT_CONFIG, **config_kwargs) def sort_imports( - input_stream: TextIO, output_stream: TextIO, config: Config = DEFAULT_CONFIG + input_stream: TextIO, output_stream: TextIO, extension: str = "py", config: Config = DEFAULT_CONFIG, ) -> None: """Parses stream identifying sections of contiguous imports and sorting them |