mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
(cherry picked from commit f265b05500ef8a6b35e7fef090a971f4a5449453) IJ-MR-17506 GitOrigin-RevId: 5cac0b7d071f753023b97c4e4152acbe388b8f08
13 lines
206 B
Python
13 lines
206 B
Python
class MyMeta(type):
|
|
def __or__(self, other):
|
|
return other
|
|
|
|
class Foo(metaclass=MyMeta):
|
|
...
|
|
class Bar(metaclass=MyMeta):
|
|
...
|
|
class Baz(metaclass=MyMeta):
|
|
...
|
|
|
|
print(Foo | Bar | Baz)
|