Skip to content

Commit

Permalink
Fix Flake8 E501 (line too long) error
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoluan committed Jan 13, 2023
1 parent 59d69de commit 79c8671
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions aiosmtpd/docs/_exts/autoprogramm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@
__all__ = ("AutoprogrammDirective", "import_object", "scan_programs", "setup")


# Need to temporarily disable this particular check, because although this function is guaranteed to return a proper
# value (due to how ArgumentParser works), pytype doesn't really know that, and therefore raised an error
# in the (to its view) possible fallthrough of "implicit return None" if the "for a" loop exits without finding the
# right item.
# Need to temporarily disable this particular check, because although this function
# is guaranteed to return a proper value (due to how ArgumentParser works), pytype
# doesn't really know that, and therefore raised an error in the (to its view)
# possible fallthrough of "implicit return None" if the "for a" loop exits without
# finding the right item.
#
# pytype: disable=bad-return-type
def get_subparser_action(parser: argparse.ArgumentParser) -> argparse._SubParsersAction:
def get_subparser_action(
parser: argparse.ArgumentParser
) -> argparse._SubParsersAction:
neg1_action = parser._actions[-1]

if isinstance(neg1_action, argparse._SubParsersAction):
Expand Down

0 comments on commit 79c8671

Please sign in to comment.