diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-07-21 00:21:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 00:21:28 -0400 |
commit | 73d1c34ae199415051a6209c726b099660944499 (patch) | |
tree | 31dcb1fd807e255a388e56b80dcf0279fd1899b0 /cmd2/argparse_custom.py | |
parent | 578593f8a9011ad71d78cd30f231c79af570987e (diff) | |
parent | 4b91f6355795d7bd23ff46882fd7181a3a11a419 (diff) | |
download | cmd2-git-73d1c34ae199415051a6209c726b099660944499.tar.gz |
Merge pull request #737 from python-cmd2/renames
Changes made while preparing for PyOhio presentation
Diffstat (limited to 'cmd2/argparse_custom.py')
-rw-r--r-- | cmd2/argparse_custom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py index 090abde1..668f41d6 100644 --- a/cmd2/argparse_custom.py +++ b/cmd2/argparse_custom.py @@ -154,13 +154,13 @@ from typing import Any, Callable, Iterable, List, Optional, Tuple, Union from .ansi import ansi_aware_write, style_error +# Used in nargs ranges to signify there is no maximum +INFINITY = float('inf') + ############################################################################################################ # The following are names of custom argparse argument attributes added by cmd2 ############################################################################################################ -# Used in nargs ranges to signify there is no maximum -INFINITY = float('inf') - # A tuple specifying nargs as a range (min, max) ATTR_NARGS_RANGE = 'nargs_range' |