diff options
author | Yobmod <yobmod@gmail.com> | 2021-06-24 15:32:25 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-06-24 15:32:25 +0100 |
commit | 3cef949913659584dd980f3de363dd830392bb68 (patch) | |
tree | e51d68a5aa23ac812243d081646c633258de2cc7 /t.py | |
parent | c3903d8e03af5c1e01c1a96919b926c55f45052e (diff) | |
download | gitpython-3cef949913659584dd980f3de363dd830392bb68.tar.gz |
Rename Iterable due to typing.Iterable. Add deprecation warning
Diffstat (limited to 't.py')
-rw-r--r-- | t.py | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +class Watcher(type): + def __init__(cls, name, bases, clsdict): + [print("ooooo") for base in bases if issubclass(base, name)] + super(Watcher, cls).__init__(name, bases, clsdict) + + +class SuperClass(metaclass=Watcher): + pass + + +class SubClass0(SuperClass): + pass + + +class SubClass1(SuperClass): + print("test") + +class normo(): + print("wooo") |