stubgen: fix FunctionContext.fullname for nested classes by chadrik · Pull Request #17963 · python/mypy (original) (raw)

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".