summaryrefslogtreecommitdiff
path: root/t.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-06-24 15:32:25 +0100
committerYobmod <yobmod@gmail.com>2021-06-24 15:32:25 +0100
commit3cef949913659584dd980f3de363dd830392bb68 (patch)
treee51d68a5aa23ac812243d081646c633258de2cc7 /t.py
parentc3903d8e03af5c1e01c1a96919b926c55f45052e (diff)
downloadgitpython-3cef949913659584dd980f3de363dd830392bb68.tar.gz
Rename Iterable due to typing.Iterable. Add deprecation warning
Diffstat (limited to 't.py')
-rw-r--r--t.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/t.py b/t.py
new file mode 100644
index 00000000..05d59c0c
--- /dev/null
+++ b/t.py
@@ -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")