| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame^] | 1 | class B(object): |
| 2 | def __init__(self, x): | ||||
| 3 | """ | ||||
| 4 | :type x: T | ||||
| 5 | :rtype: B of T | ||||
| 6 | """ | ||||
| 7 | self._x = x | ||||
| 8 | |||||
| 9 | def foo(self): | ||||
| 10 | """ | ||||
| 11 | :rtype: T | ||||
| 12 | """ | ||||
| 13 | return self._x | ||||
| 14 | |||||
| 15 | class C(B): | ||||
| 16 | def bar(self): | ||||
| 17 | expr = self.foo() | ||||
| 18 | return expr.upper() #pass | ||||