Skip to content

Commit

Permalink
repair register opt calls
Browse files Browse the repository at this point in the history
flake8 uses only argparse option styles now, use
str instead of "string" for types given.

Fixes: PyCQA#189
  • Loading branch information
zzzeek committed Nov 23, 2022
1 parent c36c22c commit 41e3c2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake8_import_order/flake8_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def add_options(cls, parser):
"--application-import-names",
default="",
action="store",
type="string",
type=str,
help="Import names to consider as application-specific",
parse_from_config=True,
comma_separated_list=True,
Expand All @@ -35,7 +35,7 @@ def add_options(cls, parser):
"--application-package-names",
default="",
action="store",
type="string",
type=str,
help=("Package names to consider as company-specific "
"(used only by 'appnexus' style)"),
parse_from_config=True,
Expand All @@ -46,7 +46,7 @@ def add_options(cls, parser):
"--import-order-style",
default=DEFAULT_IMPORT_ORDER_STYLE,
action="store",
type="string",
type=str,
help=("Style to follow. Available: " +
", ".join(cls.list_available_styles())),
parse_from_config=True,
Expand Down

0 comments on commit 41e3c2e

Please sign in to comment.