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
classonlymethod can be implemented entirely using descriptors, and it will work in basedpyright with no additional changes/special casing. for it to work in basedmypy tho, python/mypy#17050 will need to be fixed
i think staticonlymethod is kinda redundant because you can achieve the same effect by just making it a function outside of the class
The reasoning is that the
classmethod
decorator is often used for alternative constructors, so using it on instances would be a mistaken usage.implementation
We could attempt a vanilla implementation using descriptors, otherwise a simple alias
The text was updated successfully, but these errors were encountered: