blob: d424c822ad42c1d6a027a66a2c35a91a7fc67bfc [file] [log] [blame]
Tor Norbye3a2425a2013-11-04 10:16:08 -08001class 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
15class C(B):
16 def bar(self):
17 expr = self.foo()
18 return expr.upper() #pass