We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@dataframes
1 parent 2b57fd2 commit 92205afCopy full SHA for 92205af
v6-session-basics/tmp.py
@@ -155,16 +155,12 @@ def decorator(
155
return protection_decorator
156
157
158
-def dataframes() -> callable:
+def dataframes(func: callable) -> callable:
159
"""
160
Decorator that adds multiple pandas dataframes to a function
161
162
- By adding `@dataframes()` to a function, multiple pandas dataframes will be
+ By adding `@dataframes` to a function, multiple pandas dataframes will be
163
added to the front of the argument list. This data will be read from the
164
databases that the user who creates the task provides.
165
166
-
167
- def decorator(func: callable) -> callable:
168
- return dataframe("many")(func)
169
170
- return decorator
+ return dataframe("many")(func)
0 commit comments