Skip to content

Commit a59ad33

Browse files
authored
functions_miray_cengil.py
1 parent 95dfed1 commit a59ad33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Week04/functions_miray_cengil.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int
2222

2323
call_count = defaultdict(int)
2424

25-
def fn_w_counter()-> tuple:
25+
def fn_w_counter()-> tuple[int, dict[str, int]]:
2626
"""A function that counts the number of calls."""
27-
def wrapper():
27+
call_count = defaultdict(int)
28+
29+
def wrapper() -> tuple[int, dict[str, int]]:
2830
import inspect
2931
caller_name = inspect.stack()[1].function
3032
call_count[caller_name] += 1

0 commit comments

Comments
 (0)