Skip to content

Commit 2a85576

Browse files
authored
Update functions_sude_naz_ay.py
1 parent d0f23b2 commit 2a85576

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎Week04/functions_sude_naz_ay.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import inspect
22

3-
custom_power = lambda x=0, /, e=1: x**e
3+
custom_power = lambda x=0, /, e=1: x**e # noqa: E731
44

55

66
def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int = 1) -> float:
77
"""
8-
Calculate the custom equation result based on provided parameters.
8+
Calculate custom equation.
99
1010
:param x: Positional-only base for first term, default 0
1111
:type x: int
@@ -23,14 +23,13 @@ def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int
2323
return float((x**a + y**b) / c)
2424

2525

26-
def fn_w_counter() -> tuple[int, dict[str, int]]:
26+
def fn_w_counter() -> (int, dict[str, int]):
2727
if not hasattr(fn_w_counter, "total_calls"):
2828
fn_w_counter.total_calls = 0
2929
fn_w_counter.callers = {}
3030

3131
fn_w_counter.total_calls += 1
3232

33-
# Çağrıyı yapan modülün __name__ değerini tespit eder
3433
caller_frame = inspect.currentframe().f_back
3534
caller_name = caller_frame.f_globals.get("__name__", "__main__")
3635

0 commit comments

Comments
 (0)