Skip to content

Conversation

@fPkX6F1nGTX
Copy link
Contributor

I could not find anything about this explicitly on the Internet. I have tested this and it works.

@netlify
Copy link

netlify bot commented Jan 10, 2025

‼️ Deploy request for pythoncheatsheet rejected.

Name Link
🔨 Latest commit c856491

@fPkX6F1nGTX
Copy link
Contributor Author

fPkX6F1nGTX commented Jan 10, 2025

If someone wants to come up with an example of decorating a class method when the method accepts more than just the implicit self argument, please be my guest. I am not able to quickly come up with one, but whoever adds that in should make note of the fact that such a decorator must be defined separately within the class and only used for methods that have explicit arguments, just as the example I gave is only good for methods without them.

@wilfredinni wilfredinni merged commit 3e3a1c8 into labex-labs:master Jan 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants