Skip to content

Commit 231a632

Browse files
zzzeeksigmavirus24
authored andcommitted
repair register opt calls
flake8 uses only argparse option styles now, use str instead of "string" for types given. Fixes: #189
1 parent c36c22c commit 231a632

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flake8_import_order/flake8_linter.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def add_options(cls, parser):
2525
"--application-import-names",
2626
default="",
2727
action="store",
28-
type="string",
28+
type=str,
2929
help="Import names to consider as application-specific",
3030
parse_from_config=True,
3131
comma_separated_list=True,
@@ -35,7 +35,7 @@ def add_options(cls, parser):
3535
"--application-package-names",
3636
default="",
3737
action="store",
38-
type="string",
38+
type=str,
3939
help=("Package names to consider as company-specific "
4040
"(used only by 'appnexus' style)"),
4141
parse_from_config=True,
@@ -46,7 +46,7 @@ def add_options(cls, parser):
4646
"--import-order-style",
4747
default=DEFAULT_IMPORT_ORDER_STYLE,
4848
action="store",
49-
type="string",
49+
type=str,
5050
help=("Style to follow. Available: " +
5151
", ".join(cls.list_available_styles())),
5252
parse_from_config=True,

0 commit comments

Comments
 (0)