typed_python icon indicating copy to clipboard operation
typed_python copied to clipboard

Names of method types are missing the class name

Open braxtonmckee opened this issue 2 years ago • 0 comments

If you write

class C(Class):
    def f(self):
        pass

print(C.MemberFunctions['f'])

the resulting type doesn't have 'C' in its name - it has the name of the function, and it knows the module, but it doesn't know that there is a class name. We either need to put 'C' in the module (which seems weird since the module doesn't exist) or make another place in Type objects to put this kind of info.

braxtonmckee avatar Jan 30 '23 21:01 braxtonmckee