You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existing decorators can only be applied to classes. Sometimes it is unnecessary to define a class for this purpose. Refer to the relevant syntax of Python. I think if you can directly define decorators for functions, you can save a lot of unnecessary code, especially you don't need to define a separate class for this purpose.
The existing decorators can only be applied to classes. Sometimes it is unnecessary to define a class for this purpose. Refer to the relevant syntax of Python. I think if you can directly define decorators for functions, you can save a lot of unnecessary code, especially you don't need to define a separate class for this purpose.
The text was updated successfully, but these errors were encountered: