Skip to content

Commit

Permalink
add typing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Apr 23, 2021
1 parent 77ce48f commit 0103c95
Show file tree
Hide file tree
Showing 22 changed files with 1,733 additions and 1,063 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Expand Up @@ -6,4 +6,5 @@ graft docs
prune docs/_build
graft examples
graft tests
include src/click/py.typed
global-exclude *.pyc
2 changes: 1 addition & 1 deletion examples/termui/termui.py
Expand Up @@ -145,7 +145,7 @@ def pause():
def menu():
"""Shows a simple menu."""
menu = "main"
while 1:
while True:
if menu == "main":
click.echo("Main menu:")
click.echo(" d: debug menu")
Expand Down
5 changes: 3 additions & 2 deletions setup.cfg
Expand Up @@ -79,9 +79,10 @@ per-file-ignores =
files = src/click
python_version = 3.6
disallow_subclassing_any = True
# disallow_untyped_calls = True
# disallow_untyped_defs = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
no_implicit_optional = True
local_partial_types = True
no_implicit_reexport = True
Expand Down

0 comments on commit 0103c95

Please sign in to comment.