Skip to content

Commit

Permalink
Fixes CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Oct 31, 2019
1 parent 3bd42e0 commit 588b19d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/pages/concept.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ function signatures and return types in all cases:
... def example(instance) -> str:
... return 'default'
...
>>> @example.register
>>> @example.register(int)
... def _example_int(instance: int, other: int) -> int:
... return instance + other
...
>>> @example.register
>>> @example.register(str)
... def _example_str(instance: str) -> bool:
... return bool(instance)
...
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/typesafety.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ So, this would not work:
...
Traceback (most recent call last):
...
TypeError: Subscripted generics cannot be used with class and instance checks
TypeError: ...
But, this will (note that we use ``list`` inside ``.instance()`` call):
Expand Down

0 comments on commit 588b19d

Please sign in to comment.