Skip to content

Commit

Permalink
Merge pull request #16 from opencomputeproject/fea/add_types_to_examples
Browse files Browse the repository at this point in the history
fea/add callable type to demo decorator
  • Loading branch information
mimir-d authored Oct 25, 2024
2 parents 20ccb47 + 401778e commit 32a3c58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import collections.abc as abc

DEMOS = {}


def demo(func):
def w(banner=True):
def demo(func) -> abc.Callable[[], None]:
def w(banner=True) -> None:
if banner:
print("-" * 80)
print(func.__name__)
Expand Down

0 comments on commit 32a3c58

Please sign in to comment.