stubgen: fix FunctionContext.fullname for nested classes
This fixes an issue with the computation of FunctionContext.fullname for nested classes.
For a module named spangle, with the following classes:
class Foo:
class Bar:
pass
The previous output for the class Bar was "spangle.Bar" and with this fix it is now "spangle.Foo.Bar".
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
Could you add a test please?
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
@hamdanal Test added and all tests passing.
bump