1# Python methods have a __func__ attribute which, when called
2# on a staticmethod, allows it to be executed within a class
3# body.
4class MyClass:
5 @staticmethod
6 def static_method(n: int) -> int:
7 return n
8
9 num = static_method.__func__(10) # Call __func__ with argument
10
11mc = MyClass()
12print(mc.num) # Output: 10