Skip to content

Commit

Permalink
fix: type hint of example
Browse files Browse the repository at this point in the history
  • Loading branch information
Colerar authored and Yazawazi committed Nov 28, 2023
1 parent f2c57a2 commit e8a1780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/class.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ class A:
@funix_method(title="Initialize A", print_to_web=True)
def __init__(self, a: int):
self.a = a
print (f"`self.a` has been initialized to {self.a}")
print(f"`self.a` has been initialized to {self.a}")

def update_a(self, b: int) -> None:
def update_a(self, b: int) -> str:
self.a = b
return f"`self.a` has been updated to {self.a}"

Expand Down

0 comments on commit e8a1780

Please sign in to comment.