-
-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add support for mypy --strict (#147)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
- Loading branch information
1 parent
4312ead
commit 3cc81b6
Showing
7 changed files
with
75 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ ignore_missing_imports = True | |
|
||
[mypy-typer.*] | ||
disallow_untyped_defs = True | ||
strict = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,37 @@ | ||
"""Typer, build great CLIs. Easy to code. Based on Python type hints.""" | ||
|
||
__version__ = "0.3.1" | ||
from click.exceptions import Abort as Abort | ||
from click.exceptions import BadParameter as BadParameter | ||
from click.exceptions import Exit as Exit | ||
from click.termui import clear as clear | ||
from click.termui import confirm as confirm | ||
from click.termui import echo_via_pager as echo_via_pager | ||
from click.termui import edit as edit | ||
from click.termui import get_terminal_size as get_terminal_size | ||
from click.termui import getchar as getchar | ||
from click.termui import launch as launch | ||
from click.termui import pause as pause | ||
from click.termui import progressbar as progressbar | ||
from click.termui import prompt as prompt | ||
from click.termui import secho as secho | ||
from click.termui import style as style | ||
from click.termui import unstyle as unstyle | ||
from click.utils import echo as echo | ||
from click.utils import format_filename as format_filename | ||
from click.utils import get_app_dir as get_app_dir | ||
from click.utils import get_binary_stream as get_binary_stream | ||
from click.utils import get_text_stream as get_text_stream | ||
from click.utils import open_file as open_file | ||
|
||
from click.exceptions import Abort, BadParameter, Exit | ||
from click.termui import ( | ||
clear, | ||
confirm, | ||
echo_via_pager, | ||
edit, | ||
get_terminal_size, | ||
getchar, | ||
launch, | ||
pause, | ||
progressbar, | ||
prompt, | ||
secho, | ||
style, | ||
unstyle, | ||
) | ||
from click.utils import ( | ||
echo, | ||
format_filename, | ||
get_app_dir, | ||
get_binary_stream, | ||
get_text_stream, | ||
open_file, | ||
) | ||
|
||
from . import colors | ||
from .main import Typer, run | ||
from .models import ( | ||
CallbackParam, | ||
Context, | ||
FileBinaryRead, | ||
FileBinaryWrite, | ||
FileText, | ||
FileTextWrite, | ||
) | ||
from .params import Argument, Option | ||
from . import colors as colors | ||
from .main import Typer as Typer | ||
from .main import run as run | ||
from .models import CallbackParam as CallbackParam | ||
from .models import Context as Context | ||
from .models import FileBinaryRead as FileBinaryRead | ||
from .models import FileBinaryWrite as FileBinaryWrite | ||
from .models import FileText as FileText | ||
from .models import FileTextWrite as FileTextWrite | ||
from .params import Argument as Argument | ||
from .params import Option as Option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3cc81b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://typer.tiangolo.com as production
🚀 Deployed on https://5f39453aa068ce3df628bb39--typertiangolo.netlify.app