Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
svlandeg committed Sep 11, 2024
1 parent ad046fc commit a77dddd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ def test_enum_names():
def test_script():
result = subprocess.run(
["coverage", "run", mod.__file__, "--help"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
capture_output=True,
encoding="utf-8",
)
assert "Usage" in result.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ def test_int_enum():
def test_script():
result = subprocess.run(
["coverage", "run", mod.__file__, "--help"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
capture_output=True,
encoding="utf-8",
)
assert "Usage" in result.stdout
4 changes: 4 additions & 0 deletions typer/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def Option(
show_envvar: bool = True,
# Choice
case_sensitive: bool = True,
names: bool = False,
# Numbers
min: Optional[Union[int, float]] = None,
max: Optional[Union[int, float]] = None,
Expand Down Expand Up @@ -171,6 +172,7 @@ def Option(
show_envvar: bool = True,
# Choice
case_sensitive: bool = True,
names: bool = False,
# Numbers
min: Optional[Union[int, float]] = None,
max: Optional[Union[int, float]] = None,
Expand Down Expand Up @@ -282,6 +284,7 @@ def Argument(
hidden: bool = False,
# Choice
case_sensitive: bool = True,
names: bool = False,
# Numbers
min: Optional[Union[int, float]] = None,
max: Optional[Union[int, float]] = None,
Expand Down Expand Up @@ -337,6 +340,7 @@ def Argument(
hidden: bool = False,
# Choice
case_sensitive: bool = True,
names: bool = False,
# Numbers
min: Optional[Union[int, float]] = None,
max: Optional[Union[int, float]] = None,
Expand Down

0 comments on commit a77dddd

Please sign in to comment.