Skip to content

Commit 92205af

Browse files
Changed the decorator @dataframes
1 parent 2b57fd2 commit 92205af

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

v6-session-basics/tmp.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,12 @@ def decorator(
155155
return protection_decorator
156156

157157

158-
def dataframes() -> callable:
158+
def dataframes(func: callable) -> callable:
159159
"""
160160
Decorator that adds multiple pandas dataframes to a function
161161
162-
By adding `@dataframes()` to a function, multiple pandas dataframes will be
162+
By adding `@dataframes` to a function, multiple pandas dataframes will be
163163
added to the front of the argument list. This data will be read from the
164164
databases that the user who creates the task provides.
165165
"""
166-
167-
def decorator(func: callable) -> callable:
168-
return dataframe("many")(func)
169-
170-
return decorator
166+
return dataframe("many")(func)

0 commit comments

Comments
 (0)