Question about how reset_ticks() works

Hi All,

I’ve been working on fixing an issue (#22104) and I’ve run into a problem with understanding how the reset_ticks() function in the file works.

Specifically, I’m not sure how the function is making the new tick after it deletes self.majorTicks. It seems like the new tick is being created during the deletion operation, but I don’t see where any function is being called to make one. It appears to just magically appear when I step though the line with a debugger. Any help would be greatly appreciated.

It’s a _LazyTickList descriptor that generates itself on access: