class A(object):
    def method(self):
        return 1

A().method() ## type int


class A(object):
    def method(self):
        return "test"

A().method() ## type str

Test case for two classes with the same name in one module.