Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
python
/
testData
/
inspections
/
PyTypeCheckerInspection
/
UnionWithSameMethods.py
blob: ad842abfe8af937f6ebe817a9082d9e1654af1eb [
file
] [
log
] [
blame
]
class
C
:
def
g
(
self
,
x
):
"""
:type x: int
"""
pass
def
method_c
(
self
):
pass
class
D
:
def
g
(
self
,
x
):
"""
:type x: list
"""
pass
def
method_d
(
self
):
pass
def
f
():
"""
:rtype: C or D
"""
pass
obj
=
f
()
obj
.
g
(
10
)
obj
.
g
([])