@staticmethod

Returns test


REMARKS
* No prefix required - Core
* Transform a method into a static method.
* A static method does not receive an implicit first argument. To declare a static method, use this idiom:
* A static method can be called either on the class (such as C.f()) or on an instance (such as C().f()). Moreover, they can be called as regular functions (such as f()).
* Like all decorators, it is also possible to call staticmethod as a regular function and do something with its result. This is needed in some cases where you need a reference to a function from a class body and you want to avoid the automatic transformation to instance method. For these cases, use this idiom:

?? 

© 2025 Better Solutions Limited. All Rights Reserved. © 2025 Better Solutions Limited Top