Skip to content

Commit 79c8671

Browse files
committed
Fix Flake8 E501 (line too long) error
1 parent 59d69de commit 79c8671

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

aiosmtpd/docs/_exts/autoprogramm.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@
4646
__all__ = ("AutoprogrammDirective", "import_object", "scan_programs", "setup")
4747

4848

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

5861
if isinstance(neg1_action, argparse._SubParsersAction):

0 commit comments

Comments
 (0)