Open ashwin153 opened 3 years ago
I have same issue
class Outer(object):
class Inner(object):
pass
class ChildOuter(Outer):
class Inner(Outer.Inner):
pass
this doesn't work as well
This currently works
from overrides import overrides
class Outer(object):
class Inner(object):
pass
class ChildOuter(Outer):
@overrides
class Inner(Outer.Inner):
pass
This currently works
from overrides import overrides class Outer(object): class Inner(object): pass class ChildOuter(Outer): @overrides class Inner(Outer.Inner): pass
Awesome! This may look like narrow case, but in case of web automation, where code resembles page layout - i use it quite a lot! My worst case was to get data from a graph, that has inner dots to hover, that opened a tooltip, that had those data, so 3 times nested classes just for that graph... and all svg elements! It was a nightmare, but currently i can fetch those data and even self-recover in case of mis-hover or any other interruption... Nevertheless, as always, thank you for support and I am glad that code continues to improve! Have a nice day! Hubert
If you run this in a REPL it fails (Python 3.8). I've stared at this for an hour and I have no idea why it fails. Do you guys have any ideas?
To be clear, this works fine.